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

Get all the possible tags.

Returns:
NULL if the file was not already parsed

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

Returns:
the dynmaic start suffix

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

Returns:
the dynmaic stop suffix

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

Get all the System state tags.

Returns:
NULL if the file was not already parsed

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

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

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