type converter for integer data with write access More...
#include <xmlstorage.h>

Public Member Functions | |
| XMLIntRef (XMLNode *node, const XS_String &attr_name, int def=0) | |
| XMLIntRef & | operator= (int value) |
| operator int () const | |
| void | assign (int value) |
Protected Attributes | |
| XS_String & | _ref |
type converter for integer data with write access
Definition at line 3654 of file xmlstorage.h.
| void XMLStorage::XMLIntRef::assign | ( | int | value ) | [inline] |
Definition at line 3675 of file xmlstorage.h.
References _ref, XMLStorage::XS_String::assign(), COUNTOF, XS_CHAR, XS_INTFMT, and XS_snprintf.
Referenced by operator=(), and XMLIntRef().
{
XS_CHAR buffer[32];
XS_snprintf(buffer, COUNTOF(buffer), XS_INTFMT, value);
_ref.assign(buffer);
}


| XMLStorage::XMLIntRef::operator int | ( | ) | const [inline] |
| XMLIntRef& XMLStorage::XMLIntRef::operator= | ( | int | value ) | [inline] |
Definition at line 3663 of file xmlstorage.h.
References assign().
{
assign(value);
return *this;
}

XS_String& XMLStorage::XMLIntRef::_ref [protected] |
Definition at line 3683 of file xmlstorage.h.
Referenced by assign(), operator int(), and XMLIntRef().
1.7.2