Public Member Functions | Public Attributes | Protected Member Functions | List of all members
APIBaseValue Class Reference

#include <apivalue.h>

Public Member Functions

 APIBaseValue (const rtti::TypeInfo &type, const std::string &name)
const rtti::TypeInfogetRepresentedType () const
- Public Member Functions inherited from Resource
 Resource ()
- Public Member Functions inherited from Object
 Object ()
virtual ~Object ()
virtual bool init (utility::ErrorState &errorState)
virtual void onDestroy ()
 Object (Object &)=delete
Objectoperator= (const Object &)=delete
 Object (Object &&)=delete
Objectoperator= (Object &&)=delete

Public Attributes

std::string mName
 Property: 'Name' name associated with the value. More...
- Public Attributes inherited from Object
std::string mID
 Property: 'mID' unique name of the object. Used as an identifier by the system. More...

Protected Member Functions

 APIBaseValue (const rtti::TypeInfo &type)

Additional Inherited Members

- Static Public Member Functions inherited from Object
static bool isIDProperty (rtti::Instance &object, const rtti::Property &property)


Base class of a value that can be given to or is constructed for an external environment. This value can be copied, moved and serialized from and to JSON.

Inheritance diagram for APIBaseValue:
Collaboration diagram for APIBaseValue:

Constructor & Destructor Documentation

◆ APIBaseValue() [1/2]

APIBaseValue ( const rtti::TypeInfo type,
const std::string &  name 

Required constructor

typethe type of the managed value, for example: RTTI_OF(float) etc.
namethe name of this api value

◆ APIBaseValue() [2/2]

APIBaseValue ( const rtti::TypeInfo type)

Member Function Documentation

◆ getRepresentedType()

const rtti::TypeInfo& getRepresentedType ( ) const
the actual type represented by this API value, ie: RTTI_OF(float) etc.

Member Data Documentation

◆ mName

std::string mName

Property: 'Name' name associated with the value.