fipa_acl  1.4
Public Member Functions | Public Attributes | List of all members
fipa::acl::grammar::string::UserdefinedParameter< Iterator > Struct Template Reference

#include <grammar_string_message.h>

Inherits grammar< Iterator, fipa::acl::UserdefParam(), qi::locals< std::string, std::string > >.

Public Member Functions

 UserdefinedParameter ()
 

Public Attributes

qi::rule< Iterator, std::string()> paramLabel
 
Expression< Iterator > expression
 
WordWithoutKeyword< Iterator > wordWithoutKeyword
 
qi::rule< Iterator, fipa::acl::UserdefParam(), qi::locals< std::string, std::string > > param
 

Detailed Description

template<typename Iterator>
struct fipa::acl::grammar::string::UserdefinedParameter< Iterator >

Definition at line 290 of file grammar_string_message.h.

Constructor & Destructor Documentation

template<typename Iterator>
fipa::acl::grammar::string::UserdefinedParameter< Iterator >::UserdefinedParameter ( )
inline

Definition at line 293 of file grammar_string_message.h.

293  : UserdefinedParameter::base_type(param, "userdefined_parameter-string_grammar")
294  {
295  using phoenix::construct;
296  using phoenix::val;
297 
298  using namespace fipa::acl;
299  namespace label = qi::labels;
300 
301  param = (paramLabel [ label::_a = label::_1 ]
302  >> expression [ label::_b = label::_1 ]
303  ) [ label::_val = phoenix::construct<fipa::acl::UserdefParam>(label::_a, label::_b)]
304  ;
305 
306  paramLabel = qi::lit(":X-")
307  // TODO: keyword list needs to be dynamically updated or previously known,
308  // otherwise parsing will greedly consume the following parameter expression
309  // For now expression should be provided with parentheses to handle this
310  >> wordWithoutKeyword [ label::_val = label::_1 ]
311  ;
312  }
qi::rule< Iterator, fipa::acl::UserdefParam(), qi::locals< std::string, std::string > > param
Agent Communication Language.
Definition: conversation.cpp:7

Member Data Documentation

template<typename Iterator>
Expression<Iterator> fipa::acl::grammar::string::UserdefinedParameter< Iterator >::expression

Definition at line 315 of file grammar_string_message.h.

template<typename Iterator>
qi::rule<Iterator, fipa::acl::UserdefParam(), qi::locals<std::string,std::string> > fipa::acl::grammar::string::UserdefinedParameter< Iterator >::param

Definition at line 317 of file grammar_string_message.h.

template<typename Iterator>
qi::rule<Iterator, std::string()> fipa::acl::grammar::string::UserdefinedParameter< Iterator >::paramLabel

Definition at line 314 of file grammar_string_message.h.

template<typename Iterator>
WordWithoutKeyword<Iterator> fipa::acl::grammar::string::UserdefinedParameter< Iterator >::wordWithoutKeyword

Definition at line 316 of file grammar_string_message.h.


The documentation for this struct was generated from the following file: