OpenWalnut  1.4.0
Public Member Functions | List of all members
WStructuredTextParser::NameQueryVisitor Class Reference

Visitor to query the m_name member of WStructuredTextParser::ObjectType and WStructuredTextParser::KeyValueType. More...

#include <WStructuredTextParser.h>

+ Inheritance diagram for WStructuredTextParser::NameQueryVisitor:

Public Member Functions

std::string operator() (const CommentType &) const
 Comments have no name.
template<typename T >
std::string operator() (const T &element) const
 Returns the m_name member of the specified object or key-valuev pair.

Detailed Description

Visitor to query the m_name member of WStructuredTextParser::ObjectType and WStructuredTextParser::KeyValueType.

Definition at line 567 of file WStructuredTextParser.h.

Member Function Documentation

std::string WStructuredTextParser::NameQueryVisitor::operator() ( const CommentType ) const
inline

Comments have no name.

Returns
empty string.

Definition at line 575 of file WStructuredTextParser.h.

template<typename T >
std::string WStructuredTextParser::NameQueryVisitor::operator() ( const T &  element) const
inline

Returns the m_name member of the specified object or key-valuev pair.

Parameters
elementSpecified object.
Template Parameters
Tone of the types of the WStructuredTextParser::MemberType variant
Returns
always true since it identified an key-value pair

Definition at line 589 of file WStructuredTextParser.h.


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