Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

plist::ArrayBase::IntegerConversion Struct Reference

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). More...

#include <plistCollections.h>


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 984 of file plistCollections.h.

List of all members.

Public Member Functions

virtual ~IntegerConversion ()
virtual void addValue (long val, const std::string &comment="", bool warnExists=true)=0
 generic addition of value at end of collection, control of (de)allocation of corresponding Primitive instance will be assumed by the Array
virtual void addValue (unsigned long val, const std::string &comment="", bool warnExists=true)=0
 generic addition of value at end of collection, control of (de)allocation of corresponding Primitive instance will be assumed by the Array
virtual void addValue (size_t index, long val, const std::string &comment="", bool warnExists=true)=0
 generic addition of value at specified position, control of (de)allocation of corresponding Primitive instance will be assumed by the Array
virtual void addValue (size_t index, unsigned long val, const std::string &comment="", bool warnExists=true)=0
 generic addition of value at specified position, control of (de)allocation of corresponding Primitive instance will be assumed by the Array

Constructor & Destructor Documentation

virtual plist::ArrayBase::IntegerConversion::~IntegerConversion (  )  [virtual]

no-op destructor

Definition at line 985 of file plistCollections.h.


Member Function Documentation

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

generic addition of value at specified position, control of (de)allocation of corresponding Primitive instance will be assumed by the Array

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

generic addition of value at specified position, control of (de)allocation of corresponding Primitive instance will be assumed by the Array

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

generic addition of value at end of collection, control of (de)allocation of corresponding Primitive instance will be assumed by the Array

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

generic addition of value at end of collection, control of (de)allocation of corresponding Primitive instance will be assumed by the Array


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

Tekkotsu v5.1CVS
Generated Mon May 9 04:59:25 2016 by Doxygen 1.6.3