Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

plist::DictionaryBase::WrapValueConversion< PO > Struct Template Reference

#include <plistCollections.h>

Inheritance diagram for plist::DictionaryBase::WrapValueConversion< PO >:

List of all members.


Detailed Description

template<typename PO>
struct plist::DictionaryBase::WrapValueConversion< PO >

This conversion policy accepts any entries of the specified template type, values will be directly wrapped as Primitives so no conversion at all is actually performed.

Use addEntry() to add ObjectBase subclasses -- addValue is for POD types

Definition at line 270 of file plistCollections.h.


Public Member Functions

template<typename T>
void addValue (const std::string &name, const T &val, const std::string &comment="", bool warnExists=true)
 insert a new entry to the map, and corresponding comment; expects val to be either a primitive type, like int, float, etc., control of (de)allocation of corresponding Primitive instance will be assumed by the dictionary
virtual void addValue (const std::string &name, const std::string &val, const std::string &comment="", bool warnExists=true)
 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, char val[], const std::string &comment="", bool warnExists=true)
 "specialization" (actually just another override) for handling character arrays as strings, control of (de)allocation of corresponding Primitive instance will be assumed by the dictionary
virtual void addValue (const std::string &name, const char val[], const std::string &comment="", bool warnExists=true)
 "specialization" (actually just another override) for handling character arrays as strings, control of (de)allocation of corresponding Primitive instance will be assumed by the dictionary
virtual void addValue (const std::string &name, long val, const std::string &comment="", bool warnExists=true)
 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)
 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, double val, const std::string &comment="", bool warnExists=true)
 generic addition of value, control of (de)allocation of corresponding Primitive instance will be assumed by the dictionary

Member Function Documentation

template<typename PO>
template<typename T>
void plist::DictionaryBase::WrapValueConversion< PO >::addValue ( const std::string &  name,
const T &  val,
const std::string &  comment = "",
bool  warnExists = true 
) [inline]

insert a new entry to the map, and corresponding comment; expects val to be either a primitive type, like int, float, etc., control of (de)allocation of corresponding Primitive instance will be assumed by the dictionary

Definition at line 273 of file plistCollections.h.

template<typename PO>
virtual void plist::DictionaryBase::WrapValueConversion< PO >::addValue ( const std::string &  name,
const std::string &  val,
const std::string &  comment = "",
bool  warnExists = true 
) [inline, virtual]

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

Implements plist::DictionaryBase::StringConversion.

Definition at line 274 of file plistCollections.h.

template<typename PO>
virtual void plist::DictionaryBase::WrapValueConversion< PO >::addValue ( const std::string &  name,
char  val[],
const std::string &  comment = "",
bool  warnExists = true 
) [inline, virtual]

"specialization" (actually just another override) for handling character arrays as strings, control of (de)allocation of corresponding Primitive instance will be assumed by the dictionary

Definition at line 276 of file plistCollections.h.

template<typename PO>
virtual void plist::DictionaryBase::WrapValueConversion< PO >::addValue ( const std::string &  name,
const char  val[],
const std::string &  comment = "",
bool  warnExists = true 
) [inline, virtual]

"specialization" (actually just another override) for handling character arrays as strings, control of (de)allocation of corresponding Primitive instance will be assumed by the dictionary

Definition at line 278 of file plistCollections.h.

template<typename PO>
virtual void plist::DictionaryBase::WrapValueConversion< PO >::addValue ( const std::string &  name,
long  val,
const std::string &  comment = "",
bool  warnExists = true 
) [inline, virtual]

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

Implements plist::DictionaryBase::IntegerConversion.

Definition at line 279 of file plistCollections.h.

template<typename PO>
virtual void plist::DictionaryBase::WrapValueConversion< PO >::addValue ( const std::string &  name,
unsigned long  val,
const std::string &  comment = "",
bool  warnExists = true 
) [inline, virtual]

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

Implements plist::DictionaryBase::IntegerConversion.

Definition at line 280 of file plistCollections.h.

template<typename PO>
virtual void plist::DictionaryBase::WrapValueConversion< PO >::addValue ( const std::string &  name,
double  val,
const std::string &  comment = "",
bool  warnExists = true 
) [inline, virtual]

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

Implements plist::DictionaryBase::RealConversion.

Definition at line 281 of file plistCollections.h.


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