#include <emcConfigurationFile.h>
Inherits emcManageable.
Inheritance diagram for emcConfigurationFile:

Definition at line 14 of file emcConfigurationFile.h.
Public Member Functions | |
| emcConfigurationFile () | |
| default ctor. | |
| emcConfigurationFile (const char *filename) | |
| ctor from a file. | |
| virtual | ~emcConfigurationFile () |
| dtor. does nothing. | |
| const PHTimeStamp & | GetStartValTime (void) const |
| Get the start of validity period of this object. | |
| const PHTimeStamp & | GetEndValTime (void) const |
| Get the end of validity period of this object. | |
| size_t | GetSize (void) const |
| How many characters in this (string) objects. | |
| bool | IsValid (void) const |
| Tells if this object is OK or not. | |
| bool | IsValid (const PHTimeStamp &when) const |
| Tells if this object is valid for a given time. | |
| virtual const char * | GetCategory (void) const |
| Category = "CONFIG". | |
| void | SetValidityPeriod (const PHTimeStamp &t1, const PHTimeStamp &t2) |
| Set the validity period of this object. | |
| void | SetContent (const char *content) |
| Replace the (string) content. | |
| const char * | GetContent (void) const |
| Get the content. | |
| virtual void | Reset (void) |
| Reset (i.e. SetContent("")). | |
| void | Rewind (void) |
| Rewind the internal character buffer. | |
| bool | GetLine (char *s, int size) |
| Get the next line from the internal char buffer. | |
Private Attributes | |
| int | fCurrent |
| bool | fIsValid |
| std::string | fContent |
| PHTimeStamp | fStart |
| PHTimeStamp | fEnd |
|
|
default ctor.
Definition at line 19 of file emcConfigurationFile.h. References fEnd. |
|
|
ctor from a file.
Definition at line 5 of file emcConfigurationFile.C. |
|
|
dtor. does nothing.
Definition at line 26 of file emcConfigurationFile.h. |
|
|
Category = "CONFIG".
Implements emcManageable. Definition at line 44 of file emcConfigurationFile.h. |
|
|
Get the content.
Definition at line 55 of file emcConfigurationFile.h. References fContent. |
|
|
Get the end of validity period of this object.
Definition at line 32 of file emcConfigurationFile.h. References fEnd. |
|
||||||||||||
|
Get the next line from the internal char buffer.
Definition at line 32 of file emcConfigurationFile.C. References fCurrent, and GetSize(). Referenced by EmcDynamicData::ParseConfigurationFile(). |
|
|
How many characters in this (string) objects.
Definition at line 35 of file emcConfigurationFile.h. References fContent. Referenced by GetLine(). |
|
|
Get the start of validity period of this object.
Definition at line 29 of file emcConfigurationFile.h. References fStart. |
|
|
Tells if this object is valid for a given time.
Reimplemented from emcManageable. Definition at line 26 of file emcConfigurationFile.C. |
|
|
Tells if this object is OK or not.
Definition at line 38 of file emcConfigurationFile.h. References fIsValid. Referenced by EmcDynamicData::EmcDynamicData(). |
|
|
Reset (i.e. SetContent("")).
Reimplemented from emcManageable. Definition at line 58 of file emcConfigurationFile.h. References fContent. |
|
|
Rewind the internal character buffer.
Definition at line 61 of file emcConfigurationFile.h. References fCurrent. Referenced by EmcDynamicData::ParseConfigurationFile(). |
|
|
Replace the (string) content.
Definition at line 52 of file emcConfigurationFile.h. |
|
||||||||||||
|
Set the validity period of this object.
Definition at line 47 of file emcConfigurationFile.h. |
|
|
Definition at line 69 of file emcConfigurationFile.h. Referenced by emcConfigurationFile(), GetContent(), GetSize(), Reset(), and SetContent(). |
|
|
Definition at line 67 of file emcConfigurationFile.h. |
|
|
Definition at line 71 of file emcConfigurationFile.h. Referenced by emcConfigurationFile(), GetEndValTime(), IsValid(), and SetValidityPeriod(). |
|
|
Definition at line 68 of file emcConfigurationFile.h. Referenced by emcConfigurationFile(), IsValid(), and SetContent(). |
|
|
Definition at line 70 of file emcConfigurationFile.h. Referenced by GetStartValTime(), IsValid(), and SetValidityPeriod(). |