Wraps a protobuffer object.
More...
#include <runtime_stream.hpp>
Wraps a protobuffer object.
◆ RuntimeStreamContentDataObject()
kanzi::connect::RuntimeStreamContentDataObject::RuntimeStreamContentDataObject |
( |
ContentDataObject * | object, |
|
|
bool | takeOwnership = true ) |
|
inline |
C++ constructor.
- Parameters
-
◆ ~RuntimeStreamContentDataObject()
virtual kanzi::connect::RuntimeStreamContentDataObject::~RuntimeStreamContentDataObject |
( |
| ) |
|
|
virtual |
◆ addChild()
Insert a child object.
- Returns
- wrapped child object.
◆ childCount()
int kanzi::connect::RuntimeStreamContentDataObject::childCount |
( |
| ) |
const |
Retrieves amount of childs.
- Returns
- size
◆ create()
Creates object.
This allocates a new wrapped object which is owned by the returned instance.
- Returns
- newly created object.
◆ freeObject()
void kanzi::connect::RuntimeStreamContentDataObject::freeObject |
( |
| ) |
|
Retrieve wrapped content data object.
◆ getChilds()
Retrieves a childs.
- Returns
- the list referring to childs.
◆ getHash()
uint32_t kanzi::connect::RuntimeStreamContentDataObject::getHash |
( |
| ) |
const |
Retrieve the hash.
- Returns
- hash code.
◆ getName()
const string & kanzi::connect::RuntimeStreamContentDataObject::getName |
( |
| ) |
const |
Retrieve name.
- Returns
- name.
◆ getType()
int32_t kanzi::connect::RuntimeStreamContentDataObject::getType |
( |
| ) |
const |
Retrieve the type.
- Returns
- type
◆ getValueBool()
bool kanzi::connect::RuntimeStreamContentDataObject::getValueBool |
( |
| ) |
const |
Retrieve boolean value.
- Returns
- boolean value.
◆ getValueInt()
int kanzi::connect::RuntimeStreamContentDataObject::getValueInt |
( |
| ) |
const |
Retrieve int value.
- Returns
- integer value.
◆ getValueReal()
double kanzi::connect::RuntimeStreamContentDataObject::getValueReal |
( |
| ) |
const |
Retrieve real value.
- Returns
- real value.
◆ getValueString()
const string & kanzi::connect::RuntimeStreamContentDataObject::getValueString |
( |
| ) |
const |
Retrieve string value.
- Returns
- string value.
◆ hasSelf()
bool kanzi::connect::RuntimeStreamContentDataObject::hasSelf |
( |
| ) |
const |
Is the self structure defined.
- Returns
- true if self defined.
◆ identifiedByHash()
bool kanzi::connect::RuntimeStreamContentDataObject::identifiedByHash |
( |
| ) |
const |
Checks whether this object is identified by hash or by name.
- Returns
- true if identified by hash, otherwise object is identified by name
◆ parseFromString()
Parses a stream and creates an object that contains the tree.
Method can fail and thus after calling it should be checked that the object is valid.
}
bool valid() const
Checks is the object valid and whether it holds a valid pointer.
static RuntimeStreamContentDataObject parseFromString(const string &stream)
Parses a stream and creates an object that contains the tree.
- Parameters
-
stream | the stream to input |
- Returns
- true
◆ reset()
void kanzi::connect::RuntimeStreamContentDataObject::reset |
( |
| ) |
|
◆ serializeToString()
string kanzi::connect::RuntimeStreamContentDataObject::serializeToString |
( |
| ) |
|
Serializes the object to string.
- Returns
- object-tree serialized as string
◆ setHash()
void kanzi::connect::RuntimeStreamContentDataObject::setHash |
( |
uint32_t | hash | ) |
|
◆ setName()
void kanzi::connect::RuntimeStreamContentDataObject::setName |
( |
const string & | name | ) |
|
◆ setType()
void kanzi::connect::RuntimeStreamContentDataObject::setType |
( |
int32_t | type | ) |
|
◆ setValueBool()
void kanzi::connect::RuntimeStreamContentDataObject::setValueBool |
( |
bool | value | ) |
|
Set bool value.
- Parameters
-
◆ setValueInt()
void kanzi::connect::RuntimeStreamContentDataObject::setValueInt |
( |
int32_t | value | ) |
|
Set int value.
- Parameters
-
◆ setValueReal()
void kanzi::connect::RuntimeStreamContentDataObject::setValueReal |
( |
double | value | ) |
|
Set real value.
- Parameters
-
◆ setValueString()
void kanzi::connect::RuntimeStreamContentDataObject::setValueString |
( |
const string & | value | ) |
|
Set string value.
- Parameters
-
◆ valid()
bool kanzi::connect::RuntimeStreamContentDataObject::valid |
( |
| ) |
const |
Checks is the object valid and whether it holds a valid pointer.
- Returns
- true if valid.
The documentation for this class was generated from the following file:
- connect/messages/runtime_stream.hpp