Main Page | Class Hierarchy | Class List | File List | Class Members

XMLHandler.h

00001 #ifndef GEAR_XMLHandler_H
00002 #define GEAR_XMLHandler_H 1
00003 
00004 #include <string>
00005 
00006 namespace gear {
00007 
00008   class TiXmlElement ;
00009   class GearParameters ;
00010   class GearMgr ;
00011   
00017   class XMLHandler {
00018     
00019   public: 
00020     
00021     
00024     virtual TiXmlElement toXML( GearParameters* parameters ) const = 0 ;
00025     
00026     
00030     virtual GearParameters* fromXML( const TiXmlElement* xmlElement , GearMgr* gearMgr=0) const = 0 ;
00031     
00032     
00033   }; // class
00034   
00035 
00036   class TiXmlNode ;
00037 
00039   std::string getXMLAttribute(const  TiXmlNode* node , const std::string& name ) ;    
00040 
00043   std::string getChildElementValue(const TiXmlNode* node , const std::string& name ) ;
00044 
00045 
00046 } // namespace gear
00047 
00048 #endif /* ifndef GEAR_XMLHandler_H */

Generated on Tue Sep 13 17:28:48 2005 for Gear by doxygen 1.3.5