libcluon  0.0.148
MetaMessageToProtoTransformator.hpp
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2017-2018 Christian Berger
3  *
4  * This Source Code Form is subject to the terms of the Mozilla Public
5  * License, v. 2.0. If a copy of the MPL was not distributed with this
6  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
7  */
8 
9 #ifndef CLUON_METAMESSAGETOPROTOTRANSFORMATOR_HPP
10 #define CLUON_METAMESSAGETOPROTOTRANSFORMATOR_HPP
11 
12 #include "Mustache/mustache.hpp"
13 #include "cluon/MetaMessage.hpp"
14 #include "cluon/cluon.hpp"
15 
16 #include <string>
17 
18 namespace cluon {
25  private:
29 
30  public:
33 
39  void visit(const MetaMessage &mm) noexcept;
40 
44  std::string content(bool withProtoHeader) noexcept;
45 
46  private:
47  kainjow::mustache::data m_dataToBeRendered;
48  kainjow::mustache::data m_fields{kainjow::mustache::data::type::list};
49 };
50 } // namespace cluon
51 
52 #endif
Definition: cluon.hpp:65
return mm
Definition: MessageParser.cpp:257
#define LIBCLUON_API
Definition: cluon.hpp:56
Definition: MetaMessageToProtoTransformator.hpp:24
Definition: MetaMessage.hpp:25