Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

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

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

#include <plistCollections.h>

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

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

List of all members.

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 (  )  [virtual]

no-op destructor

Definition at line 295 of file plistCollections.h.


Member Function Documentation

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

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]
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 >::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)


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