Namespaces | Classes | Enumerations | Functions | Variables
google::protobuf::compiler::objectivec Namespace Reference

Namespaces

 posix
 

Classes

class  EnumFieldGenerator
 
class  EnumGenerator
 
class  ExtensionGenerator
 
class  FieldGenerator
 
class  FieldGeneratorMap
 
class  FileGenerator
 
class  ImportWriter
 
class  LineConsumer
 
class  MapFieldGenerator
 
class  MessageFieldGenerator
 
class  MessageGenerator
 
class  ObjCObjFieldGenerator
 
class  ObjectiveCGenerator
 
class  OneofGenerator
 
struct  Options
 
class  PrimitiveFieldGenerator
 
class  PrimitiveObjFieldGenerator
 
class  RepeatedEnumFieldGenerator
 
class  RepeatedFieldGenerator
 
class  RepeatedMessageFieldGenerator
 
class  RepeatedPrimitiveFieldGenerator
 
class  SingleFieldGenerator
 
class  TextFormatDecodeData
 

Enumerations

enum  FlagType { FLAGTYPE_DESCRIPTOR_INITIALIZATION, FLAGTYPE_EXTENSION, FLAGTYPE_FIELD }
 
enum  ObjectiveCType {
  OBJECTIVECTYPE_INT32, OBJECTIVECTYPE_UINT32, OBJECTIVECTYPE_INT64, OBJECTIVECTYPE_UINT64,
  OBJECTIVECTYPE_FLOAT, OBJECTIVECTYPE_DOUBLE, OBJECTIVECTYPE_BOOLEAN, OBJECTIVECTYPE_STRING,
  OBJECTIVECTYPE_DATA, OBJECTIVECTYPE_ENUM, OBJECTIVECTYPE_MESSAGE
}
 

Functions

string BaseFileName (const FileDescriptor *file)
 
string BuildCommentsString (const SourceLocation &location, bool prefer_single_line)
 
string BuildFlagsString (const FlagType flag_type, const std::vector< string > &strings)
 
string ClassName (const Descriptor *descriptor)
 
string ClassName (const Descriptor *descriptor, string *out_suffix_added)
 
string ClassNameWorker (const Descriptor *descriptor)
 
string ClassNameWorker (const EnumDescriptor *descriptor)
 
string DefaultValue (const FieldDescriptor *field)
 
string EnumName (const EnumDescriptor *descriptor)
 
string EnumValueName (const EnumValueDescriptor *descriptor)
 
string EnumValueShortName (const EnumValueDescriptor *descriptor)
 
string EscapeTrigraphs (const string &to_escape)
 
string ExtensionMethodName (const FieldDescriptor *descriptor)
 
string FieldName (const FieldDescriptor *field)
 
string FieldNameCapitalized (const FieldDescriptor *field)
 
string FileClassName (const FileDescriptor *file)
 
string FileClassPrefix (const FileDescriptor *file)
 
string FilePath (const FileDescriptor *file)
 
string FilePathBasename (const FileDescriptor *file)
 
string GetCapitalizedType (const FieldDescriptor *field)
 
ObjectiveCType GetObjectiveCType (const FieldDescriptor *field)
 
ObjectiveCType GetObjectiveCType (FieldDescriptor::Type field_type)
 
template<class TDescriptor >
string GetOptionalDeprecatedAttribute (const TDescriptor *descriptor, const FileDescriptor *file=NULL, bool preSpace=true, bool postNewline=false)
 
string GPBGenericValueFieldName (const FieldDescriptor *field)
 
static string HandleExtremeFloatingPoint (string val, bool add_float_suffix)
 
bool HasFieldPresence (const FileDescriptor *file)
 
bool HasNonZeroDefaultValue (const FieldDescriptor *field)
 
bool HasPreservingUnknownEnumSemantics (const FileDescriptor *file)
 
bool IsInitName (const string &name)
 
bool IsMapEntryMessage (const Descriptor *descriptor)
 
bool IsPrimitiveType (const FieldDescriptor *field)
 
bool IsProtobufLibraryBundledProtoFile (const FileDescriptor *file)
 
bool IsReferenceType (const FieldDescriptor *field)
 
bool IsRetainedName (const string &name)
 
