#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& section, const ACE_TString& path, FILE* out) |
const ACE_TCHAR* | skip_whitespace (const ACE_TCHAR *src) |
int | string_has_white_space (const ACE_TCHAR *string_value) |
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. Reimplemented from 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. Reimplemented from ACE_Config_ImpExp_Base. |
|
|
|
Method to skip whitespaces in a string. Whitespace is defined as: spaces (' ') and tabs ('\t'). Returns a pointer to the first non-whitespace character in the buffer provided. It does return null ('\0') if it is reached |
|
Looks in provided string for whitespace. Whitespace is defined as spaces (' ') and tabs ('\t'). Returns true if found and false if not found |