/[projects]/smsdaemon/ConfigFile.h
ViewVC logotype

Diff of /smsdaemon/ConfigFile.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 146 by torben, Sun Dec 7 20:06:12 2008 UTC revision 201 by torben, Thu Dec 18 23:19:08 2008 UTC
# Line 33  Line 33 
33    
34  #include <string>  #include <string>
35  #include <map>  #include <map>
36    #include <vector>
37  #include "Value.h"  #include "Value.h"
38    
39  class ConfigFile  class ConfigFile
40  {  {
41          //std::map<std::string,Chameleon> content_;          std::multimap<std::string,Value> content_;
42          std::map<std::string,Value> content_;          typedef std::multimap<std::string,Value>::const_iterator content_iterator;
43    
44  public:  public:
45          ConfigFile();          ConfigFile();
# Line 46  public: Line 47  public:
47          bool Open(std::string const& configFile);          bool Open(std::string const& configFile);
48    
49          Value const& GetValue(std::string const& section, std::string const& entry) const;          Value const& GetValue(std::string const& section, std::string const& entry) const;
50            std::vector<Value> GetValues(std::string const& section, std::string const& entry) const;
51    
52          Value const& GetValue(std::string const& section, std::string const& entry, double value);          Value const& GetValue(std::string const& section, std::string const& entry, double value);
53          Value const& GetValue(std::string const& section, std::string const& entry, std::string const& value);          Value const& GetValue(std::string const& section, std::string const& entry, std::string const& value);

Legend:
Removed from v.146  
changed lines
  Added in v.201

  ViewVC Help
Powered by ViewVC 1.1.20