#include <Configuration_Import_Export.h>
Inheritance diagram for ACE_Ini_ImpExp:
Public Methods | |
ACE_Ini_ImpExp (ACE_Configuration &) | |
virtual | ~ACE_Ini_ImpExp (void) |
virtual int | import_config (const ACE_TCHAR *filename) |
virtual int | export_config (const ACE_TCHAR *filename) |
Private Methods | |
int | export_section (const ACE_Configuration_Section_Key §ion, const ACE_TString &path, FILE *out) |
ACE_TCHAR * | squish (ACE_TCHAR *src) |
ACE_Ini_ImpExp (const ACE_Ini_ImpExp &) | |
ACE_Ini_ImpExp & | operator= (const ACE_Ini_ImpExp &) |
This method allows for lines in the .ini or .conf file like this:
TimeToLive = 100 Delay = FALSE Flags = FF34 Heading = "ACE - Adaptive Communication Environment"
(note leading whitespace (tabs) in examples below)
SeekIndex = 14 TraceLevel = 6 # Can comment lines like this Justification = left_justified
The caller can then retrieve the string with the regular <get_string_value> function and convert the string to the desired data type.
|
Construction |
|
Destructor |
|
|
|
This method exports the entire configuration database to filename. Once the file is opened this method calls export_section() passing the root section. Implements ACE_Config_ImpExp_Base. |
|
Method provided by derived classes in order to write one section to the file specified. Called by export_config() when exporting the entire configuration object. |
|
Imports the configuration database from filename. No existing data is removed. Implements ACE_Config_ImpExp_Base. |
|
|
|
Method to squish leading and trailing whitespaces in a string. Whitespace is defined as: spaces (' '), tabs ('\t') or cr/lf. Returns a pointer to the first non-whitespace character in the buffer provided, or a pointer to the terminating null if the string is all whitespace. The terminating null is moved forward to the first character past the last non-whitespace. |