Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

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

#include <plistCollections.h>

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

List of all members.


Detailed Description

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

This base conversion policy doesn't actually specify any conversions at all -- this serves as a base class to provide the ability to directly add entries of the specified type; the subclasses will add value conversions.

This class is useless to end users: to use it they would have to know the template type being used, which if they knew, they could just dynamic_cast to the DictionaryOf type directly. The point of this class is to provide the abstract functions to the its subclasses, which use them to implement their various conversions.

Definition at line 202 of file plistCollections.h.


Public Member Functions

virtual ~EntryConstraint ()
virtual void setEntry (const std::string &name, PO &val, bool warnExists=false)=0
 insert a new entry to the dictionary, with key name and value val (replaces any previous entry by same name, but can give a warning)
virtual void addEntry (const std::string &name, PO &val, const std::string &comment="", bool warnExists=true)=0
 insert a new entry to the dictionary, with key name and value val (replaces any previous entry by same name with a warning)
virtual void setEntry (const std::string &name, PO *val, bool warnExists=false)=0
 insert a new entry to the dictionary, with key name and value val (replaces any previous entry by same name, but can give a warning); control of (de)allocation will be assumed by the dictionary
virtual void addEntry (const std::string &name, PO *val, const std::string &comment="", bool warnExists=true)=0
 insert a new entry to the dictionary, with key name and value val (replaces any previous entry by same name with a warning); control of (de)allocation will be assumed by the dictionary

Constructor & Destructor Documentation

template<typename PO>
virtual plist::DictionaryBase::EntryConstraint< PO >::~EntryConstraint (  )  [inline, virtual]

no-op destructor

Definition at line 203 of file plistCollections.h.


Member Function Documentation

template<typename PO>
virtual void plist::DictionaryBase::EntryConstraint< PO >::setEntry ( const std::string &  name,
PO &  val,
bool  warnExists = false 
) [pure virtual]

insert a new entry to the dictionary, with key name and value val (replaces any previous entry by same name, but can give a warning)

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

insert a new entry to the dictionary, with key name and value val (replaces any previous entry by same name with a warning)

Referenced by plist::DictionaryBase::WrapValueConversion< PO >::addValue(), and plist::DictionaryBase::ConversionTo< PO >::addValue().

template<typename PO>
virtual void plist::DictionaryBase::EntryConstraint< PO >::setEntry ( const std::string &  name,
PO *  val,
bool  warnExists = false 
) [pure virtual]

insert a new entry to the dictionary, with key name and value val (replaces any previous entry by same name, but can give a warning); control of (de)allocation will be assumed by the dictionary

template<typename PO>
virtual void plist::DictionaryBase::EntryConstraint< PO >::addEntry ( const std::string &  name,
PO *  val,
const std::string &  comment = "",
bool  warnExists = true 
) [pure virtual]

insert a new entry to the dictionary, with key name and value val (replaces any previous entry by same name with a warning); control of (de)allocation will be assumed by the dictionary


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

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