#include <xmlstorage.h>

Public Member Functions | |
| XMLInt (int value) | |
| XMLInt (LPCXSSTR value, int def=0) | |
| XMLInt (const XMLNode *node, const XS_String &attr_name, int def=0) | |
| operator int () const | |
| operator XS_String () const | |
Protected Attributes | |
| int | _value |
Private Member Functions | |
| void | operator= (const XMLInt &) |
Definition at line 2010 of file xmlstorage.h.
| XMLStorage::XMLInt::XMLInt | ( | int | value | ) | [inline] |
| XMLStorage::XMLInt::XMLInt | ( | LPCXSSTR | value, | |
| int | def = 0 | |||
| ) | [inline] |
| XMLStorage::XMLInt::XMLInt | ( | const XMLNode * | node, | |
| const XS_String & | attr_name, | |||
| int | def = 0 | |||
| ) | [inline] |
Definition at line 2025 of file xmlstorage.h.
References XMLStorage::XMLNode::get(), and XS_toi.
02027 { 02028 const XS_String& value = node->get(attr_name); 02029 02030 if (!value.empty()) 02031 _value = XS_toi(value.c_str()); 02032 else 02033 _value = def;

| XMLStorage::XMLInt::operator int | ( | ) | const [inline] |
| XMLStorage::XMLInt::operator XS_String | ( | ) | const [inline] |
Definition at line 2040 of file xmlstorage.h.
References COUNTOF, XS_CHAR, XS_INTFMT, XS_snprintf, and XMLStorage::XS_String::XS_String().
02042 { 02043 XS_CHAR buffer[32]; 02044 XS_snprintf(buffer, COUNTOF(buffer), XS_INTFMT, _value); 02045 return XS_String(buffer);

| void XMLStorage::XMLInt::operator= | ( | const XMLInt & | ) | [private] |
int XMLStorage::XMLInt::_value [protected] |
Definition at line 2048 of file xmlstorage.h.
1.5.4