RTT::scripting::PropertyParser Class Reference

#include <PropertyParser.hpp>

List of all members.

Public Member Functions

PropertyBagbag () const
PropertyBagbag () const
rule_tlocator ()
rule_tlocator ()
base::PropertyBaseproperty () const
base::PropertyBaseproperty () const
 PropertyParser (CommonParser &cp)
 PropertyParser (CommonParser &cp)
void reset ()
void reset ()
void setPropertyBag (PropertyBag *pb)
void setPropertyBag (PropertyBag *pb)

Private Types

enum  PropertyErrors { bag_not_found, bag_not_found }
enum  PropertyErrors { bag_not_found, bag_not_found }

Private Member Functions

error_status handle_no_property (scanner_t const &scan, parser_error< PropertyErrors, iter_t > &e)
error_status handle_no_property (scanner_t const &scan, parser_error< PropertyErrors, iter_t > &e)
void locateproperty (iter_t begin, iter_t end)
void locateproperty (iter_t begin, iter_t end)

Private Attributes

PropertyBag_bag
base::PropertyBase_property
boost::iterator_difference
< iter_t >::type 
advance_on_error
CommonParsercommonparser
guard< PropertyErrorsmy_guard
rule_t propertylocator

Detailed Description

Get the property and bag from an invocation path like bag.subbag.prop .

Definition at line 55 of file install/include/rtt/scripting/PropertyParser.hpp.


Member Enumeration Documentation

Enumerator:
bag_not_found 
bag_not_found 

Definition at line 64 of file rtt/scripting/PropertyParser.hpp.

Enumerator:
bag_not_found 
bag_not_found 

Definition at line 64 of file install/include/rtt/scripting/PropertyParser.hpp.


Constructor & Destructor Documentation

RTT::PropertyParser::PropertyParser ( CommonParser cp  ) 

Definition at line 64 of file PropertyParser.cpp.

RTT::scripting::PropertyParser::PropertyParser ( CommonParser cp  ) 

Member Function Documentation

PropertyBag* RTT::scripting::PropertyParser::bag (  )  const [inline]

Definition at line 99 of file rtt/scripting/PropertyParser.hpp.

PropertyBag* RTT::scripting::PropertyParser::bag (  )  const [inline]
error_status RTT::scripting::PropertyParser::handle_no_property ( scanner_t const &  scan,
parser_error< PropertyErrors, iter_t > &  e 
) [private]
error_status RTT::PropertyParser::handle_no_property ( scanner_t const &  scan,
parser_error< PropertyErrors, iter_t > &  e 
) [private]

Definition at line 57 of file PropertyParser.cpp.

void RTT::scripting::PropertyParser::locateproperty ( iter_t  begin,
iter_t  end 
) [private]
void RTT::PropertyParser::locateproperty ( iter_t  begin,
iter_t  end 
) [private]

Definition at line 90 of file PropertyParser.cpp.

rule_t& RTT::scripting::PropertyParser::locator (  ) 

The locator tries to go as far as possible in the bag-to-property path and will never throw. property() will contain the last valid property found. If zero, nothing was found. If non-zero bag() returns the bag type if property is a bag, or zero if property() is not a bag. Thus property() contains the 'name' of the deepest nested bag() found.

rule_t & RTT::PropertyParser::locator (  ) 

The locator tries to go as far as possible in the bag-to-property path and will never throw. property() will contain the last valid property found. If zero, nothing was found. If non-zero bag() returns the bag type if property is a bag, or zero if property() is not a bag. Thus property() contains the 'name' of the deepest nested bag() found.

Definition at line 124 of file PropertyParser.cpp.

base::PropertyBase* RTT::scripting::PropertyParser::property (  )  const [inline]

Definition at line 97 of file rtt/scripting/PropertyParser.hpp.

base::PropertyBase* RTT::scripting::PropertyParser::property (  )  const [inline]
void RTT::scripting::PropertyParser::reset (  ) 

After reset, property() == 0 and bag == 0.

void RTT::PropertyParser::reset (  ) 

After reset, property() == 0 and bag == 0.

Definition at line 83 of file PropertyParser.cpp.

void RTT::scripting::PropertyParser::setPropertyBag ( PropertyBag pb  ) 

Change the bag we want to traverse.

void RTT::PropertyParser::setPropertyBag ( PropertyBag pb  ) 

Change the bag we want to traverse.

Definition at line 76 of file PropertyParser.cpp.


Member Data Documentation

boost::iterator_difference< iter_t >::type RTT::scripting::PropertyParser::advance_on_error [private]

set by locateproperty, read by handle_no_property

Definition at line 70 of file install/include/rtt/scripting/PropertyParser.hpp.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


rtt
Author(s): RTT Developers
autogenerated on Fri Jan 11 09:50:15 2013