Public Member Functions | Protected Attributes

XMLStorage::XMLString Struct Reference

type converter for string data More...

#include <xmlstorage.h>

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

List of all members.

Public Member Functions

 XMLString (const XS_String &value)
 XMLString (LPCXSSTR value, LPCXSSTR def=XS_EMPTY)
 XMLString (const XMLNode *node, const XS_String &attr_name, LPCXSSTR def=XS_EMPTY)
 operator const XS_String & () const
const XS_Stringc_str () const

Protected Attributes

XS_String _value

Detailed Description

type converter for string data

Definition at line 3763 of file xmlstorage.h.


Constructor & Destructor Documentation

XMLStorage::XMLString::XMLString ( const XS_String value ) [inline]

Definition at line 3765 of file xmlstorage.h.

     :  _value(value)
    {
    }
XMLStorage::XMLString::XMLString ( LPCXSSTR  value,
LPCXSSTR  def = XS_EMPTY 
) [inline]

Definition at line 3770 of file xmlstorage.h.

References _value.

    {
        if (value && *value)
            _value = value;
        else
            _value = def;
    }
XMLStorage::XMLString::XMLString ( const XMLNode node,
const XS_String attr_name,
LPCXSSTR  def = XS_EMPTY 
) [inline]

Definition at line 3778 of file xmlstorage.h.

References _value, and XMLStorage::XMLNode::get().

    {
        const XS_String& value = node->get(attr_name);

        if (!value.empty())
            _value = value;
        else
            _value = def;
    }

Here is the call graph for this function:


Member Function Documentation

const XS_String& XMLStorage::XMLString::c_str (  ) const [inline]

Definition at line 3793 of file xmlstorage.h.

References _value.

    {
        return _value;
    }
XMLStorage::XMLString::operator const XS_String & (  ) const [inline]

Definition at line 3788 of file xmlstorage.h.

References _value.

    {
        return _value;
    }

Member Data Documentation

Definition at line 3799 of file xmlstorage.h.

Referenced by c_str(), operator const XS_String &(), and XMLString().


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