Main Page | Modules | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

configfile.h

Go to the documentation of this file.
00001 
00027 #ifndef CONFIG_CONFIGFILE_H
00028 #define CONFIG_CONFIGFILE_H 1
00029 
00030 #include <dmn/config.h>
00031 
00032 #include <libxml++/libxml++.h>
00033 
00034 #include <string>
00035 #include <list>
00036 #include <map>
00037 
00038 namespace dmn
00039 {
00043   class ConfigFile: public xmlpp::SaxParser
00044   {
00045   private:
00046     std::string config_, core_, display_, sound_,
00047       tournament_, match_, game_, hand_;
00048     std::list<PlayerInfo> players_;
00049 
00050     unsigned long team_, couple_;
00051 
00052   protected:
00053     void on_start_element(const std::string & name,
00054         const AttributeMap & attributes);
00055 
00056   public:
00060     ConfigFile();
00061 
00067     std::string config();
00068 
00074     std::string core();
00075 
00081     std::string display();
00082 
00088     std::string sound();
00089 
00095     std::string tournament();
00096 
00102     std::string match();
00103 
00109     std::string game();
00110 
00116     std::string hand();
00117 
00123     std::list<PlayerInfo> players();
00124   };
00125 };
00126 
00127 #endif        // CONFIG_CONFIGFILE_H

Generated on Fri Dec 26 22:52:54 2003 for dmn by doxygen 1.3.4