ReactOS  0.4.12-dev-102-g4b7f1e0
XMLStorage::XMLString Struct Reference

type converter for string data More...

#include <xmlstorage.h>

Collaboration diagram for XMLStorage::XMLString:

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
 

Private Member Functions

void operator= (const XMLString &)
 

Detailed Description

type converter for string data

Definition at line 2172 of file xmlstorage.h.

Constructor & Destructor Documentation

◆ XMLString() [1/3]

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

Definition at line 2174 of file xmlstorage.h.

2175  : _value(value)
2176  {
2177  }
Definition: get.c:139

◆ XMLString() [2/3]

XMLStorage::XMLString::XMLString ( LPCXSSTR  value,
LPCXSSTR  def = XS_EMPTY 
)
inline

Definition at line 2179 of file xmlstorage.h.

2180  {
2181  if (value && *value)
2182  _value = value;
2183  else
2184  _value = def;
2185  }
Definition: get.c:139
GLsizei const GLfloat * value
Definition: glext.h:6069

◆ XMLString() [3/3]

XMLStorage::XMLString::XMLString ( const XMLNode node,
const XS_String attr_name,
LPCXSSTR  def = XS_EMPTY 
)
inline

Definition at line 2187 of file xmlstorage.h.

2188  {
2189  const XS_String& value = node->get(attr_name);
2190 
2191  if (!value.empty())
2192  _value = value;
2193  else
2194  _value = def;
2195  }
Definition: graphics.c:170
Definition: get.c:139

Member Function Documentation

◆ c_str()

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

Definition at line 2202 of file xmlstorage.h.

2203  {
2204  return _value;
2205  }

◆ operator const XS_String &()

Definition at line 2197 of file xmlstorage.h.

2198  {
2199  return _value;
2200  }

◆ operator=()

Member Data Documentation

◆ _value

XS_String XMLStorage::XMLString::_value
protected

Definition at line 2208 of file xmlstorage.h.


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