LogService
libdadi: utility tools for distributed applications
Public Member Functions
ReadConfig Class Reference

List of all members.

Public Member Functions

 ReadConfig (const char *configFilename, bool *success)
short parse ()
unsigned int getTracelevel ()
unsigned int getPort ()
char * getDynamicStartSuffix ()
char * getDynamicStopSuffix ()
tag_list_tgetDynamicTags ()
tag_list_tgetStaticTags ()
tag_list_tgetUniqueTags ()
tag_list_tgetVolatileTags ()
tag_list_tgetStateTags ()
tag_list_tgetAllTags ()

Member Function Documentation

tag_list_t* ReadConfig::getAllTags ( )

Get all the possible tags.

Returns:
NULL if the file was not already parsed
char* ReadConfig::getDynamicStartSuffix ( )

Get the dynamic start suffix, by default it's "START".

Returns:
the dynmaic start suffix
char* ReadConfig::getDynamicStopSuffix ( )

Get the dynamic stop suffix, by default it's "STOP".

Returns:
the dynmaic stop suffix
tag_list_t* ReadConfig::getDynamicTags ( )

Get all dynamic system state tags. If a tag name is "TAG1" then a pair of tags is expected : TAG1_START and TAG1_STOP. START and STOP names are get from getDynamicStart-StopSuffix.

Returns:
NULL if the file was not already parsed
unsigned int ReadConfig::getPort ( )

Get the Port to use for CORBA communication.

Returns:
the port or 0 if no port specified
tag_list_t* ReadConfig::getStateTags ( )

Get all the System state tags.

Returns:
NULL if the file was not already parsed
tag_list_t* ReadConfig::getStaticTags ( )

Get all static system state tags.

Returns:
NULL if the file was not already parsed
unsigned int ReadConfig::getTracelevel ( )

Get the tracelevel to use for CORBA communication.

Returns:
the tracelevel or 0 if no tracelevel specified
tag_list_t* ReadConfig::getUniqueTags ( )

Get all unique system state tags. Only one information is keeped at a time. A new tag overwrite the previous.

Returns:
NULL if the file was not already parsed
tag_list_t* ReadConfig::getVolatileTags ( )

Get all other tags (volatile tags).

Returns:
NULL if the file was not already parsed
short ReadConfig::parse ( )

Parse the config file.

Returns:
an error level

The documentation for this class was generated from the following file:
 All Classes Functions Variables