EmbeddedProto  2.0.0
EmbeddedProto is a C++ Protocol Buffer implementation specifically suitable for microcontrollers.
Header.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2020 Embedded AMS B.V. - All Rights Reserved
3  *
4  * This file is part of Embedded Proto.
5  *
6  * Embedded Proto is open source software: you can redistribute it and/or
7  * modify it under the terms of the GNU General Public License as published
8  * by the Free Software Foundation, version 3 of the license.
9  *
10  * Embedded Proto is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with Embedded Proto. If not, see <https://www.gnu.org/licenses/>.
17  *
18  * For commercial and closed source application please visit:
19  * <https://EmbeddedProto.com/license/>.
20  *
21  * Embedded AMS B.V.
22  * Info:
23  * info at EmbeddedProto dot com
24  *
25  * Postal address:
26  * Johan Huizingalaan 763a
27  * 1066 VH, Amsterdam
28  * the Netherlands
29  */
30 
31 // This file is generated. Please do not edit!
32 #ifndef _{{proto_file.get_header_guard()}}_H_
33 #define _{{proto_file.get_header_guard()}}_H_
34 
35 #include <cstdint>
36 {% if proto_file.msg_definitions %}
37 #include <MessageInterface.h>
38 #include <WireFormatter.h>
39 #include <Fields.h>
40 #include <MessageSizeCalculator.h>
41 #include <ReadBufferSection.h>
42 #include <RepeatedFieldFixedSize.h>
43 #include <FieldStringBytes.h>
44 #include <Errors.h>
45 
46 {% endif %}
47 {% if proto_file.get_dependencies() is defined %}
48 // Include external proto definitions
49 {% for dependency in proto_file.get_dependencies() %}
50 #include <{{dependency}}>
51 {% endfor %}
52 
53 {% endif %}
54 {% for namespace in proto_file.get_namespaces() %}
55 namespace {{ namespace }} {
56 {% endfor %}
57 
58 {% for enum in proto_file.enum_definitions %}
59 {{ enum.render(environment) }}
60 
61 {% endfor %}
62 {% for msg in proto_file.msg_definitions %}
63 {{ msg.render(environment) }}
64 
65 {% endfor %}
66 {% for namespace in proto_file.get_namespaces()|reverse %}
67 } // End of namespace {{ namespace }}
68 {% endfor %}
69 #endif // _{{proto_file.get_header_guard()}}_H_
MessageSizeCalculator.h
Fields.h
MessageInterface.h
Errors.h
ReadBufferSection.h
RepeatedFieldFixedSize.h
FieldStringBytes.h
WireFormatter.h