string OneofEnumName (const OneofDescriptor *descriptor)
 
string OneofName (const OneofDescriptor *descriptor)
 
string OneofNameCapitalized (const OneofDescriptor *descriptor)
 
bool ParseSimpleFile (const string &path, LineConsumer *line_consumer, string *out_error)
 
string ProtobufFrameworkImportSymbol (const string &framework_name)
 
bool ReadLine (StringPiece *input, StringPiece *line)
 
void RemoveComment (StringPiece *input)
 
string StripProto (const string &filename)
 
void TrimWhitespace (StringPiece *input)
 
string UnCamelCaseEnumShortName (const string &name)
 
string UnCamelCaseFieldName (const string &name, const FieldDescriptor *field)
 
bool ValidateObjCClassPrefixes (const std::vector< const FileDescriptor * > &files, const Options &generation_options, string *out_error)
 

Variables

const char *const ProtobufLibraryFrameworkName = "Protobuf"
 

Enumeration Type Documentation

◆ FlagType

Enumerator
FLAGTYPE_DESCRIPTOR_INITIALIZATION 
FLAGTYPE_EXTENSION 
FLAGTYPE_FIELD 

Definition at line 151 of file objectivec_helpers.h.

◆ ObjectiveCType

Enumerator
OBJECTIVECTYPE_INT32 
OBJECTIVECTYPE_UINT32 
OBJECTIVECTYPE_INT64 
OBJECTIVECTYPE_UINT64 
OBJECTIVECTYPE_FLOAT 
OBJECTIVECTYPE_DOUBLE 
OBJECTIVECTYPE_BOOLEAN 
OBJECTIVECTYPE_STRING 
OBJECTIVECTYPE_DATA 
OBJECTIVECTYPE_ENUM 
OBJECTIVECTYPE_MESSAGE 

Definition at line 137 of file objectivec_helpers.h.

Function Documentation

◆ BaseFileName()

string google::protobuf::compiler::objectivec::BaseFileName ( const FileDescriptor file)

Definition at line 392 of file objectivec_helpers.cc.

◆ BuildCommentsString()

string PROTOC_EXPORT google::protobuf::compiler::objectivec::BuildCommentsString ( const SourceLocation location,
bool  prefer_single_line 
)

Definition at line 928 of file objectivec_helpers.cc.

◆ BuildFlagsString()

string PROTOC_EXPORT google::protobuf::compiler::objectivec::BuildFlagsString ( const FlagType  flag_type,
const std::vector< string > &  strings 
)

Definition at line 910 of file objectivec_helpers.cc.

◆ ClassName() [1/2]

string PROTOC_EXPORT google::protobuf::compiler::objectivec::ClassName ( const Descriptor descriptor)

Definition at line 460 of file objectivec_helpers.cc.

◆ ClassName() [2/2]

string PROTOC_EXPORT google::protobuf::compiler::objectivec::ClassName ( const Descriptor descriptor,
string out_suffix_added 
)

Definition at line 464 of file objectivec_helpers.cc.

◆ ClassNameWorker() [1/2]

string google::protobuf::compiler::objectivec::ClassNameWorker ( const Descriptor descriptor)

Definition at line 442 of file objectivec_helpers.cc.

◆ ClassNameWorker() [2/2]

string google::protobuf::compiler::objectivec::ClassNameWorker ( const EnumDescriptor descriptor)

Definition at line 451 of file objectivec_helpers.cc.

◆ DefaultValue()

string PROTOC_EXPORT google::protobuf::compiler::objectivec::DefaultValue ( const FieldDescriptor field)

Definition at line 794 of file objectivec_helpers.cc.

◆ EnumName()

string PROTOC_EXPORT google::protobuf::compiler::objectivec::EnumName ( const EnumDescriptor descriptor)

Definition at line 472 of file objectivec_helpers.cc.

◆ EnumValueName()

string PROTOC_EXPORT google::protobuf::compiler::objectivec::EnumValueName ( const EnumValueDescriptor descriptor)

Definition at line 486 of file objectivec_helpers.cc.

◆ EnumValueShortName()

string PROTOC_EXPORT google::protobuf::compiler::objectivec::EnumValueShortName ( const EnumValueDescriptor descriptor)

