#include <ModulesConf.h>
Public Types | |
| enum | Mode { INIT, SET, REINIT } |
| typedef map< const string, string > | EntryArg |
| typedef string | EntryCom |
Public Member Functions | |
| ModuleEntry () | |
| ~ModuleEntry () | |
| EntryCom | getComment () const |
| EntryArg | getArgument () const |
| bool | setComment (const EntryCom &com, Mode m) |
| bool | setArgument (const string arg, Mode m) |
| bool | setOption (const string option, const string value, Mode m) |
| bool | setOptions (const EntryArg &arg, Mode m) |
| bool | Set (Mode m) |
Private Attributes | |
| EntryCom | comment |
| EntryArg | argument |
| bool | dirtyflag |
This class contains one entry from the modules.conf file.
| typedef map<const string, string> ModuleEntry::EntryArg |
| typedef string ModuleEntry::EntryCom |
| enum ModuleEntry::Mode |
| ModuleEntry::ModuleEntry | ( | ) | [inline] |
Default constructor.
| ModuleEntry::~ModuleEntry | ( | ) |
Destructor.
Destrucutor
| EntryArg ModuleEntry::getArgument | ( | ) | const [inline] |
| ModuleEntry::EntryCom ModuleEntry::getComment | ( | ) | const |
| bool ModuleEntry::Set | ( | Mode | m | ) |
Sets dirty_flag. This flag stands for indicating if the entry should be reinitialized if it was modified externally in the file.
| m | Indicates if the operation is provided during (re)initialization or is done by the agent. |
References dirtyflag, INIT, REINIT, and SET.
Referenced by setArgument(), setOption(), and setOptions().
| bool ModuleEntry::setArgument | ( | const string | arg, | |
| Mode | m | |||
| ) |
Set an entry argument.
| arg | The entry argument | |
| m | Indicates if the option is set during (re)initialization or by an agent. |
References argument, MAGIC_ENTRY, Set(), and y2debug.
Set an entry comment.
| com | The entry comment | |
| m | Indicates if the option is set during (re)initialization or by an agent. |
References comment.
| bool ModuleEntry::setOption | ( | const string | option, | |
| const string | value, | |||
| Mode | m | |||
| ) |
Set an entry option.
| option | The entry option name. | |
| value | The entry option value. | |
| m | Indicates if the option is set during (re)initialization or by an agent. |
References argument, MAGIC_ENTRY, Set(), and y2debug.
Set entry options.
| arg | The entry options. | |
| m | Indicates if the option is set during (re)initialization or by an agent. |
References argument, Set(), Y2_RETURN_FALSE, and y2debug.
EntryArg ModuleEntry::argument [private] |
Referenced by getArgument(), setArgument(), setOption(), and setOptions().
EntryCom ModuleEntry::comment [private] |
Referenced by getComment(), and setComment().
bool ModuleEntry::dirtyflag [private] |
Referenced by Set().
1.5.9