libcluon  0.0.148
cluon::MetaMessageToProtoTransformator Class Reference

#include <MetaMessageToProtoTransformator.hpp>

Public Member Functions

 MetaMessageToProtoTransformator ()=default
 
 MetaMessageToProtoTransformator (const MetaMessageToProtoTransformator &)=default
 
void visit (const MetaMessage &mm) noexcept
 
std::string content (bool withProtoHeader) noexcept
 

Detailed Description

This class transforms a given MetaMessage to a .proto file.

Transformation is using https://github.com/kainjow/Mustache.

Constructor & Destructor Documentation

◆ MetaMessageToProtoTransformator() [1/2]

cluon::MetaMessageToProtoTransformator::MetaMessageToProtoTransformator ( )
default

◆ MetaMessageToProtoTransformator() [2/2]

cluon::MetaMessageToProtoTransformator::MetaMessageToProtoTransformator ( const MetaMessageToProtoTransformator )
default

Member Function Documentation

◆ content()

std::string cluon::MetaMessageToProtoTransformator::content ( bool  withProtoHeader)
noexcept
Returns
Content of the .proto file.

◆ visit()