Definition at line 501 of file objectivec_helpers.cc.

◆ EscapeTrigraphs()

string PROTOC_EXPORT google::protobuf::compiler::objectivec::EscapeTrigraphs ( const string to_escape)

Definition at line 355 of file objectivec_helpers.cc.

◆ ExtensionMethodName()

string PROTOC_EXPORT google::protobuf::compiler::objectivec::ExtensionMethodName ( const FieldDescriptor descriptor)

Definition at line 532 of file objectivec_helpers.cc.

◆ FieldName()

string PROTOC_EXPORT google::protobuf::compiler::objectivec::FieldName ( const FieldDescriptor field)

Definition at line 538 of file objectivec_helpers.cc.

◆ FieldNameCapitalized()

string PROTOC_EXPORT google::protobuf::compiler::objectivec::FieldNameCapitalized ( const FieldDescriptor field)

Definition at line 553 of file objectivec_helpers.cc.

◆ FileClassName()

string PROTOC_EXPORT google::protobuf::compiler::objectivec::FileClassName ( const FileDescriptor file)

Definition at line 434 of file objectivec_helpers.cc.

◆ FileClassPrefix()

string PROTOC_EXPORT google::protobuf::compiler::objectivec::FileClassPrefix ( const FileDescriptor file)

Definition at line 398 of file objectivec_helpers.cc.

◆ FilePath()

string PROTOC_EXPORT google::protobuf::compiler::objectivec::FilePath ( const FileDescriptor file)

Definition at line 404 of file objectivec_helpers.cc.

◆ FilePathBasename()

string PROTOC_EXPORT google::protobuf::compiler::objectivec::FilePathBasename ( const FileDescriptor file)

Definition at line 421 of file objectivec_helpers.cc.

◆ GetCapitalizedType()

string PROTOC_EXPORT google::protobuf::compiler::objectivec::GetCapitalizedType ( const FieldDescriptor field)

Definition at line 619 of file objectivec_helpers.cc.

◆ GetObjectiveCType() [1/2]

ObjectiveCType google::protobuf::compiler::objectivec::GetObjectiveCType ( const FieldDescriptor field)
inline

Definition at line 199 of file objectivec_helpers.h.

◆ GetObjectiveCType() [2/2]

ObjectiveCType PROTOC_EXPORT google::protobuf::compiler::objectivec::GetObjectiveCType ( FieldDescriptor::Type  field_type)

Definition at line 665 of file objectivec_helpers.cc.

◆ GetOptionalDeprecatedAttribute()

template<class TDescriptor >
string google::protobuf::compiler::objectivec::GetOptionalDeprecatedAttribute ( const TDescriptor *  descriptor,
const FileDescriptor file = NULL,
bool  preSpace = true,
bool  postNewline = false 
)

Definition at line 158 of file objectivec_helpers.h.

◆ GPBGenericValueFieldName()

string PROTOC_EXPORT google::protobuf::compiler::objectivec::GPBGenericValueFieldName ( const FieldDescriptor field)

Definition at line 754 of file objectivec_helpers.cc.

◆ HandleExtremeFloatingPoint()

static string google::protobuf::compiler::objectivec::HandleExtremeFloatingPoint ( string  val,
bool  add_float_suffix 
)
static

Definition at line 736 of file objectivec_helpers.cc.

◆ HasFieldPresence()

bool google::protobuf::compiler::objectivec::HasFieldPresence ( const FileDescriptor file)
inline

Definition at line 121 of file objectivec_helpers.h.

◆ HasNonZeroDefaultValue()

bool PROTOC_EXPORT google::protobuf::compiler::objectivec::HasNonZeroDefaultValue ( const FieldDescriptor field)

Definition at line 865 of file objectivec_helpers.cc.

◆ HasPreservingUnknownEnumSemantics()

bool google::protobuf::compiler::objectivec::HasPreservingUnknownEnumSemantics ( const FileDescriptor file)
inline

Definition at line 125 of file objectivec_helpers.h.

◆ IsInitName()

bool PROTOC_EXPORT google::protobuf::compiler::objectivec::IsInitName ( const string name)

Definition at line 386 of file objectivec_helpers.cc.

