The RamsesObject is a base class for all client API objects owned by the framework.
More...
#include <RamsesObject.h>
|
class RamsesObjectImpl & | impl |
|
class StatusObjectImpl & | impl |
|
The RamsesObject is a base class for all client API objects owned by the framework.
- Examples
- ramses-example-basic-file-loading/src/main.cpp.
◆ RamsesObject()
ramses::RamsesObject::RamsesObject |
( |
RamsesObjectImpl & |
pimpl | ) |
|
|
explicitprotected |
Constructor for RamsesObject.
- Parameters
-
[in] | pimpl | Internal data for implementation specifics of RamsesObject (sink - instance becomes owner) |
◆ ~RamsesObject()
virtual ramses::RamsesObject::~RamsesObject |
( |
| ) |
|
|
protectedvirtual |
◆ getName()
const char* ramses::RamsesObject::getName |
( |
| ) |
const |
◆ getType()
Gets type of the object.
- Returns
- Type of the object, see ERamsesObjectType enum for possible values.
◆ isOfType()
Checks if the object is of given type.
- Parameters
-
[in] | type | Type to check against. |
- Returns
- True if object is of given type, ie. it can be converted to given type.
◆ setName()
status_t ramses::RamsesObject::setName |
( |
const char * |
name | ) |
|
Changes the name of the object.
- Parameters
-
name | New name of the object |
- Returns
- StatusOK for success, otherwise the returned status can be used to resolve error message using getStatusMessage().
◆ impl
class RamsesObjectImpl& ramses::RamsesObject::impl |
Stores internal data for implementation specifics of RamsesObject.
The documentation for this class was generated from the following file:
- /home/runner/work/ramses/ramses/client/ramses-client/ramses-client-api/include/ramses-client-api/RamsesObject.h