Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

plist::NamedEnumerationBase Class Reference

#include <plistPrimitives.h>

Inheritance diagram for plist::NamedEnumerationBase:

List of all members.


Detailed Description

provides some accessors common across NamedEnumeration types

Definition at line 364 of file plistPrimitives.h.


Public Member Functions

 NamedEnumerationBase ()
 constructor
 NamedEnumerationBase (const NamedEnumerationBase &ne)
 copy constructor
NamedEnumerationBaseoperator= (const std::string &v)
 assignment from string
NamedEnumerationBaseoperator= (const NamedEnumerationBase &ne)
 assignment (doesn't copy strictValue)
virtual NamedEnumerationBaseoperator= (const PrimitiveBase &pb)=0
 assignment (don't assign listeners); doesn't trigger fireValueChanged, subclass should do that from its own operator=() following assignment
virtual void getPreferredNames (std::map< int, std::string > &names) const =0
 fills names with the names and values for the enum -- needed for generic access to the names (e.g. UI generation)
virtual void getAllNames (std::map< std::string, int > &names) const =0
 fills names with the names and values for the enum -- needed for generic access to the names (e.g. UI generation)
std::string getDescription (bool preferredOnly=true)
 returns a string listing the available symbolic names
void setStrict (bool strict)
 sets strictValue (whether or not to allow assignment from numeric values which don't have a symbolic name)
bool getStrict () const
 returns strictValue (whether or not to allow assignment from numeric values which don't have a symbolic name)

Protected Attributes

bool strictValue
 if true, don't allow conversion from numeric string which doesn't correspond to a named value

Constructor & Destructor Documentation

plist::NamedEnumerationBase::NamedEnumerationBase (  )  [inline]

constructor

Definition at line 366 of file plistPrimitives.h.

plist::NamedEnumerationBase::NamedEnumerationBase ( const NamedEnumerationBase ne  )  [inline]

copy constructor

Definition at line 367 of file plistPrimitives.h.


Member Function Documentation

NamedEnumerationBase& plist::NamedEnumerationBase::operator= ( const NamedEnumerationBase ne  )  [inline]

assignment (doesn't copy strictValue)

Definition at line 369 of file plistPrimitives.h.

std::string plist::NamedEnumerationBase::getDescription ( bool  preferredOnly = true  ) 

returns a string listing the available symbolic names

Definition at line 241 of file plistPrimitives.cc.

Referenced by Config::vision_config::vision_config().

void plist::NamedEnumerationBase::setStrict ( bool  strict  )  [inline]

sets strictValue (whether or not to allow assignment from numeric values which don't have a symbolic name)

Definition at line 378 of file plistPrimitives.h.

bool plist::NamedEnumerationBase::getStrict (  )  const [inline]

returns strictValue (whether or not to allow assignment from numeric values which don't have a symbolic name)

Definition at line 379 of file plistPrimitives.h.


Member Data Documentation

if true, don't allow conversion from numeric string which doesn't correspond to a named value

Definition at line 382 of file plistPrimitives.h.

Referenced by getDescription().


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

Tekkotsu v4.0
Generated Thu Nov 22 00:58:58 2007 by Doxygen 1.5.4