faudes::ColorSet Class Reference
[Multitasking PlugIn]

Container for colors: this is a NameSet with its own static symboltable. More...

#include <mtc_colorset.h>

List of all members.

Public Member Functions

 ColorSet (void)
 Constructor for ColorSet with static ColorSymbolTable.
 ColorSet (SymbolTable *pSymTab)
 Constructor for ColorSet with specified symbol table.
 ColorSet (const std::string &rFilename, const std::string &rLabel="Colors")
 Constructor for ColorSet with static ColorSymbolTable.
virtual ~ColorSet (void)
void ColorSymbolTablep (SymbolTable *pSymTab)
 Reset pointer mpSymbolTable.
ColorSet operator* (const ColorSet &rOtherSet) const
 Set intersection operator.
ColorSet operator+ (const ColorSet &rOtherSet) const
 Set union operator.
ColorSet operator- (const ColorSet &rOtherSet) const
 Set difference operator.
bool operator<= (const ColorSet &rOtherSet) const
 Test for subset.
bool operator>= (const ColorSet &rOtherSet) const
 Test for superset.

Static Public Member Functions

static SymbolTableStaticSymbolTablep (void)
 Get pointer to static ColorSymbolTable.

Protected Member Functions

virtual void DoAssign (const ColorSet &rSourceSet)
 Assign from other color set.

Static Protected Attributes

static SymbolTable msSymbolTable
 Static global symbol table for color names.

Detailed Description

Container for colors: this is a NameSet with its own static symboltable.

Definition at line 41 of file mtc_colorset.h.


Constructor & Destructor Documentation

faudes::ColorSet::ColorSet ( void   )  [inline]

Constructor for ColorSet with static ColorSymbolTable.

Definition at line 50 of file mtc_colorset.h.

faudes::ColorSet::ColorSet ( SymbolTable pSymTab  )  [inline]

Constructor for ColorSet with specified symbol table.

Definition at line 58 of file mtc_colorset.h.

faudes::ColorSet::ColorSet ( const std::string &  rFilename,
const std::string &  rLabel = "Colors" 
) [inline]

Constructor for ColorSet with static ColorSymbolTable.

This version reads a file with given label to find the colors inside the file.

Parameters:
rFilename Filename
rLabel Token label for the colors in the file; default value "Colors"

Definition at line 73 of file mtc_colorset.h.

virtual faudes::ColorSet::~ColorSet ( void   )  [inline, virtual]

Definition at line 77 of file mtc_colorset.h.


Member Function Documentation

void faudes::ColorSet::ColorSymbolTablep ( SymbolTable pSymTab  ) 

Reset pointer mpSymbolTable.

Parameters:
pSymTab Pointer to new symbol table

Definition at line 64 of file mtc_colorset.cpp.

void faudes::ColorSet::DoAssign ( const ColorSet rSourceSet  )  [protected, virtual]

Assign from other color set.

Parameters:
rSourceSet Destination to copy from
Returns:
ref to this set

Definition at line 45 of file mtc_colorset.cpp.

ColorSet faudes::ColorSet::operator* ( const ColorSet rOtherSet  )  const

Set intersection operator.

Returns:
Intersection ColorSet

Definition at line 69 of file mtc_colorset.cpp.

ColorSet faudes::ColorSet::operator+ ( const ColorSet rOtherSet  )  const

Set union operator.

Returns:
Union Set

Definition at line 77 of file mtc_colorset.cpp.

ColorSet faudes::ColorSet::operator- ( const ColorSet rOtherSet  )  const

Set difference operator.

Returns:
Difference ColorSet

Definition at line 85 of file mtc_colorset.cpp.

bool faudes::ColorSet::operator<= ( const ColorSet rOtherSet  )  const

Test for subset.

Definition at line 93 of file mtc_colorset.cpp.

bool faudes::ColorSet::operator>= ( const ColorSet rOtherSet  )  const

Test for superset.

Definition at line 98 of file mtc_colorset.cpp.

SymbolTable * faudes::ColorSet::StaticSymbolTablep ( void   )  [static]

Get pointer to static ColorSymbolTable.

Returns:
Pointer to static ColorSymbolTable

Definition at line 59 of file mtc_colorset.cpp.


Member Data Documentation

Static global symbol table for color names.

Definition at line 130 of file mtc_colorset.h.


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

libFAUDES 2.23h --- 2014.04.03 --- c++ api documentaion by doxygen