Main Page   Compound List   File List   Compound Members   File Members  

Alternative Class Reference

List of all members.

Public Methods

 Alternative (const std::string &name)
 ~Alternative ()
Alternative & operator<<= (Alternative &other)
std::string points_to () const
const std::string & name () const
const std::string & current () const
void set_current (const std::string &str)

Public Attributes

candidate_list candidates
alternative_list slaves
Alternative * parent

Private Methods

void set_dumped (bool value=false)
bool dumped () const

Private Attributes

bool _dumped
std::string _name
std::string _current

Friends

class AltStorage

Detailed Description

set of possible candidates, alternative representation


Constructor & Destructor Documentation

Alternative::Alternative const std::string &    name
 

A constructor, initialize default values

Alternative::~Alternative  
 

A destructor, clear internal structures


Member Function Documentation

const std::string & Alternative::current  
 

Returns:
current candidate in manual mode, empty string in auto mode

bool Alternative::dumped   [private]
 

Returns:
are we need to dump state of this alternative into dump.xml file

const std::string & Alternative::name  
 

Returns:
fake name of the alternative

Alternative & Alternative::operator<<= Alternative &    other
 

setup/update alternative item

Parameters:
other  new alternative

std::string Alternative::points_to  
 

Returns:
current preffered candidate

void Alternative::set_current const std::string &    str
 

setup current candidate (set alternative into manual mode)

void Alternative::set_dumped bool    value = false [private]
 

set _dumped flag, this alternative will be dumped into dump.xml file at the finish of work @value new value of the flag


Friends And Related Function Documentation

friend class AltStorage [friend]
 


Member Data Documentation

std::string Alternative::_current [private]
 

current candidate name

bool Alternative::_dumped [private]
 

flag: this is a file from dump?

std::string Alternative::_name [private]
 

fake name of the alternative

candidate_list Alternative::candidates
 

Possible candidates

Alternative* Alternative::parent
 

pointer to parent alternative if it's slave otherwise zero

alternative_list Alternative::slaves
 

possible slave alternatives: key - realname, value - alternative


The documentation for this class was generated from the following files:
Generated on Thu Jun 26 15:28:38 2003 for Alternatives by doxygen1.2.18