ModuleEntry Class Reference

One entry in the modules.conf file. More...

#include <ModulesConf.h>

List of all members.

Public Types

typedef map< const string,
string > 
EntryArg
typedef string EntryCom
enum  Mode { INIT, SET, REINIT }

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


Detailed Description

One entry in the modules.conf file.

This class contains one entry from the modules.conf file.

Author:
Michal Svec <msvec@suse.cz>

Dan Vesely <dan@suse.cz>

See also:
ModulesConf


Member Typedef Documentation

typedef map<const string, string> ModuleEntry::EntryArg
 

typedef string ModuleEntry::EntryCom
 


Member Enumeration Documentation

enum ModuleEntry::Mode
 

Enumerator:
INIT 
SET 
REINIT 


Constructor & Destructor Documentation

ModuleEntry::ModuleEntry  )  [inline]
 

Default constructor.

ModuleEntry::~ModuleEntry  ) 
 

Destructor.


Member Function Documentation

EntryArg ModuleEntry::getArgument  )  const [inline]
 

Return an entry argument.

Returns:
an entry argument

ModuleEntry::EntryCom ModuleEntry::getComment  )  const
 

Return an entry comment.

Returns:
an entry comment

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.

Parameters:
m Indicates if the operation is provided during (re)initialization or is done by the agent.
Returns:
true if the entry can be changed.

bool ModuleEntry::setArgument const string  arg,
Mode  m
 

Set an entry argument.

Parameters:
arg The entry argument
m Indicates if the option is set during (re)initialization or by an agent.
Returns:
if the operation was successful

bool ModuleEntry::setComment const EntryCom com,
Mode  m
[inline]
 

Set an entry comment.

Parameters:
com The entry comment
m Indicates if the option is set during (re)initialization or by an agent.
Returns:
if the operation was successful

bool ModuleEntry::setOption const string  option,
const string  value,
Mode  m
 

Set an entry option.

Parameters:
option The entry option name.
value The entry option value.
m Indicates if the option is set during (re)initialization or by an agent.
Returns:
if the operation was successful

bool ModuleEntry::setOptions const EntryArg arg,
Mode  m
 

Set entry options.

Parameters:
arg The entry options.
m Indicates if the option is set during (re)initialization or by an agent.
Returns:
if the operation was successful


Member Data Documentation

EntryArg ModuleEntry::argument [private]
 

EntryCom ModuleEntry::comment [private]
 

bool ModuleEntry::dirtyflag [private]
 


The documentation for this class was generated from the following files:
Generated on Fri Jun 16 18:07:46 2006 for yast2-core by  doxygen 1.4.6