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

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

#include <xmlstorage.h>

Collaboration diagram for XMLStorage::XMLStringRef:

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 2215 of file xmlstorage.h.

Constructor & Destructor Documentation

◆ XMLStringRef() [1/2]

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

Definition at line 2217 of file xmlstorage.h.

2218  : _ref((*node)[attr_name])
2219  {
2220  if (_ref.empty())
2221  assign(def);
2222  }
Definition: graphics.c:170
void assign(const XS_String &value)
Definition: xmlstorage.h:2243

◆ XMLStringRef() [2/2]

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

Definition at line 2224 of file xmlstorage.h.

2225  : _ref(node->subvalue(node_name, attr_name))
2226  {
2227  if (_ref.empty())
2228  assign(def);
2229  }
Definition: graphics.c:170
void assign(const XS_String &value)
Definition: xmlstorage.h:2243

Member Function Documentation

◆ assign()

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

Definition at line 2243 of file xmlstorage.h.

2244  {
2245  _ref.assign(value);
2246  }
Definition: get.c:139
void assign(const XS_String &s)
Definition: xmlstorage.h:338

◆ operator const XS_String &()

Definition at line 2238 of file xmlstorage.h.

2239  {
2240  return _ref;
2241  }

◆ operator=()

Definition at line 2231 of file xmlstorage.h.

2232  {
2233  assign(value);
2234 
2235  return *this;
2236  }
Definition: get.c:139
void assign(const XS_String &value)
Definition: xmlstorage.h:2243

Member Data Documentation

◆ _ref

XS_String& XMLStorage::XMLStringRef::_ref
protected

Definition at line 2249 of file xmlstorage.h.


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