35 #ifndef GOOGLE_PROTOBUF_COMPILER_CPP_HELPERS_H__
36 #define GOOGLE_PROTOBUF_COMPILER_CPP_HELPERS_H__
66 string ClassName(
const Descriptor* descriptor,
bool qualified);
67 string ClassName(
const EnumDescriptor* enum_descriptor,
bool qualified);
75 string FieldName(
const FieldDescriptor* field);
136 const string& prefix);
186 const char* with_static_init,
const char* without_static_init,
187 const char* var1 =
NULL,
const string& val1 =
"",
188 const char* var2 =
NULL,
const string& val2 =
"");
192 io::Printer* printer,
const char* with_static_init,
193 const char* without_static_init);
206 #endif // GOOGLE_PROTOBUF_COMPILER_CPP_HELPERS_H__
string GlobalShutdownFileName(const string &filename)
int service_count() const
bool is_extension() const
string FieldName(const FieldDescriptor *field)
string DefaultValue(const FieldDescriptor *field)
string FilenameIdentifier(const string &filename)
bool HasFastArraySerialization(const FileDescriptor *file)
Definition: cpp_helpers.h:174
string GlobalAddDescriptorsName(const string &filename)
bool HasEnumDefinitions(const FileDescriptor *file)
bool HasGenericServices(const FileDescriptor *file)
Definition: cpp_helpers.h:160
Definition: descriptor.h:126
arena_t NULL
Definition: jemalloc_internal.h:624
string SafeFunctionName(const Descriptor *descriptor, const FieldDescriptor *field, const string &prefix)
string Int32ToString(int number)
string FieldConstantName(const FieldDescriptor *field)
bool HasGeneratedMethods(const FileDescriptor *file)
Definition: cpp_helpers.h:150
string GlobalAssignDescriptorsName(const string &filename)
const Descriptor * extension_scope() const
const char * PrimitiveTypeName(FieldDescriptor::CppType type)
string QualifiedFileLevelSymbol(const string &package, const string &name)
static const OptimizeMode CODE_SIZE
Definition: descriptor.pb.h:1555
string SuperClassName(const Descriptor *descriptor)
bool StaticInitializersForced(const FileDescriptor *file)
bool HasDescriptorMethods(const FileDescriptor *file)
Definition: cpp_helpers.h:155
inline::google::protobuf::FileOptions_OptimizeMode optimize_for() const
Definition: descriptor.pb.h:5230
const char kThickSeparator[]
const Descriptor * containing_type() const
static const OptimizeMode SPEED
Definition: descriptor.pb.h:1554
string EscapeTrigraphs(const string &to_escape)
const char kThinSeparator[]
bool HasUtf8Verification(const FileDescriptor *file)
Definition: cpp_helpers.h:167
const Descriptor * FieldScope(const FieldDescriptor *field)
Definition: cpp_helpers.h:83
bool cc_generic_services() const
Definition: descriptor.pb.h:5331
string StripProto(const string &filename)
CppType
Definition: descriptor.h:378
string ClassName(const Descriptor *descriptor, bool qualified)
int64_t int64
Definition: common.h:173
Definition: descriptor.h:342
string UnderscoresToCamelCase(const string &input, bool cap_next_letter)
Definition: BnetFileGenerator.h:47
string Int64ToString(int64 number)
static const OptimizeMode LITE_RUNTIME
Definition: descriptor.pb.h:1556
string FieldMessageTypeName(const FieldDescriptor *field)
bool IsStringOrMessage(const FieldDescriptor *field)
void PrintHandlingOptionalStaticInitializers(const FileDescriptor *file, io::Printer *printer, const char *with_static_init, const char *without_static_init, const char *var1=NULL, const string &val1="", const char *var2=NULL, const string &val2="")
Definition: descriptor.h:986
bool UseUnknownFieldSet(const FileDescriptor *file)
Definition: cpp_helpers.h:140
Type
Definition: descriptor.h:346
const char * DeclaredTypeMethodName(FieldDescriptor::Type type)
const FileOptions & options() const