type converter for boolean data with write access More...
#include <xmlstorage.h>
Public Member Functions | |
XMLBoolRef (XMLNode *node, const XS_String &attr_name, bool def=false) | |
operator bool () const | |
bool | operator! () const |
XMLBoolRef & | operator= (bool value) |
void | assign (bool value) |
void | toggle () |
Protected Attributes | |
XS_String & | _ref |
type converter for boolean data with write access
Definition at line 3560 of file xmlstorage.h.
void XMLStorage::XMLBoolRef::assign | ( | bool | value ) | [inline] |
Definition at line 3586 of file xmlstorage.h.
References _ref, XMLStorage::XS_String::assign(), XS_FALSE, and XS_TRUE.
Referenced by operator=(), toggle(), and XMLBoolRef().
XMLStorage::XMLBoolRef::operator bool | ( | ) | const [inline] |
bool XMLStorage::XMLBoolRef::operator! | ( | ) | const [inline] |
XMLBoolRef& XMLStorage::XMLBoolRef::operator= | ( | bool | value ) | [inline] |
Definition at line 3579 of file xmlstorage.h.
References assign().
{ assign(value); return *this; }
void XMLStorage::XMLBoolRef::toggle | ( | ) | [inline] |
Definition at line 3591 of file xmlstorage.h.
References assign().
{ assign(!operator bool()); }
XS_String& XMLStorage::XMLBoolRef::_ref [protected] |
Definition at line 3597 of file xmlstorage.h.
Referenced by assign(), operator bool(), operator!(), and XMLBoolRef().