Classes | Enumerations | Functions
grpc_generator Namespace Reference

Classes

struct  CommentHolder
 
struct  File
 
struct  Method
 
struct  Printer
 
struct  Service
 

Enumerations

enum  CommentType { COMMENTTYPE_LEADING, COMMENTTYPE_TRAILING, COMMENTTYPE_LEADING_DETACHED }
 
enum  MethodType { METHODTYPE_NO_STREAMING, METHODTYPE_CLIENT_STREAMING, METHODTYPE_SERVER_STREAMING, METHODTYPE_BIDI_STREAMING }
 

Functions

std::string CapitalizeFirstLetter (std::string s)
 
std::string FileNameInUpperCamel (const grpc::protobuf::FileDescriptor *file)
 
std::string FileNameInUpperCamel (const grpc::protobuf::FileDescriptor *file, bool include_package_path)
 
std::string GenerateCommentsWithPrefix (const std::vector< std::string > &in, const std::string &prefix)
 
template<typename DescriptorType >
void GetComment (const DescriptorType *desc, CommentType type, std::vector< std::string > *out)
 
template<>
void GetComment (const grpc::protobuf::FileDescriptor *desc, CommentType type, std::vector< std::string > *out)
 
MethodType GetMethodType (const grpc::protobuf::MethodDescriptor *method)
 
template<typename DescriptorType >
std::string GetPrefixedComments (const DescriptorType *desc, bool leading, const std::string &prefix)
 
std::string LowercaseFirstLetter (std::string s)
 
std::string LowerUnderscoreToUpperCamel (std::string str)
 
void Split (const std::string &s, char, std::vector< std::string > *append_to)
 
std::string StringReplace (std::string str, const std::string &from, const std::string &to)
 
std::string StringReplace (std::string str, const std::string &from, const std::string &to, bool replace_all)
 
bool StripPrefix (std::string *name, const std::string &prefix)
 
std::string StripProto (std::string filename)
 
bool StripSuffix (std::string *filename, const std::string &suffix)
 
std::vector< std::string > tokenize (const std::string &input, const std::string &delimiters)
 

Enumeration Type Documentation

◆ CommentType

Enumerator
COMMENTTYPE_LEADING 
COMMENTTYPE_TRAILING 
COMMENTTYPE_LEADING_DETACHED 

Definition at line 178 of file generator_helpers.h.

◆ MethodType

Enumerator
METHODTYPE_NO_STREAMING 
METHODTYPE_CLIENT_STREAMING 
METHODTYPE_SERVER_STREAMING 
METHODTYPE_BIDI_STREAMING 

Definition at line 145 of file generator_helpers.h.

Function Documentation

◆ CapitalizeFirstLetter()

std::string grpc_generator::CapitalizeFirstLetter ( std::string  s)
inline

Definition at line 102 of file generator_helpers.h.

◆ FileNameInUpperCamel() [1/2]

std::string grpc_generator::FileNameInUpperCamel ( const grpc::protobuf::FileDescriptor file)
inline

Definition at line 140 of file generator_helpers.h.

◆ FileNameInUpperCamel() [2/2]

std::string grpc_generator::FileNameInUpperCamel ( const grpc::protobuf::FileDescriptor file,
bool  include_package_path 
)
inline

Definition at line 127 of file generator_helpers.h.

◆ GenerateCommentsWithPrefix()

std::string grpc_generator::GenerateCommentsWithPrefix ( const std::vector< std::string > &  in,
const std::string &  prefix 
)
inline

Definition at line 240 of file generator_helpers.h.

◆ GetComment() [1/2]

template<typename DescriptorType >
void grpc_generator::GetComment ( const DescriptorType *  desc,
CommentType  type,
std::vector< std::string > *  out 
)
inline

Definition at line 186 of file generator_helpers.h.

◆ GetComment() [2/2]

template<>
void grpc_generator::GetComment ( const grpc::protobuf::FileDescriptor desc,
CommentType  type,
std::vector< std::string > *  out 
)
inline

Definition at line 213 of file generator_helpers.h.

◆ GetMethodType()

MethodType grpc_generator::GetMethodType ( const grpc::protobuf::MethodDescriptor method)
inline

Definition at line 152 of file generator_helpers.h.

◆ GetPrefixedComments()

template<typename DescriptorType >
std::string grpc_generator::GetPrefixedComments ( const DescriptorType *  desc,
bool  leading,
const std::string &  prefix 
)
inline

Definition at line 257 of file generator_helpers.h.

◆ LowercaseFirstLetter()

std::string grpc_generator::LowercaseFirstLetter ( std::string  s)
inline

Definition at line 110 of file generator_helpers.h.

◆ LowerUnderscoreToUpperCamel()

std::string grpc_generator::LowerUnderscoreToUpperCamel ( std::string  str)
inline

Definition at line 118 of file generator_helpers.h.

◆ Split()

void grpc_generator::Split ( const std::string &  s,
char  ,
std::vector< std::string > *  append_to 
)
inline

Definition at line 169 of file generator_helpers.h.

◆ StringReplace() [1/2]

std::string grpc_generator::StringReplace ( std::string  str,
const std::string &  from,
const std::string &  to 
)
inline

Definition at line 77 of file generator_helpers.h.

◆ StringReplace() [2/2]

std::string grpc_generator::StringReplace ( std::string  str,
const std::string &  from,
const std::string &  to,
bool  replace_all 
)
inline

Definition at line 61 of file generator_helpers.h.

◆ StripPrefix()

bool grpc_generator::StripPrefix ( std::string *  name,
const std::string &  prefix 
)
inline

Definition at line 44 of file generator_helpers.h.

◆ StripProto()

std::string grpc_generator::StripProto ( std::string  filename)
inline

Definition at line 54 of file generator_helpers.h.

◆ StripSuffix()

bool grpc_generator::StripSuffix ( std::string *  filename,
const std::string &  suffix 
)
inline

Definition at line 32 of file generator_helpers.h.

◆ tokenize()

std::vector<std::string> grpc_generator::tokenize ( const std::string &  input,
const std::string &  delimiters 
)
inline

Definition at line 82 of file generator_helpers.h.



grpc
Author(s):
autogenerated on Fri May 16 2025 03:03:40