aboutsummaryrefslogtreecommitdiff
path: root/contrib/protoc-bnet/BnetCodeGenerator.h
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/protoc-bnet/BnetCodeGenerator.h')
-rw-r--r--contrib/protoc-bnet/BnetCodeGenerator.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/contrib/protoc-bnet/BnetCodeGenerator.h b/contrib/protoc-bnet/BnetCodeGenerator.h
new file mode 100644
index 00000000000..1d40ae2522e
--- /dev/null
+++ b/contrib/protoc-bnet/BnetCodeGenerator.h
@@ -0,0 +1,24 @@
+//
+// Created by tea on 10.03.16.
+//
+
+#ifndef PROTOC_BNET_BNETCODEGENERATOR_H
+#define PROTOC_BNET_BNETCODEGENERATOR_H
+
+#include <google/protobuf/compiler/code_generator.h>
+#include <string>
+
+namespace pb = google::protobuf;
+namespace pbc = pb::compiler;
+
+class BnetCodeGenerator : public pbc::CodeGenerator
+{
+public:
+ bool Generate(pb::FileDescriptor const* file,
+ std::string const& parameter,
+ pbc::GeneratorContext* generator_context,
+ std::string* error) const override;
+
+};
+
+#endif //PROTOC_BNET_BNETCODEGENERATOR_H