Public Member Functions | Protected Attributes

XMLStorage::XMLStringRef Struct Reference

type converter for string data with write access More...

#include <xmlstorage.h>

Collaboration diagram for XMLStorage::XMLStringRef:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 XMLStringRef (XMLNode *node, const XS_String &attr_name, LPCXSSTR def=XS_EMPTY)
 XMLStringRef (const XS_String &node_name, XMLNode *node, const XS_String &attr_name, LPCXSSTR def=XS_EMPTY)
XMLStringRefoperator= (const XS_String &value)
 operator const XS_String & () const
void assign (const XS_String &value)

Protected Attributes

XS_String_ref

Detailed Description

type converter for string data with write access

Definition at line 3806 of file xmlstorage.h.


Constructor & Destructor Documentation

XMLStorage::XMLStringRef::XMLStringRef ( XMLNode node,
const XS_String attr_name,
LPCXSSTR  def = XS_EMPTY 
) [inline]

Definition at line 3808 of file xmlstorage.h.

References _ref, and assign().

     :  _ref((*node)[attr_name])
    {
        if (_ref.empty())
            assign(def);
    }

Here is the call graph for this function:

XMLStorage::XMLStringRef::XMLStringRef ( const XS_String node_name,
XMLNode node,
const XS_String attr_name,
LPCXSSTR  def = XS_EMPTY 
) [inline]

Definition at line 3815 of file xmlstorage.h.

References _ref, and assign().

     :  _ref(node->subvalue(node_name, attr_name))
    {
        if (_ref.empty())
            assign(def);
    }

Here is the call graph for this function:


Member Function Documentation

void XMLStorage::XMLStringRef::assign ( const XS_String value ) [inline]

Definition at line 3834 of file xmlstorage.h.

References _ref, and XMLStorage::XS_String::assign().

Referenced by operator=(), and XMLStringRef().

    {
        _ref.assign(value);
    }

Here is the call graph for this function:

Here is the caller graph for this function:

XMLStorage::XMLStringRef::operator const XS_String & (  ) const [inline]

Definition at line 3829 of file xmlstorage.h.

References _ref.

    {
        return _ref;
    }
XMLStringRef& XMLStorage::XMLStringRef::operator= ( const XS_String value ) [inline]

Definition at line 3822 of file xmlstorage.h.

References assign().

    {
        assign(value);

        return *this;
    }

Here is the call graph for this function:


Member Data Documentation

Definition at line 3840 of file xmlstorage.h.

Referenced by assign(), operator const XS_String &(), and XMLStringRef().


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

ROS Explorer Source Code Documentation
generated on 02.01.2013 by doxygen

ROS Explorer Homepage