#include <C4PropertyPath.h>
Public Types | |
enum | PathType { PPT_Root = 0 , PPT_Property = 1 , PPT_Index = 2 , PPT_SetFunction = 3 , PPT_GlobalSetFunction = 4 , PPT_RootSetFunction = 5 } |
Public Member Functions | |
C4PropertyPath () | |
C4PropertyPath (C4PropList *target) | |
C4PropertyPath (C4Effect *fx, C4Object *target_obj) | |
C4PropertyPath (const char *path) | |
C4PropertyPath (const C4PropertyPath &parent, int32_t elem_index) | |
C4PropertyPath (const C4PropertyPath &parent, const char *child_property) | |
void | SetSetPath (const C4PropertyPath &parent, const char *child_property, PathType path_type) |
void | Clear () |
const char * | GetGetPath () const |
const char * | GetSetPath () const |
const char * | GetRoot () const |
bool | IsEmpty () const |
C4Value | ResolveValue () const |
C4Value | ResolveRoot () const |
void | SetProperty (const char *set_string) const |
void | SetProperty (const C4Value &to_val, const C4PropListStatic *ignore_reference_parent=nullptr) const |
void | DoCall (const char *call_string) const |
bool | operator== (const C4PropertyPath &v) const |
Public Attributes | |
enum C4PropertyPath::PathType | get_path_type |
enum C4PropertyPath::PathType | set_path_type |
Definition at line 27 of file C4PropertyPath.h.
Enumerator | |
---|---|
PPT_Root | |
PPT_Property | |
PPT_Index | |
PPT_SetFunction | |
PPT_GlobalSetFunction | |
PPT_RootSetFunction |
Definition at line 34 of file C4PropertyPath.h.
|
inline |
Definition at line 45 of file C4PropertyPath.h.
C4PropertyPath::C4PropertyPath | ( | C4PropList * | target | ) |
Definition at line 31 of file C4PropertyPath.cpp.
References StdStrBuf::Format(), C4PropListStatic::GetDataString(), C4PropList::GetObject(), C4PropList::IsStatic(), and C4PropListNumbered::Number.
Definition at line 57 of file C4PropertyPath.cpp.
References StdStrBuf::Format(), C4String::GetData(), C4PropList::GetName(), C4PropListNumbered::Number, C4StringTable::P, P_Global, C4Object::pEffects, C4AulScriptEngine::pGlobalEffects, C4Effect::pNext, ScriptEngine, and Strings.
|
inline |
Definition at line 48 of file C4PropertyPath.h.
C4PropertyPath::C4PropertyPath | ( | const C4PropertyPath & | parent, |
int32_t | elem_index | ||
) |
Definition at line 77 of file C4PropertyPath.cpp.
References StdStrBuf::Format(), get_path_type, GetGetPath(), PPT_Index, and set_path_type.
C4PropertyPath::C4PropertyPath | ( | const C4PropertyPath & | parent, |
const char * | child_property | ||
) |
Definition at line 83 of file C4PropertyPath.cpp.
References StdStrBuf::Format(), and GetGetPath().
|
inline |
Definition at line 52 of file C4PropertyPath.h.
References StdStrBuf::Clear().
void C4PropertyPath::DoCall | ( | const char * | call_string | ) | const |
Definition at line 143 of file C4PropertyPath.cpp.
References CID_Script, Console, C4Console::EditCursor, C4EditCursor::EMControl(), StdStrBuf::Format(), and StdStrBuf::getData().
|
inline |
Definition at line 53 of file C4PropertyPath.h.
References StdStrBuf::getData().
Referenced by C4PropertyPath(), and SetSetPath().
|
inline |
Definition at line 55 of file C4PropertyPath.h.
References StdStrBuf::getData().
Referenced by SetSetPath().
|
inline |
Definition at line 54 of file C4PropertyPath.h.
References StdStrBuf::getData().
Referenced by SetProperty().
|
inline |
Definition at line 56 of file C4PropertyPath.h.
References StdStrBuf::getLength().
|
inline |
Definition at line 64 of file C4PropertyPath.h.
C4Value C4PropertyPath::ResolveRoot | ( | ) | const |
Definition at line 137 of file C4PropertyPath.cpp.
References AulExec, C4VNull, C4AulExec::DirectExec(), StdStrBuf::getData(), StdStrBuf::getLength(), C4AulScriptEngine::GetPropList(), and ScriptEngine.
C4Value C4PropertyPath::ResolveValue | ( | ) | const |
Definition at line 131 of file C4PropertyPath.cpp.
References AulExec, C4VNull, C4AulExec::DirectExec(), StdStrBuf::getData(), StdStrBuf::getLength(), C4AulScriptEngine::GetPropList(), and ScriptEngine.
void C4PropertyPath::SetProperty | ( | const C4Value & | to_val, |
const C4PropListStatic * | ignore_reference_parent = nullptr |
||
) | const |
Definition at line 126 of file C4PropertyPath.cpp.
References StdStrBuf::getData(), C4Value::GetDataString(), and SetProperty().
void C4PropertyPath::SetProperty | ( | const char * | set_string | ) | const |
Definition at line 111 of file C4PropertyPath.cpp.
References CID_Script, Console, C4Console::EditCursor, C4EditCursor::EMControl(), StdStrBuf::Format(), StdStrBuf::getData(), GetSetPath(), PPT_GlobalSetFunction, PPT_RootSetFunction, PPT_SetFunction, and set_path_type.
Referenced by SetProperty().
void C4PropertyPath::SetSetPath | ( | const C4PropertyPath & | parent, |
const char * | child_property, | ||
C4PropertyPath::PathType | path_type | ||
) |
Definition at line 89 of file C4PropertyPath.cpp.
References StdStrBuf::Copy(), StdStrBuf::Format(), GetGetPath(), GetRoot(), PPT_GlobalSetFunction, PPT_Property, PPT_RootSetFunction, PPT_SetFunction, and set_path_type.
enum C4PropertyPath::PathType C4PropertyPath::get_path_type |
Referenced by C4PropertyPath().
enum C4PropertyPath::PathType C4PropertyPath::set_path_type |
Referenced by C4PropertyPath(), SetProperty(), and SetSetPath().