#include <mtc_attributes.h>

Public Member Functions

 AttributeColoredState (void)
 
virtual ~AttributeColoredState (void)
 
bool IsDefault (void) const
 
NameSet::Iterator ColorsBegin () const
 
NameSet::Iterator ColorsEnd () const
 
const ColorSetColors (void) const
 
ColorSetColors (void)
 
void Colors (const ColorSet &rColors)
 
void ColorSymTab (SymbolTable *pSymTab)
 
SymbolTableColorSymTabp (void) const
 
- Public Member Functions inherited from faudes::AttributeFlags
 AttributeFlags (void)
 
 AttributeFlags (const AttributeFlags &rOther)
 
virtual ~AttributeFlags (void)
 
bool Test (fType mask) const
 
bool TestAll (fType mask) const
 
bool TestSome (fType mask) const
 
bool TestNone (fType mask) const
 
void Set (fType mask)
 
void Clr (fType mask)
 
Typeoperator= (const Type &rSrc)
 
bool operator== (const Type &rOther) const
 
bool operator!= (const Type &rOther) const
 
- Public Member Functions inherited from faudes::AttributeVoid
 AttributeVoid (void)
 
 AttributeVoid (const AttributeVoid &rSrcAttr)
 
virtual ~AttributeVoid (void)
 
virtual void SetDefault (void)
 
virtual void Clear (void)
 
Typeoperator= (const Type &rSrc)
 
bool operator== (const Type &rOther) const
 
bool operator!= (const Type &rOther) const
 
- Public Member Functions inherited from faudes::Type
 Type (void)
 
 Type (const Type &rType)
 
virtual ~Type (void)
 
virtual TypeNew (void) const
 
virtual TypeCopy (void) const
 
virtual const TypeCast (const Type *pOther) const
 
virtual TypeAssign (const Type &rSrc)
 
Typeoperator= (const Type &rSrc)
 
virtual bool Equal (const Type &rOther) const
 
bool operator== (const Type &rOther) const
 
bool operator!= (const Type &rOther) const
 
virtual void Name (const std::string &rName)
 
virtual const std::string & Name (void) const
 
virtual const std::string & TypeName (void) const
 
void Write (const Type *pContext=0) const
 
void Write (const std::string &pFileName, const std::string &rLabel="", const Type *pContext=0, std::ios::openmode openmode=std::ios::out|std::ios::trunc) const
 
void Write (const std::string &pFileName, std::ios::openmode openmode) const
 
void Write (TokenWriter &rTw, const std::string &rLabel="", const Type *pContext=0) const
 
virtual void XWrite (const std::string &pFileName, const std::string &rLabel="", const Type *pContext=0) const
 
void XWrite (const Type *pContext=0) const
 
void XWrite (TokenWriter &rTw, const std::string &rLabel="", const Type *pContext=0) const
 
std::string ToString (const std::string &rLabel="", const Type *pContext=0) const
 
std::string ToText (const std::string &rLabel="", const Type *pContext=0) const
 
void DWrite (const Type *pContext=0) const
 
void DWrite (const std::string &pFileName, const std::string &rLabel="", const Type *pContext=0, std::ios::openmode openmode=std::ios::out|std::ios::trunc) const
 
void DWrite (TokenWriter &rTw, const std::string &rLabel="", const Type *pContext=0) const
 
void SWrite (TokenWriter &rTw) const
 
void SWrite (void) const
 
std::string ToSText (void) const
 
void Read (const std::string &rFileName, const std::string &rLabel="", const Type *pContext=0)
 
void FromString (const std::string &rString, const std::string &rLabel="", const Type *pContext=0)
 
void Read (TokenReader &rTr, const std::string &rLabel="", const Type *pContext=0)
 

Protected Member Functions

virtual void DoAssign (const AttributeColoredState &rSrcAttr)
 
virtual bool DoEqual (const AttributeColoredState &rOther) const
 
virtual void DoWrite (TokenWriter &rTw, const std::string &rLabel="", const Type *pContext=0) const
 
virtual void DoXWrite (TokenWriter &rTw, const std::string &rLabel="", const Type *pContext=0) const
 
virtual void DoRead (TokenReader &rTr, const std::string &rLabel="", const Type *pContext=0)
 
- Protected Member Functions inherited from faudes::AttributeFlags
void DoAssign (const AttributeFlags &rSrcAttr)
 
bool DoEqual (const AttributeFlags &rOther) const
 
- Protected Member Functions inherited from faudes::AttributeVoid
void DoAssign (const AttributeVoid &rSrcAttr)
 
bool DoEqual (const AttributeVoid &rOther) const
 
virtual void DoDWrite (TokenWriter &rTw, const std::string &rLabel="", const Type *pContext=0) const
 
- Protected Member Functions inherited from faudes::Type
void DoAssign (const Type &rSrc)
 
bool DoEqual (const Type &rOther) const
 
virtual void DoSWrite (TokenWriter &rTw) const
 
virtual const TypeDefinitionTypeDefinitionp (void) const
 
virtual Token XBeginTag (const std::string &rLabel="", const std::string &rFallbackLabel="") const
 

Protected Attributes

ColorSet mColors
 
SymbolTablempColorSymbolTable
 

