SymbolSpace Class Reference

SymbolSpace used to translate a symbolic name to a UL. More...

#include <mdobject.h>

Inheritance diagram for SymbolSpace:

RefCount IRefCount List of all members.

Public Member Functions

 SymbolSpace (std::string Name)
 Construct a new symbol space.
bool AddSymbol (std::string Symbol, ULPtr &UL)
 Add a new symbol to this symbol space.
ULPtr Find (std::string Symbol, bool SearchAll=false)
 Locate the given symbol in this symbol space, optionally check all other spaces too.
const std::string & Name (void) const
 Get the name of this symbol space.

Static Public Member Functions

static SymbolSpacePtr FindSymbolSpace (std::string Name)
 Find the symbol space with a given name.

Protected Attributes

std::string SymName
 The name of this symbol space.

Static Protected Attributes

static SymbolSpaceMap AllSymbolSpaces
 Map of all existing symbol spaces by name to allow full searching.

Private Member Functions

 SymbolSpace (const SymbolSpace &rhs)
 Prevent copy construction by NOT having an implementation to this copy constructor.

Detailed Description

SymbolSpace used to translate a symbolic name to a UL.


Constructor & Destructor Documentation

SymbolSpace ( const SymbolSpace rhs  )  [private]

Prevent copy construction by NOT having an implementation to this copy constructor.

SymbolSpace ( std::string  Name  )  [inline]

Construct a new symbol space.


Member Function Documentation

bool AddSymbol ( std::string  Symbol,
ULPtr UL 
) [inline]

Add a new symbol to this symbol space.

Returns:
true if added OK, else false (most likely a duplicate symbol name)

ULPtr Find ( std::string  Symbol,
bool  SearchAll = false 
) [inline]

Locate the given symbol in this symbol space, optionally check all other spaces too.

static SymbolSpacePtr FindSymbolSpace ( std::string  Name  )  [inline, static]

Find the symbol space with a given name.

const std::string& Name ( void   )  const [inline]

Get the name of this symbol space.


Member Data Documentation

SymbolSpaceMap AllSymbolSpaces [static, protected]

Map of all existing symbol spaces by name to allow full searching.

std::string SymName [protected]

The name of this symbol space.


The documentation for this class was generated from the following files:
Generated on Mon Apr 2 15:20:59 2007 for MXFLib by  doxygen 1.5.1-p1