Caffa
1.1.0
C++ Application Framework for Embedded Systems with introspection
|
#include <cafObjectHandle.h>
Public Types | |
using | InheritanceStackType = std::vector< std::string > |
Public Member Functions | |
ObjectHandle (bool generateUuid=true) | |
virtual std::string | classKeyword () const |
virtual InheritanceStackType | classInheritanceStack () const |
std::string | parentClassKeyword () const |
Get the parent class keyword. More... | |
virtual std::string | classDocumentation () const |
std::vector< FieldHandle * > | fields () const |
std::vector< MethodHandle * > | methods () const |
FieldHandle * | findField (const std::string &keyword) const |
MethodHandle * | findMethod (const std::string &keyword) const |
const std::string & | uuid () const |
void | setUuid (const std::string &) |
virtual void | initAfterRead () |
void | accept (Inspector *visitor) const |
void | accept (Editor *editor) |
Static Public Member Functions | |
static std::string | classKeywordStatic () |
static bool | matchesClassKeyword (const std::string &classKeyword, const InheritanceStackType &inheritanceStack) |
static constexpr bool | isValidCharacter (char c) |
static constexpr bool | isValidKeyword (const std::string_view &type) |
Protected Member Functions | |
void | addField (FieldHandle *field, const std::string &keyword) |
void | addMethod (MethodHandle *method, const std::string &keyword) |
The base class of all objects
void ObjectHandle::accept | ( | Inspector * | visitor | ) | const |
Accept the visit by an inspecting visitor
visitor |
void ObjectHandle::accept | ( | Editor * | editor | ) |
Accept the visit by an editing visitor
editor |
|
protected |
Add a field to the object
|
protected |
Add a method to the object
std::vector< FieldHandle * > ObjectHandle::fields | ( | ) | const |
The registered fields contained in this Object.
FieldHandle * ObjectHandle::findField | ( | const std::string & | keyword | ) | const |
MethodHandle * ObjectHandle::findMethod | ( | const std::string & | keyword | ) | const |
|
inlinevirtual |
|
inlinestatic |
Checks whether the keyword is a valid one. We accept regular letters and underscore '_'
std::vector< MethodHandle * > ObjectHandle::methods | ( | ) | const |
The registered methods for this Object.
|
inline |
Get the parent class keyword.