Tekkotsu Homepage | Demos | Overview | Downloads | Dev. Resources | Reference | Credits |
plist::DictionaryBase::ConversionTo< PO > Struct Template Reference#include <plistCollections.h>
Inheritance diagram for plist::DictionaryBase::ConversionTo< PO >:
![]() Detailed Descriptiontemplate<typename PO>
This conversion policy accepts entries of the specified template type, and will try to create new instances of that type constructed from any values which are passed.
|
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., or one of the variable-sized Collection's, like Array, 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 |
void plist::DictionaryBase::ConversionTo< 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., or one of the variable-sized Collection's, like Array, control of (de)allocation of corresponding Primitive instance will be assumed by the dictionary
Definition at line 256 of file plistCollections.h.
virtual void plist::DictionaryBase::ConversionTo< 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 257 of file plistCollections.h.
virtual void plist::DictionaryBase::ConversionTo< 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 259 of file plistCollections.h.
virtual void plist::DictionaryBase::ConversionTo< 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 261 of file plistCollections.h.
virtual void plist::DictionaryBase::ConversionTo< 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 262 of file plistCollections.h.
virtual void plist::DictionaryBase::ConversionTo< 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 263 of file plistCollections.h.
virtual void plist::DictionaryBase::ConversionTo< 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 264 of file plistCollections.h.
Tekkotsu v4.0 |
Generated Thu Nov 22 00:58:54 2007 by Doxygen 1.5.4 |