Rudiments
|
Inherits object.
Public Member Functions | |
mvcproperties () | |
virtual | ~mvcproperties () |
bool | parseFile (const char *filename) |
bool | parseString (const char *string) |
const char * | getValue (const char *property) |
Public Member Functions inherited from object | |
virtual | ~object () |
The mvcproperties class provides methods for parsing java-style properties files or strings, and returning property values.
The format of the property file or string should follow this example:
#pound comment !exclamation comment key1=value1 key2=value2
key 3=value 3 key 4=value 4
mvcproperties::mvcproperties | ( | ) |
Creates an instance of the mvcproperties class.
|
virtual |
Deletes this instance of the mvcproperties class.
const char* mvcproperties::getValue | ( | const char * | property | ) |
Returns the value of "property" as provided by the most recently prased file or string.
bool mvcproperties::parseFile | ( | const char * | filename | ) |
Parses the properties file "filename", discarding properties from any previously parsed file or string.
bool mvcproperties::parseString | ( | const char * | string | ) |
Parses the properties string "string", discarding properties from any previously parsed file or string.