Static Public Member Functions | Private Member Functions | Static Private Attributes
variant_topic_tools::MessageTypeParser Class Reference

Message definition parser. More...

#include <MessageTypeParser.h>

List of all members.

Static Public Member Functions

static bool matchType (const std::string &expression, std::string &package, std::string &type)
 Match any message type expression.

Private Member Functions

 MessageTypeParser ()
 Default constructor.
 ~MessageTypeParser ()
 Destructor.

Static Private Attributes

static const boost::regex packageExpression
 Regular expression for matching a package.
static const boost::regex packageTypeExpression
 Regular expression for matching a message type with package prefix.
static const boost::regex plainTypeExpression
 Regular expression for matching a message type without package prefix.
static const boost::regex typeExpression
 Regular expression for matching a message type.

Detailed Description

Message definition parser.

Definition at line 33 of file MessageTypeParser.h.


Constructor & Destructor Documentation

Default constructor.

Definition at line 43 of file MessageTypeParser.cpp.

Destructor.

Definition at line 46 of file MessageTypeParser.cpp.


Member Function Documentation

bool variant_topic_tools::MessageTypeParser::matchType ( const std::string &  expression,
std::string &  package,
std::string &  type 
) [static]

Match any message type expression.

Definition at line 53 of file MessageTypeParser.cpp.


Member Data Documentation

const boost::regex variant_topic_tools::MessageTypeParser::packageExpression [static, private]
Initial value:
  boost::regex("[a-zA-Z][a-zA-Z0-9_]*")

Regular expression for matching a package.

Definition at line 43 of file MessageTypeParser.h.

Initial value:
  boost::regex("("+packageExpression.str()+")/("+typeExpression.str()+")")

Regular expression for matching a message type with package prefix.

Definition at line 57 of file MessageTypeParser.h.

Initial value:
  boost::regex("("+typeExpression.str()+")")

Regular expression for matching a message type without package prefix.

Definition at line 52 of file MessageTypeParser.h.

const boost::regex variant_topic_tools::MessageTypeParser::typeExpression [static, private]
Initial value:
  boost::regex("[a-zA-Z][a-zA-Z0-9_]*")

Regular expression for matching a message type.

Definition at line 47 of file MessageTypeParser.h.


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


variant_topic_tools
Author(s): Ralf Kaestner
autogenerated on Tue Jul 9 2019 03:18:42