Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

plist::NamedEnumerationBase Class Reference

#include <plistPrimitives.h>

Inheritance diagram for plist::NamedEnumerationBase:

Inheritance graph
[legend]
List of all members.

Detailed Description

provides some accessors common across NamedEnumeration types

Definition at line 291 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 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


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

Tekkotsu v3.0
Generated Fri May 11 20:09:12 2007 by Doxygen 1.4.7