EPICS ARCHIVER V4
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups
Public Member Functions | List of all members
FUX::Element Class Reference

One element in the FUX tree. More...

#include <FUX.h>

Public Member Functions

 Element (Element *parent, const stdString &name)
 Create new, empty element. More...
 
 Element (Element *parent, const stdString &name, const stdString &value)
 Create new element with value. More...
 
 __attribute__ ((format(printf, 4, 5)))
 Create Element, using printf-style format and args for value. More...
 
 ~Element ()
 Destructor. More...
 
const stdString & getName () const
 
const stdString & getValue () const
 
ElementgetParent ()
 
stdList< Element * > & getChildren ()
 
void append (const char *text, size_t len)
 Append text to value. More...
 
Elementfind (const char *name)
 

Detailed Description

One element in the FUX tree.

Constructor & Destructor Documentation

FUX::Element::Element ( Element parent,
const stdString &  name 
)

Create new, empty element.

When parent is given, this element is added to the parent.

FUX::Element::Element ( Element parent,
const stdString &  name,
const stdString &  value 
)

Create new element with value.

When parent is given, this element is added to the parent.

FUX::Element::~Element ( )

Destructor.

Member Function Documentation

FUX::Element::__attribute__ ( (format(printf, 4, 5))  )

Create Element, using printf-style format and args for value.

When parent is given, this element is added to the parent.

void FUX::Element::append ( const char *  text,
size_t  len 
)
inline

Append text to value.

Element* FUX::Element::find ( const char *  name)
Returns
Returns the first child of given name or 0.
stdList<Element *>& FUX::Element::getChildren ( )
inline
Returns
Returns the list of child elements.
const stdString& FUX::Element::getName ( ) const
inline
Returns
Returns the element name.
Element* FUX::Element::getParent ( )
inline
Returns
Returns the parent element (may be 0).
const stdString& FUX::Element::getValue ( ) const
inline
Returns
Returns the element value.

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