Base Framework
|
#include <base/objectmodel/ObjectModel.h>
Inherits ReferenceCountedObject.
Classes | |
class | Array |
class | Binary |
class | Boolean |
class | Comment |
class | Float |
class | Integer |
class | NiceFormat |
class | Object |
class | Stats |
class | String |
class | Value |
class | Void |
Public Member Functions | |
ObjectModel (bool _allowReuse=true) | |
Reference< Void > | createVoid () |
Reference< Boolean > | createBoolean (bool value=false) |
Reference< Integer > | createInteger (int64 value=0) |
Reference< Float > | createFloat (double value=0) |
const Reference< String > & | createEmptyString () |
Reference< Comment > | createComment (const base::String &value) |
Reference< String > | createString (const char *value) |
Reference< String > | createString (const base::String &value) |
Reference< String > | createStringUnique (const char *value) |
Reference< Array > | createArray () |
Reference< Array > | createArray (std::initializer_list< bool > l) |
Reference< Array > | createArray (std::initializer_list< int > l) |
Reference< Array > | createArray (std::initializer_list< double > l) |
Reference< Array > | createArray (std::initializer_list< const char * > l) |
Reference< Object > | createObject () |
![]() | |
ReferenceCountedObject () noexcept | |
ReferenceCountedObject (const ReferenceCountedObject ©) noexcept | |
ReferenceCountedObject (ReferenceCountedObject &&move) noexcept | |
ReferenceCountedObject & | operator= (const ReferenceCountedObject ©) noexcept |
ReferenceCountedObject & | operator= (ReferenceCountedObject &&move) noexcept |
MemorySize | getNumberOfReferences_INTERNAL () const noexcept |
virtual bool | useGarbageCollector () const noexcept |
![]() | |
DynamicObject () noexcept | |
bool | isValidObject () const noexcept |
virtual | ~DynamicObject () noexcept(false) |
_COM_AZURE_DEV__BASE__OVERRIDE_ALLOC () | |
Static Public Member Functions | |
static Stats | getStats (const Reference< ObjectModel::Value > &value) |
static Document | getXML (const Reference< ObjectModel::Value > &value, const String &name="root", const String &ns=String()) |
Generic object model.
ObjectModel::ObjectModel | ( | bool | _allowReuse = true | ) |
Initializes the exception object with no message.
Creates an array.
Creates a new boolean. May be reused.
Creates a comment. Similar strings may be reused.
Creates a string. Similar strings may be reused.
Creates a string. Similar strings may be reused.
Creates a string without any reuse.
|
static |
Returns the stats for the given item.
|
static |
Returns XML document for given ObjectModel value.
value | The object model value. |
name | The root name. Defaults to "root". |
ns | The XML namespace. Defaults to none. |