Portability Libraries  2015.2.0.0
Common Methods and Objects for Platform Independance.
SoftwareAndServices::Library::Common::config Class Reference

#include "<SaS/Common/config.hpp>"

+ Inheritance diagram for SoftwareAndServices::Library::Common::config:
+ Collaboration diagram for SoftwareAndServices::Library::Common::config:

Public Member Functions

 config ()
virtual ~config ()
bool Add (const char *tag, const char *value, bool override=false)
bool Add (const char *tag, const char *value, int Code1, int Code2, bool override=false)
const char * Get (const char *tag) const
const char * Get (const char *tag, int &Code1, int &Code2) const
int Has (const char *tag) const
bool Read (const char *configFileName)
bool Remove (const char *tag, const char *value=NULL, bool all=false)
bool Write (const char *ConfigFileName) const
- Public Member Functions inherited from SoftwareAndServices::Library::Common::instance< config >
 instance ()
virtual InstanceCount_t decInstance () const
virtual InstanceCount_t getInstance () const
virtual InstanceCount_t incInstance () const
void operator delete (void *ToFree)

Detailed Description

This class is used to read and write standard configuration files. Blank lines and lines starting with '#' are ignored. Everything after a '#' in a line is ignored.

This object is being deprecated as back end code.
See also
Preference Preference uses config for file I/O. The Preference object has more options for varying data types.

Definition at line 112 of file config.hpp.

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