Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

plist::Primitive< std::string > Class Template Reference

#include <plistPrimitives.h>

Inheritance diagram for plist::Primitive< std::string >:

Inheritance graph
[legend]
List of all members.

Detailed Description

template<>
class plist::Primitive< std::string >

Provides a std::string specialization of Primitive<T>.

Doesn't need to provide a operator cast because we subclass std::string itself!

Definition at line 264 of file plistPrimitives.h.

Public Member Functions

 Primitive ()
 constructor
 Primitive (const std::string &v)
 casting constructor
 Primitive (const std::string &v, size_type off, size_type count=npos)
 casting constructor
 Primitive (const char *v, size_type count)
 casting constructor
 Primitive (const char *v)
 casting constructor
 Primitive (size_type count, char v)
 casting constructor
Primitiveoperator= (const std::string &v)
 assignment
Primitiveoperator= (const char *v)
 assignment
Primitiveoperator= (char v)
 assignment
const std::string & operator * () const
 dereference will return data storage as a string (for uniformity with the other Primitives, although unnecessary with this instantiation)
const std::string * operator-> () const
 returns a pointer to this (for uniformity with the other Primitives, although unnecessary with this instantiation)
void loadXML (xmlNode *node)
 interprets node as a string
void saveXML (xmlNode *node) const
 saves the content of the string into node
void set (const std::string &str)
 assign a new value
std::string get () const
 return current value as a string
virtual Primitive< std::string > * clone () const __attribute__((warn_unused_result))
 implements the clone function for Primitive<std::string>

Classes

struct  conversion_policy


The documentation for this class was generated from the following files:

Tekkotsu v3.0
Generated Fri May 11 20:09:13 2007 by Doxygen 1.4.7