SC2API
An API for AI for StarCraft II
Public Types | Public Member Functions | List of all members
sc2::PropertyReader Class Reference

Public Types

typedef std::unordered_map< std::string, std::string >::const_iterator ConstMapIterator
 
typedef std::unordered_map< std::string, std::string > PropertiesMap
 

Public Member Functions

 PropertyReader (const std::string &file_name)
 
bool IsLoaded () const
 
bool LoadFile (const std::string &file_name)
 
void Free ()
 
bool Read (const std::string &key, std::function< void(const std::string &v)> convert)
 
bool ReadInt (const std::string &key, int &value)
 
bool ReadFloat (const std::string &key, float &value)
 
bool ReadString (const std::string &key, std::string &value)
 

The documentation for this class was generated from the following file: