Orocos Real-Time Toolkit  2.6.0
Public Member Functions
RTT::scripting::PeerParser Class Reference

Get the peer and object from an invocation path like a.b.c.d() . More...

#include <rtt/scripting/PeerParser.hpp>

List of all members.

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.
TaskContextpeer ()
 Returns the last matching peer.
std::string object ()
 Returns the last matching object name.
ServicePtr taskObject ()
 Returns the last matching Service or zero if not found.

Detailed Description

Get the peer and object from an invocation path like a.b.c.d() .

Definition at line 58 of file PeerParser.hpp.


Constructor & Destructor Documentation

RTT::PeerParser::PeerParser ( TaskContext c,
CommonParser cp,
bool  fullpath = false 
)

Create a PeerParser which starts looking for peers from a task.

Parameters:
cThe task to start searching from.
fullpathSet to true if the parser() must resolve the full path.

Definition at line 134 of file PeerParser.cpp.

References RTT::scripting::CommonParser::notassertingidentifier.


Member Function Documentation

The locator tries to go as far as possible in the peer-to-object path and will never throw.

peer() and object() will contain the last valid peer found and its supposed object, attribute or value.

Definition at line 216 of file PeerParser.cpp.

The parser tries to traverse a full peer-to-object path and throws if it got stuck in the middle.

peer() will return the target peer and object() is this or the supposed object of the peer. The parser does not check if this object exists.

Definition at line 211 of file PeerParser.cpp.


The documentation for this class was generated from the following files: