topical media & game development

talk show tell print

server-socket-configfile.h / h



  ifndef __CONFIG_FILE_H__
  define __CONFIG_FILE_H__
  
  include <hush/export.h>
  include <string>
  include <map>
  
  include "socket/Chameleon.h"
  
  class  ConfigFile {
    std::map<std::string,Chameleon> content_;
  
  public:
    ConfigFile(std::string const& configFile);
  
    Chameleon const& Value(std::string const& section, std::string const& entry) const;
  
    Chameleon const& Value(std::string const& section, std::string const& entry, double value);
    Chameleon const& Value(std::string const& section, std::string const& entry, std::string const& value);
  };
  
  endif
  


(C) Æliens 23/08/2009

You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.