◆ IsMapEntryMessage()

bool google::protobuf::compiler::objectivec::IsMapEntryMessage ( const Descriptor descriptor)
inline

Definition at line 129 of file objectivec_helpers.h.

◆ IsPrimitiveType()

bool PROTOC_EXPORT google::protobuf::compiler::objectivec::IsPrimitiveType ( const FieldDescriptor field)

Definition at line 714 of file objectivec_helpers.cc.

◆ IsProtobufLibraryBundledProtoFile()

bool PROTOC_EXPORT google::protobuf::compiler::objectivec::IsProtobufLibraryBundledProtoFile ( const FileDescriptor file)

Definition at line 994 of file objectivec_helpers.cc.

◆ IsReferenceType()

bool PROTOC_EXPORT google::protobuf::compiler::objectivec::IsReferenceType ( const FieldDescriptor field)

Definition at line 732 of file objectivec_helpers.cc.

◆ IsRetainedName()

bool PROTOC_EXPORT google::protobuf::compiler::objectivec::IsRetainedName ( const string name)

Definition at line 377 of file objectivec_helpers.cc.

◆ OneofEnumName()

string PROTOC_EXPORT google::protobuf::compiler::objectivec::OneofEnumName ( const OneofDescriptor descriptor)

Definition at line 563 of file objectivec_helpers.cc.

◆ OneofName()

string PROTOC_EXPORT google::protobuf::compiler::objectivec::OneofName ( const OneofDescriptor descriptor)

Definition at line 571 of file objectivec_helpers.cc.

◆ OneofNameCapitalized()

string PROTOC_EXPORT google::protobuf::compiler::objectivec::OneofNameCapitalized ( const OneofDescriptor descriptor)

Definition at line 578 of file objectivec_helpers.cc.

◆ ParseSimpleFile()

bool PROTOC_EXPORT google::protobuf::compiler::objectivec::ParseSimpleFile ( const string path,
LineConsumer line_consumer,
string out_error 
)

Definition at line 1525 of file objectivec_helpers.cc.

◆ ProtobufFrameworkImportSymbol()

string PROTOC_EXPORT google::protobuf::compiler::objectivec::ProtobufFrameworkImportSymbol ( const string framework_name)

Definition at line 986 of file objectivec_helpers.cc.

◆ ReadLine()

bool google::protobuf::compiler::objectivec::ReadLine ( StringPiece input,
StringPiece line 
)

Definition at line 1014 of file objectivec_helpers.cc.

◆ RemoveComment()

void google::protobuf::compiler::objectivec::RemoveComment ( StringPiece input)

Definition at line 1026 of file objectivec_helpers.cc.

◆ StripProto()

string PROTOC_EXPORT google::protobuf::compiler::objectivec::StripProto ( const string filename)

Definition at line 359 of file objectivec_helpers.cc.

◆ TrimWhitespace()

void PROTOC_EXPORT google::protobuf::compiler::objectivec::TrimWhitespace ( StringPiece input)

Definition at line 367 of file objectivec_helpers.cc.

◆ UnCamelCaseEnumShortName()

string PROTOC_EXPORT google::protobuf::compiler::objectivec::UnCamelCaseEnumShortName ( const string name)

Definition at line 520 of file objectivec_helpers.cc.

◆ UnCamelCaseFieldName()

string PROTOC_EXPORT google::protobuf::compiler::objectivec::UnCamelCaseFieldName ( const string name,
const FieldDescriptor field 
)

Definition at line 587 of file objectivec_helpers.cc.

◆ ValidateObjCClassPrefixes()

bool PROTOC_EXPORT google::protobuf::compiler::objectivec::ValidateObjCClassPrefixes ( const std::vector< const FileDescriptor * > &  files,
const Options generation_options,
string out_error 
)

Definition at line 1202 of file objectivec_helpers.cc.

Variable Documentation

◆ ProtobufLibraryFrameworkName

const PROTOC_EXPORT char *const google::protobuf::compiler::objectivec::ProtobufLibraryFrameworkName = "Protobuf"

Definition at line 984 of file objectivec_helpers.cc.



libaditof
Author(s):
autogenerated on Wed May 21 2025 02:07:09