#include <nap/rttiobjectgraphitem.h>
Public Types | |
| enum | EType : uint8_t { Object, File } |
| using | Type = rtti::Object * |
Public Member Functions | |
| const std::string | getID () const |
| uint8_t | getType () const |
| bool | getPointees (std::vector< RTTIObjectGraphItem > &pointees, utility::ErrorState &errorState) const |
Static Public Member Functions | |
| static const RTTIObjectGraphItem | create (rtti::Object *object) |
Public Attributes | |
| EType | mType |
| std::string | mFilename |
| rtti::Object * | mObject = nullptr |
Item class for ObjectGraph usage. Wraps both an RTTIObject and a File object (by filename). Uses RTTI traversal to scan pointers to other objects and pointers to files.
| using Type = rtti::Object* |
|
strong |
|
static |
Creates a graph item.
| object | Object to wrap in the item that is created. |
| const std::string getID | ( | ) | const |
| bool getPointees | ( | std::vector< RTTIObjectGraphItem > & | pointees, |
| utility::ErrorState & | errorState | ||
| ) | const |
Performs rtti traversal of pointers to both files and objects.
| pointees | Output parameter, contains all objects and files this object points to. |
| errorState | If false is returned, contains information about the error. |
| uint8_t getType | ( | ) | const |
| std::string mFilename |
| rtti::Object* mObject = nullptr |
| EType mType |