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