Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

plist::DictionaryBase::IntegerConversion Struct Reference

#include <plistCollections.h>

Inheritance diagram for plist::DictionaryBase::IntegerConversion:

List of all members.


Detailed Description

Abstract base class to test whether the collection will accept integers (possibly converting to another value type, or storing directly as a [unsigned] long depending on concrete type).

The point of this class is to handle the situation where you have a DictionaryBase and user input to append, and you don't want to have to test every combination of template parameters to DictionaryOf to find out if you can add the data. Instead, test dynamic_cast<plist::DictionaryBase::IntegerConversion>, and if it is successful, you can pass the data without having to know the actual value type of the dictionary.

Definition at line 230 of file plistCollections.h.


Public Member Functions

virtual ~IntegerConversion ()
virtual void addValue (const std::string &name, long val, const std::string &comment="", bool warnExists=true)=0
 generic addition of value, control of (de)allocation of corresponding Primitive instance will be assumed by the dictionary
virtual void addValue (const std::string &name, unsigned long val, const std::string &comment="", bool warnExists=true)=0
 generic addition of value, control of (de)allocation of corresponding Primitive instance will be assumed by the dictionary

Constructor & Destructor Documentation

virtual plist::DictionaryBase::IntegerConversion::~IntegerConversion (  )  [inline, virtual]

no-op destructor

Definition at line 231 of file plistCollections.h.


Member Function Documentation

virtual void plist::DictionaryBase::IntegerConversion::addValue ( const std::string &  name,
long  val,
const std::string &  comment = "",
bool  warnExists = true 
) [pure virtual]

generic addition of value, control of (de)allocation of corresponding Primitive instance will be assumed by the dictionary

Implemented in plist::DictionaryBase::ConversionTo< PO >, and plist::DictionaryBase::WrapValueConversion< PO >.

virtual void plist::DictionaryBase::IntegerConversion::addValue ( const std::string &  name,
unsigned long  val,
const std::string &  comment = "",
bool  warnExists = true 
) [pure virtual]

generic addition of value, control of (de)allocation of corresponding Primitive instance will be assumed by the dictionary

Implemented in plist::DictionaryBase::ConversionTo< PO >, and plist::DictionaryBase::WrapValueConversion< PO >.


The documentation for this struct was generated from the following file:

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