Rudiments
|
#include <mvc.h>
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.
Returns the value of "property" as provided by the most recently prased file or string.
Parses the properties file "filename", discarding properties from any previously parsed file or string.