37 #ifndef PROTOC_GENERATORHELPERS_H_
38 #define PROTOC_GENERATORHELPERS_H_
40 #include <google/protobuf/descriptor.h>
41 #include <google/protobuf/descriptor.pb.h>
50 extern const char kThickSeparator[];
51 extern const char kThinSeparator[];
61 string ClassName(
const google::protobuf::Descriptor* descriptor,
65 string StripProto(
const string& filename);
68 string FilenameIdentifier(
const string& filename);
71 string GlobalAddDescriptorsName(
const string& filename);
74 string GlobalAssignDescriptorsName(
const string& filename);
77 inline bool HasDescriptorMethods(
const google::protobuf::FileDescriptor* file) {
78 return file->options().optimize_for() !=
79 google::protobuf::FileOptions::LITE_RUNTIME;
82 #endif // PROTOC_GENERATORHELPERS_H_