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

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

#include <WStructuredTextParser.h>

+ Inheritance diagram for WStructuredTextParser::NameQueryVisitor:

Public Member Functions

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

Detailed Description

Visitor to query the m_name member of ObjectType and KeyValueType.

Definition at line 566 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 574 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 MemberType variant
Returns
always true since it identified an key-value pair

Definition at line 588 of file WStructuredTextParser.h.


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