00001 #ifndef EXPAT_STRING_H 00002 #define EXPAT_STRING_H 00003 00004 #include "EConfBase.h" 00005 00010 struct EConfString : public EConfBase 00011 { 00012 char* _value; 00013 public: 00014 EConfString( const char* name, 00015 const char* default_value=NULL, 00016 const char* comment=NULL ); 00017 EConfString( const EConfString& ); 00018 virtual ~EConfString( ); 00019 00020 virtual bool start_child_element( const char* name, const char** atts, XML_Parser p ); 00021 virtual bool end_child_element( const char* name, XML_Parser p ); 00022 bool begin_parse( const char* name, const char** atts, XML_Parser p ); 00023 virtual void dump( int depth, ostream& ostr, bool complete ); 00024 00025 void specialize( const EConfString& o ); 00026 00027 bool is( const char* filename ); 00028 00029 inline const char* get( ) const { 00030 return _value; 00031 } 00032 00033 private: 00034 EConfString( ); 00035 EConfString& operator=( const EConfString& ); 00036 }; 00037 00039 00040 #endif /* EXPAT_STRING_H */ 00041