ReactOS 0.4.16-dev-338-g34e76ad
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 }
void assign(const XS_String &value)
Definition: xmlstorage.h:2243
Definition: dlist.c:348

◆ 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 }

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 }
void assign(const XS_String &s)
Definition: xmlstorage.h:338
Definition: pdh_main.c:94

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

◆ operator const XS_String &()

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

Definition at line 2238 of file xmlstorage.h.

2239 {
2240 return _ref;
2241 }

◆ operator=()

XMLStringRef & XMLStorage::XMLStringRef::operator= ( const XS_String value)
inline

Definition at line 2231 of file xmlstorage.h.

2232 {
2233 assign(value);
2234
2235 return *this;
2236 }

Member Data Documentation

◆ _ref

XS_String& XMLStorage::XMLStringRef::_ref
protected

Definition at line 2249 of file xmlstorage.h.

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


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