Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

shibsp::DDF Class Reference

DDF objects are implemented with a handle-body idiom and require explicit destruction in order to allow stack objects to be freely mixed in structures with heap objects. More...

#include <shibsp/remoting/ddf.h>

List of all members.

Public Member Functions

 DDF ()
 OFF
 DDF (const char *n)
 DDF (const char *n, const char *val, bool safe=true)
 DDF (const char *n, long val)
 DDF (const char *n, double val)
 DDF (const char *n, void *val)
DDF & destroy ()
DDF copy () const
const char * name () const
DDF & name (const char *n)
bool isnull () const
bool isempty () const
bool isstring () const
bool isint () const
bool isfloat () const
bool isstruct () const
bool islist () const
bool ispointer () const
const char * string () const
long integer () const
double floating () const
void * pointer () const
size_t strlen () const
bool operator== (const char *s) const
DDF & empty ()
DDF & string (const char *val)
DDF & unsafe_string (const char *val)
DDF & string (char *val, bool copyit=true, bool safe=true)
DDF & string (long val)
DDF & string (double val)
DDF & integer (long val)
DDF & integer (const char *val)
DDF & floating (double val)
DDF & floating (const char *val)
DDF & structure ()
DDF & list ()
DDF & pointer (void *val)
DDF & add (DDF &child)
DDF & addbefore (DDF &child, DDF &before)
DDF & addafter (DDF &child, DDF &after)
void swap (DDF &arg)
DDF & remove ()
DDF parent () const
DDF first ()
DDF next ()
DDF last ()
DDF previous ()
DDF operator[] (unsigned long index) const
DDF operator[] (const char *path) const
DDF addmember (const char *path)
DDF getmember (const char *path) const
void dump (FILE *f=NULL, int indent=0) const

Friends

std::ostream & operator<< (std::ostream &os, const DDF &obj)
 Serializes a DDF object to a stream.
std::istream & operator>> (std::istream &is, DDF &obj)
 Reconstitutes a DDF object from a stream.


Detailed Description

DDF objects are implemented with a handle-body idiom and require explicit destruction in order to allow stack objects to be freely mixed in structures with heap objects.

When stack objects leave scope, only the handle is freed. Copying and assigning handle objects is a constant time operation equivalent to a single pointer assignment, handled by compiler-generated behavior.


Friends And Related Function Documentation

std::ostream& operator<< (  std::ostream &  os,
const DDF &  obj
)  [friend]
 

Serializes a DDF object to a stream.

Parameters:
os output stream
obj DDF object to serialize
Returns:
reference to the output stream

std::istream& operator>> (  std::istream &  is,
DDF &  obj
)  [friend]
 

Reconstitutes a DDF object from a stream.

Parameters:
is input stream
obj DDF object to reconstitute
Returns:
reference to the input stream


The documentation for this class was generated from the following file:
Generated on Tue Jun 23 22:41:31 2009 for shibboleth-2.2 by  doxygen 1.3.9.1