Public Member Functions | Private Member Functions | Private Attributes | List of all members
RTT::scripting::ValueParser Class Reference

A class for parsing const values. More...

#include <ValueParser.hpp>

Public Member Functions

void clear ()
 
const base::DataSourceBase::shared_ptr lastParsed () const
 
rule_tparser ()
 
 ValueParser (TaskContext *tc, CommonParser &cp)
 
 ~ValueParser ()
 

Private Member Functions

void push_str_char (char c)
 
void seenboolconstant (iter_t begin, iter_t end)
 
void seencharconstant (iter_t c)
 
void seendoubleconstant (double c)
 
void seenfloatconstant (double c)
 
void seenhexconstant (unsigned int c)
 
void seenintconstant (int c)
 
void seenllongconstant (long long c)
 
void seennamedconstant (iter_t begin, iter_t end)
 
void seennull ()
 
void seenpeer ()
 
void seenstring ()
 
void seenuintconstant (unsigned int c)
 
void seenullongconstant (unsigned long long c)
 

Private Attributes

CommonParsercommonparser
 
rule_t const_bool
 
rule_t const_char
 
rule_t const_double
 
rule_t const_float
 
rule_t const_hex
 
rule_t const_int
 
rule_t const_llong
 
rule_t const_string
 
rule_t const_uint
 
rule_t const_ullong
 
rule_t constant
 
std::string mcurstring
 
rule_t named_constant
 
PeerParser peerparser
 
PropertyParser propparser
 
base::DataSourceBase::shared_ptr ret
 

Detailed Description

A class for parsing const values.

It recognizes types and stores them in a TaskVariableBase.

Definition at line 58 of file ValueParser.hpp.

Constructor & Destructor Documentation

RTT::ValueParser::ValueParser ( TaskContext tc,
CommonParser cp 
)

Definition at line 58 of file ValueParser.cpp.

RTT::ValueParser::~ValueParser ( )

Definition at line 245 of file ValueParser.cpp.

Member Function Documentation

void RTT::ValueParser::clear ( )

Clears this parser, not the repository where it stores its results.

Definition at line 250 of file ValueParser.cpp.

const base::DataSourceBase::shared_ptr RTT::scripting::ValueParser::lastParsed ( ) const
inline

Definition at line 110 of file ValueParser.hpp.

rule_t & RTT::ValueParser::parser ( )

Definition at line 255 of file ValueParser.cpp.

void RTT::ValueParser::push_str_char ( char  c)
private

Definition at line 260 of file ValueParser.cpp.

void RTT::ValueParser::seenboolconstant ( iter_t  begin,
iter_t  end 
)
private

Definition at line 144 of file ValueParser.cpp.

void RTT::ValueParser::seencharconstant ( iter_t  c)
private

Definition at line 205 of file ValueParser.cpp.

void RTT::ValueParser::seendoubleconstant ( double  c)
private

Definition at line 240 of file ValueParser.cpp.

void RTT::ValueParser::seenfloatconstant ( double  c)
private

Definition at line 235 of file ValueParser.cpp.

void RTT::ValueParser::seenhexconstant ( unsigned int  c)
private

Definition at line 210 of file ValueParser.cpp.

void RTT::ValueParser::seenintconstant ( int  c)
private

Definition at line 215 of file ValueParser.cpp.

void RTT::ValueParser::seenllongconstant ( long long  c)
private

Definition at line 225 of file ValueParser.cpp.

void RTT::ValueParser::seennamedconstant ( iter_t  begin,
iter_t  end 
)
private

Definition at line 156 of file ValueParser.cpp.

void RTT::ValueParser::seennull ( )
private

Definition at line 200 of file ValueParser.cpp.

void RTT::ValueParser::seenpeer ( )
private

Definition at line 137 of file ValueParser.cpp.

void RTT::ValueParser::seenstring ( )
private

Definition at line 265 of file ValueParser.cpp.

void RTT::ValueParser::seenuintconstant ( unsigned int  c)
private

Definition at line 220 of file ValueParser.cpp.

void RTT::ValueParser::seenullongconstant ( unsigned long long  c)
private

Definition at line 230 of file ValueParser.cpp.

Member Data Documentation

CommonParser& RTT::scripting::ValueParser::commonparser
private

Definition at line 62 of file ValueParser.hpp.

rule_t RTT::scripting::ValueParser::const_bool
private

Definition at line 60 of file ValueParser.hpp.

rule_t RTT::scripting::ValueParser::const_char
private

Definition at line 60 of file ValueParser.hpp.

rule_t RTT::scripting::ValueParser::const_double
private

Definition at line 60 of file ValueParser.hpp.

rule_t RTT::scripting::ValueParser::const_float
private

Definition at line 60 of file ValueParser.hpp.

rule_t RTT::scripting::ValueParser::const_hex
private

Definition at line 60 of file ValueParser.hpp.

rule_t RTT::scripting::ValueParser::const_int
private

Definition at line 60 of file ValueParser.hpp.

rule_t RTT::scripting::ValueParser::const_llong
private

Definition at line 60 of file ValueParser.hpp.

rule_t RTT::scripting::ValueParser::const_string
private

Definition at line 60 of file ValueParser.hpp.

rule_t RTT::scripting::ValueParser::const_uint
private

Definition at line 60 of file ValueParser.hpp.

rule_t RTT::scripting::ValueParser::const_ullong
private

Definition at line 60 of file ValueParser.hpp.

rule_t RTT::scripting::ValueParser::constant
private

Definition at line 60 of file ValueParser.hpp.

std::string RTT::scripting::ValueParser::mcurstring
private

Definition at line 82 of file ValueParser.hpp.

rule_t RTT::scripting::ValueParser::named_constant
private

Definition at line 60 of file ValueParser.hpp.

PeerParser RTT::scripting::ValueParser::peerparser
private

Definition at line 63 of file ValueParser.hpp.

PropertyParser RTT::scripting::ValueParser::propparser
private

Definition at line 64 of file ValueParser.hpp.

base::DataSourceBase::shared_ptr RTT::scripting::ValueParser::ret
private

Definition at line 78 of file ValueParser.hpp.


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


rtt
Author(s): RTT Developers
autogenerated on Fri Oct 25 2019 03:59:47