Additional Inherited Members

- Static Public Member Functions inherited from faudes::AttributeVoid
static void Skip (TokenReader &rTr)
 
- Public Attributes inherited from faudes::AttributeFlags
fType mFlags
 
- Static Public Attributes inherited from faudes::AttributeFlags
static const fType mDefFlags =0x0
 

Detailed Description

State attributes for multitasking automata

Definition at line 41 of file mtc_attributes.h.

Constructor & Destructor Documentation

◆ AttributeColoredState()

faudes::AttributeColoredState::AttributeColoredState ( void  )
inline

Default constructor

Definition at line 49 of file mtc_attributes.h.

◆ ~AttributeColoredState()

virtual faudes::AttributeColoredState::~AttributeColoredState ( void  )
inlinevirtual

Definition at line 52 of file mtc_attributes.h.

Member Function Documentation

◆ Colors() [1/3]

void faudes::AttributeColoredState::Colors ( const ColorSet rColors)
inline

Set the color set

Parameters
rColorsNew color set

Definition at line 95 of file mtc_attributes.h.

◆ Colors() [2/3]

ColorSet& faudes::AttributeColoredState::Colors ( void  )
inline

Writable access to color set

Returns
Reference to attribute data

Definition at line 87 of file mtc_attributes.h.

◆ Colors() [3/3]

const ColorSet& faudes::AttributeColoredState::Colors ( void  ) const
inline

Read access to color set

Returns
Reference to attribute data

Definition at line 78 of file mtc_attributes.h.

◆ ColorsBegin()

NameSet::Iterator faudes::AttributeColoredState::ColorsBegin ( ) const

Iterator for first entry in mColors

Definition at line 76 of file mtc_attributes.cpp.

◆ ColorsEnd()

NameSet::Iterator faudes::AttributeColoredState::ColorsEnd ( ) const

Iterator for last entry in mColors

Definition at line 81 of file mtc_attributes.cpp.

◆ ColorSymTab()

void faudes::AttributeColoredState::ColorSymTab ( SymbolTable pSymTab)

Set pointer to color symbol table

Parameters
pSymTabNew color symbol table

Definition at line 86 of file mtc_attributes.cpp.

◆ ColorSymTabp()

SymbolTable * faudes::AttributeColoredState::ColorSymTabp ( void  ) const

Get pointer to color symbol table

Returns
Pointer to current color symbol table

Definition at line 91 of file mtc_attributes.cpp.

◆ DoAssign()

void faudes::AttributeColoredState::DoAssign ( const AttributeColoredState rSrcAttr)
protectedvirtual

Assignment method.

Parameters
rSrcAttrSource to assign from

Definition at line 35 of file mtc_attributes.cpp.

◆ DoEqual()

bool faudes::AttributeColoredState::DoEqual ( const AttributeColoredState rOther) const
protectedvirtual

Test equality of configuration data.

Parameters
rOtherOther attribute to compare with.
Returns
True on match.

Definition at line 43 of file mtc_attributes.cpp.

◆ DoRead()

void faudes::AttributeColoredState::DoRead ( TokenReader rTr,
const std::string &  rLabel = "",
const Type pContext = 0 
)
protectedvirtual

Read attributes from tokenreader

Parameters
rTrTokenreader to read from
rLabelSection to read
pContextRead context to provide contextual information
Exceptions
ExceptionThrown on file format errors (ids 50, 51)

Reimplemented from faudes::AttributeFlags.

Definition at line 66 of file mtc_attributes.cpp.

◆ DoWrite()

void faudes::AttributeColoredState::DoWrite ( TokenWriter rTw,
const std::string &  rLabel = "",
const Type pContext = 0 
) const
protectedvirtual

Write attributes to tokenwriter

Parameters
rTwTokenreader to write to
rLabelSection to write
pContextWrite context to provide contextual information
Exceptions
ExceptionI/O errors

Reimplemented from faudes::AttributeFlags.

Definition at line 55 of file mtc_attributes.cpp.

◆ DoXWrite()

void faudes::AttributeColoredState::DoXWrite ( TokenWriter rTw,
const std::string &  rLabel = "",
const Type pContext = 0 
) const
protectedvirtual

Write attributes to tokenwriter

Parameters
rTwTokenreader to write to
rLabelSection to write
pContextWrite context to provide contextual information
Exceptions
ExceptionI/O errors

Reimplemented from faudes::AttributeFlags.

Definition at line 60 of file mtc_attributes.cpp.

◆ IsDefault()

bool faudes::AttributeColoredState::IsDefault ( void  ) const
inlinevirtual

Test for default value

Returns
True for defaultvalue

Reimplemented from faudes::AttributeFlags.

Definition at line 60 of file mtc_attributes.h.

Member Data Documentation

◆ mColors

ColorSet faudes::AttributeColoredState::mColors
protected

Colorset

Definition at line 116 of file mtc_attributes.h.

◆ mpColorSymbolTable

SymbolTable* faudes::AttributeColoredState::mpColorSymbolTable
protected

Pointer to colorsymboltable

Definition at line 119 of file mtc_attributes.h.


The documentation for this class was generated from the following files:

libFAUDES 2.33b --- 2025.05.07 --- c++ api documentaion by doxygen