Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

plistPrimitives.h File Reference

#include "plistBase.h"
#include "string_util.h"
#include <limits>
#include <typeinfo>
#include <algorithm>
#include <map>
#include <libxml/xmlmemory.h>
Include dependency graph for plistPrimitives.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  plist::Primitive< T >
struct  plist::Primitive< T >::conversion_policy< U, V >
struct  plist::AutoPrimitiveListener
 Auto subscribe/unsubscribe from a Primitive. More...
struct  plist::PrimitiveCallbackMember< O >
 Produces a callback on a member function when the value changes. More...
class  plist::NamedEnumerationBase
class  plist::NamedEnumeration< T >
 Provides an interface for the use of enumerations in a plist -- you can specify values by either the string name or the corresponding integer value. More...
struct  plist::NamedEnumeration< T >::conversion_policy< U, V >

Namespaces

namespace  plist
 

A collection of classes to implement the Propery List data storage format, a XML standard used by Apple and others.


Defines

#define INSTANTIATE_ALL_NAMEDENUMERATION_STATICS()
 Unless you enable GLOBAL_PLIST_STATICS, call this macro in each translation unit which introduces new template types.
#define INSTANTIATE_NAMEDENUMERATION_STATICS(T)
 Unless you enable GLOBAL_PLIST_STATICS, call this macro in one of your source files to provide a definition of the statics for a specific type.

Functions

template<typename T >
const char * plist::getTypeName ()
 returns a string indicating the plist entry type to use for the specified type
libxml2 forward declarations

forward declaration of the libxml2 struct of the same name

xmlNodexmlAddPrevSibling (xmlNode *node, xmlNode *sibling)
xmlNodexmlNewText (const xmlChar *s)
xmlNodexmlNewComment (const xmlChar *s)
xmlNodexmlAddChild (xmlNode *parent, xmlNode *child)
xmlNodexmlNewChild (xmlNode *parent, xmlNs *ns, const xmlChar *name, const xmlChar *content)
int xmlStrEqual (const xmlChar *a, const xmlChar *b)
xmlCharxmlNodeGetContent (xmlNode *node)
void xmlNodeSetContent (xmlNode *node, const xmlChar *content)
xmlAttrxmlHasProperty (xmlNode *node, const xmlChar *name)
xmlCharxmlGetProperty (xmlNode *node, const xmlChar *name)
long xmlGetLineNo (xmlNode *node)
xmlCharxmlGetNodePath (xmlNode *node)
void xmlNodeSetName (xmlNode *node, const xmlChar *name)
void xmlFreeNode (xmlNode *node)
void xmlUnlinkNode (xmlNode *node)

Detailed Description

Author:
Ethan Tira-Thompson (ejt) (Creator)

Definition in file plistPrimitives.h.


Define Documentation

 
#define INSTANTIATE_ALL_NAMEDENUMERATION_STATICS (  ) 
Value:
namespace plist { \
    template<typename T> std::map<std::string,T> NamedEnumeration<T>::namesToVals; \
    template<typename T> std::map<T,std::string> NamedEnumeration<T>::valsToNames; \
  }

Unless you enable GLOBAL_PLIST_STATICS, call this macro in each translation unit which introduces new template types.

See also:
NamedEnumeration for further discussion

Definition at line 700 of file plistPrimitives.h.

#define INSTANTIATE_NAMEDENUMERATION_STATICS (  ) 
Value:
namespace plist { \
    template<> std::map<std::string,T> NamedEnumeration<T>::namesToVals = std::map<std::string,T>(); \
    template<> std::map<T,std::string> NamedEnumeration<T>::valsToNames = std::map<T,std::string>(); \
  }

Unless you enable GLOBAL_PLIST_STATICS, call this macro in one of your source files to provide a definition of the statics for a specific type.

See also:
NamedEnumeration for further discussion

Definition at line 708 of file plistPrimitives.h.


Function Documentation

xmlNode* xmlAddPrevSibling ( xmlNode node,
xmlNode sibling 
)
xmlChar* xmlGetNodePath ( xmlNode node  ) 
xmlChar* xmlGetProperty ( xmlNode node,
const xmlChar name 
)
xmlAttr* xmlHasProperty ( xmlNode node,
const xmlChar name 
)
int xmlStrEqual ( const xmlChar a,
const xmlChar b 
)

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