aboutsummaryrefslogtreecommitdiff
path: root/contrib/protoc-bnet/BnetCodeGenerator.h
blob: 1d40ae2522e133a8ef84df475e80c3bc89c19942 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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