00001 /*************************************************************************** 00002 contacthandler.h - description 00003 ------------------- 00004 begin : mar avr 11 2006 00005 copyright : (C) 2006 by 00006 - Sylvain Archenault <sylvain.archenault@laposte.net> 00007 - Yves Houpert <yves.houpert@insa-rouen.fr> 00008 00009 ***************************************************************************/ 00010 00011 /*************************************************************************** 00012 * * 00013 * This program is free software; you can redistribute it and/or modify * 00014 * it under the terms of the GNU General Public License as published by * 00015 * the Free Software Foundation; either version 2 of the License, or * 00016 * (at your option) any later version. * 00017 * * 00018 ***************************************************************************/ 00019 #ifndef CONTACTHANDLER_H 00020 #define CONTACTHANDLER_H 00021 00022 #include <xml/structurehandlerbase.h> 00023 #include <contact.h> 00024 00025 XERCES_CPP_NAMESPACE_USE; 00026 00027 00033 class ContactHandler : public StructureHandlerBase 00034 { 00035 public: 00036 00038 ContactHandler(); 00039 00041 ~ContactHandler(); 00042 00049 void endDirectChild(const XMLCh* const lname, const std::string& content); 00050 00053 virtual void startElement(const XMLCh* const , const Attributes& ) { setData(new Contact()); } 00054 00055 }; 00056 00057 #endif
1.4.6