Get the peer and object from an invocation path like a.b.c.d() . More...
#include <rtt/scripting/PeerParser.hpp>
Public Member Functions | |
PeerParser (TaskContext *c, CommonParser &cp, bool fullpath=false) | |
Create a PeerParser which starts looking for peers from a task. | |
void | reset () |
After reset, peer() == current context and object() == "this". | |
rule_t & | parser () |
The parser tries to traverse a full peer-to-object path and throws if it got stuck in the middle. | |
rule_t & | locator () |
The locator tries to go as far as possible in the peer-to-object path and will never throw. | |
TaskContext * | peer () |
Returns the last matching peer. | |
std::string | object () |
Returns the last matching object name. | |
OperationInterface * | taskObject () |
Returns the last matching TaskObject or zero if not found. |
Get the peer and object from an invocation path like a.b.c.d() .
Definition at line 59 of file PeerParser.hpp.
RTT::detail::PeerParser::PeerParser | ( | TaskContext * | c, | |
CommonParser & | cp, | |||
bool | fullpath = false | |||
) |
Create a PeerParser which starts looking for peers from a task.
c | The task to start searching from. | |
fullpath | Set to true if the parser() must resolve the full path. |
rule_t& RTT::detail::PeerParser::locator | ( | ) |
rule_t& RTT::detail::PeerParser::parser | ( | ) |