Rudiments
Public Member Functions | List of all members
mvcproperties Class Reference

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 ()
 

Detailed Description

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

Constructor & Destructor Documentation

◆ mvcproperties()

mvcproperties::mvcproperties ( )

Creates an instance of the mvcproperties class.

◆ ~mvcproperties()

virtual mvcproperties::~mvcproperties ( )
virtual

Deletes this instance of the mvcproperties class.

Member Function Documentation

◆ getValue()

const char* mvcproperties::getValue ( const char *  property)

Returns the value of "property" as provided by the most recently prased file or string.

◆ parseFile()

bool mvcproperties::parseFile ( const char *  filename)

Parses the properties file "filename", discarding properties from any previously parsed file or string.

◆ parseString()

bool mvcproperties::parseString ( const char *  string)

Parses the properties string "string", discarding properties from any previously parsed file or string.