OpenDDS
Snapshot(2023/04/07-19:43)
|
#include <Utils.h>
Public Member Functions | |
MemberPathParser (const char *path) | |
MemberPathParser (const DCPS::String &path) | |
bool | consume (size_t by) |
bool | get_next_subpath () |
bool | get_index (CORBA::UInt32 &index) |
Public Attributes | |
size_t | pos |
size_t | left |
const char * | path |
bool | error |
bool | in_subscript |
DCPS::String | subpath |
Iterate over parts of a member name path that can be the name of a field inside a function or an array element nested multiple levels inside a type.
Examples: "member_a" "member_b[2]" "member_b[2].x" "[2]" (If the DynamicData is indexed or keyed)
Definition at line 43 of file XTypes/Utils.h.
|
inline |
|
inline |
Definition at line 61 of file XTypes/Utils.h.
bool OpenDDS::XTypes::MemberPathParser::consume | ( | size_t | by | ) |
Definition at line 113 of file XTypes/Utils.cpp.
References ACE_ERROR, error, left, LM_WARNING, OpenDDS::DCPS::log_level, path, pos, and OpenDDS::DCPS::LogLevel::Warning.
Referenced by get_next_subpath().
bool OpenDDS::XTypes::MemberPathParser::get_index | ( | CORBA::UInt32 & | index | ) |
Definition at line 213 of file XTypes/Utils.cpp.
References ACE_ERROR, OpenDDS::DCPS::convertToInteger(), in_subscript, LM_NOTICE, OpenDDS::DCPS::log_level, OpenDDS::DCPS::LogLevel::Notice, and subpath.
bool OpenDDS::XTypes::MemberPathParser::get_next_subpath | ( | ) |
Put the next member name or subscript value in subpath and which kind in in_subscript. Returns false when the end of the path is reached or there was an error in which case error is set to true.
Definition at line 129 of file XTypes/Utils.cpp.
References ACE_ERROR, consume(), error, in_subscript, left, LM_NOTICE, OpenDDS::DCPS::log_level, OpenDDS::DCPS::LogLevel::Notice, path, pos, and subpath.
Referenced by OpenDDS::XTypes::MemberPath::resolve_string_path().
bool OpenDDS::XTypes::MemberPathParser::error |
Definition at line 48 of file XTypes/Utils.h.
Referenced by consume(), and get_next_subpath().
bool OpenDDS::XTypes::MemberPathParser::in_subscript |
Definition at line 49 of file XTypes/Utils.h.
Referenced by get_index(), get_next_subpath(), and OpenDDS::XTypes::MemberPath::resolve_string_path().
size_t OpenDDS::XTypes::MemberPathParser::left |
Definition at line 46 of file XTypes/Utils.h.
Referenced by consume(), and get_next_subpath().
const char* OpenDDS::XTypes::MemberPathParser::path |
Definition at line 47 of file XTypes/Utils.h.
Referenced by consume(), OpenDDS::XTypes::MemberPath::get_member_from_data(), and get_next_subpath().
size_t OpenDDS::XTypes::MemberPathParser::pos |
Definition at line 45 of file XTypes/Utils.h.
Referenced by consume(), and get_next_subpath().
DCPS::String OpenDDS::XTypes::MemberPathParser::subpath |
Definition at line 50 of file XTypes/Utils.h.
Referenced by get_index(), get_next_subpath(), and OpenDDS::XTypes::MemberPath::resolve_string_path().