#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 1673 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 1688 of file xmlstorage.h.
References XMLStorage::XMLNode::get(), and XS_toi.
01689 { 01690 const XS_String& value = node->get(attr_name); 01691 01692 if (!value.empty()) 01693 _value = XS_toi(value.c_str()); 01694 else 01695 _value = def; 01696 }
XMLStorage::XMLInt::operator int | ( | ) | const [inline] |
XMLStorage::XMLInt::operator XS_String | ( | ) | const [inline] |
Definition at line 1703 of file xmlstorage.h.
References COUNTOF, XS_CHAR, XS_INTFMT, and XS_snprintf.
01704 { 01705 XS_CHAR buffer[32]; 01706 XS_snprintf(buffer, COUNTOF(buffer), XS_INTFMT, _value); 01707 return buffer; 01708 }
void XMLStorage::XMLInt::operator= | ( | const XMLInt & | ) | [private] |
int XMLStorage::XMLInt::_value [protected] |
Definition at line 1711 of file xmlstorage.h.
IBrowser Source Code Documentation
generated on 18.09.2008 by ![]() |