Public Member Functions | Protected Attributes

XMLStorage::XMLInt64Ref Struct Reference

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

#include <xmlstorage.h>

Collaboration diagram for XMLStorage::XMLInt64Ref:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 XMLInt64Ref (XMLNode *node, const XS_String &attr_name, INT64 def=0)
XMLInt64Refoperator= (INT64 value)
 operator INT64 () const
void assign (INT64 value)

Protected Attributes

XS_String_ref

Detailed Description

type converter for integer data with write access

Definition at line 3740 of file xmlstorage.h.


Constructor & Destructor Documentation

XMLStorage::XMLInt64Ref::XMLInt64Ref ( XMLNode node,
const XS_String attr_name,
INT64  def = 0 
) [inline]

Definition at line 3742 of file xmlstorage.h.

References _ref, and assign().

     :  _ref((*node)[attr_name])
    {
        if (_ref.empty())
            assign(def);
    }

Here is the call graph for this function:


Member Function Documentation

void XMLStorage::XMLInt64Ref::assign ( INT64  value ) [inline]

Definition at line 3761 of file xmlstorage.h.

References _ref, XMLStorage::XS_String::assign(), COUNTOF, XS_CHAR, XS_INT64FMT, and XS_snprintf.

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

    {
        XS_CHAR buffer[64];
        XS_snprintf(buffer, COUNTOF(buffer), XS_INT64FMT, value);
        _ref.assign(buffer);
    }

Here is the call graph for this function:

Here is the caller graph for this function:

XMLStorage::XMLInt64Ref::operator INT64 (  ) const [inline]

Definition at line 3756 of file xmlstorage.h.

References _ref, and XS_toi64.

    {
        return XS_toi64(_ref.c_str());
    }
XMLInt64Ref& XMLStorage::XMLInt64Ref::operator= ( INT64  value ) [inline]

Definition at line 3749 of file xmlstorage.h.

References assign().

    {
        assign(value);

        return *this;
    }

Here is the call graph for this function:


Member Data Documentation

Definition at line 3769 of file xmlstorage.h.

Referenced by assign(), operator INT64(), and XMLInt64Ref().


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