Public Member Functions | Private Types | Private Member Functions | Private Attributes | Friends | List of all members
google::protobuf::compiler::cpp::ServiceGenerator Class Reference

#include <cpp_service.h>

Public Member Functions

void GenerateDeclarations (io::Printer *printer)
 
void GenerateImplementation (io::Printer *printer)
 
 ServiceGenerator (const ServiceDescriptor *descriptor, const std::map< std::string, std::string > &vars, const Options &options)
 
 ~ServiceGenerator ()
 

Private Types

enum  RequestOrResponse { REQUEST, RESPONSE }
 
enum  VirtualOrNon { VIRTUAL, NON_VIRTUAL }
 

Private Member Functions

void GenerateCallMethod (io::Printer *printer)
 
void GenerateGetPrototype (RequestOrResponse which, io::Printer *printer)
 
void GenerateInterface (io::Printer *printer)
 
void GenerateMethodSignatures (VirtualOrNon virtual_or_non, io::Printer *printer)
 
void GenerateNotImplementedMethods (io::Printer *printer)
 
void GenerateStubDefinition (io::Printer *printer)
 
void GenerateStubMethods (io::Printer *printer)
 
 GOOGLE_DISALLOW_EVIL_CONSTRUCTORS (ServiceGenerator)
 

Private Attributes

const ServiceDescriptordescriptor_
 
int index_in_metadata_
 
const Optionsoptions_
 
std::map< std::string, std::stringvars_
 

Friends

class FileGenerator
 

Detailed Description

Definition at line 56 of file cpp_service.h.

Member Enumeration Documentation

◆ RequestOrResponse

Enumerator
REQUEST 
RESPONSE 

Definition at line 77 of file cpp_service.h.

◆ VirtualOrNon

Enumerator
VIRTUAL 
NON_VIRTUAL 

Definition at line 78 of file cpp_service.h.

Constructor & Destructor Documentation

◆ ServiceGenerator()

google::protobuf::compiler::cpp::ServiceGenerator::ServiceGenerator ( const ServiceDescriptor descriptor,
const std::map< std::string, std::string > &  vars,
const Options options 
)
explicit

Definition at line 57 of file cpp_service.cc.

◆ ~ServiceGenerator()

google::protobuf::compiler::cpp::ServiceGenerator::~ServiceGenerator ( )

Definition at line 65 of file cpp_service.cc.

Member Function Documentation

◆ GenerateCallMethod()

void google::protobuf::compiler::cpp::ServiceGenerator::GenerateCallMethod ( io::Printer printer)
private

Definition at line 229 of file cpp_service.cc.

◆ GenerateDeclarations()

void google::protobuf::compiler::cpp::ServiceGenerator::GenerateDeclarations ( io::Printer printer)

Definition at line 67 of file cpp_service.cc.

◆ GenerateGetPrototype()

void google::protobuf::compiler::cpp::ServiceGenerator::GenerateGetPrototype ( RequestOrResponse  which,
io::Printer printer 
)
private

Definition at line 270 of file cpp_service.cc.

◆ GenerateImplementation()

void google::protobuf::compiler::cpp::ServiceGenerator::GenerateImplementation ( io::Printer printer)

Definition at line 170 of file cpp_service.cc.

◆ GenerateInterface()

void google::protobuf::compiler::cpp::ServiceGenerator::GenerateInterface ( io::Printer printer)
private

Definition at line 78 of file cpp_service.cc.

◆ GenerateMethodSignatures()

void google::protobuf::compiler::cpp::ServiceGenerator::GenerateMethodSignatures ( VirtualOrNon  virtual_or_non,
io::Printer printer 
)
private

Definition at line 153 of file cpp_service.cc.

◆ GenerateNotImplementedMethods()

void google::protobuf::compiler::cpp::ServiceGenerator::GenerateNotImplementedMethods ( io::Printer printer)
private

Definition at line 212 of file cpp_service.cc.

◆ GenerateStubDefinition()

void google::protobuf::compiler::cpp::ServiceGenerator::GenerateStubDefinition ( io::Printer printer)
private

Definition at line 122 of file cpp_service.cc.

◆ GenerateStubMethods()

void google::protobuf::compiler::cpp::ServiceGenerator::GenerateStubMethods ( io::Printer printer)
private

Definition at line 306 of file cpp_service.cc.

◆ GOOGLE_DISALLOW_EVIL_CONSTRUCTORS()

google::protobuf::compiler::cpp::ServiceGenerator::GOOGLE_DISALLOW_EVIL_CONSTRUCTORS ( ServiceGenerator  )
private

Friends And Related Function Documentation

◆ FileGenerator

friend class FileGenerator
friend

Definition at line 113 of file cpp_service.h.

Member Data Documentation

◆ descriptor_

const ServiceDescriptor* google::protobuf::compiler::cpp::ServiceGenerator::descriptor_
private

Definition at line 107 of file cpp_service.h.

◆ index_in_metadata_

int google::protobuf::compiler::cpp::ServiceGenerator::index_in_metadata_
private

Definition at line 111 of file cpp_service.h.

◆ options_

const Options& google::protobuf::compiler::cpp::ServiceGenerator::options_
private

Definition at line 109 of file cpp_service.h.

◆ vars_

std::map<std::string, std::string> google::protobuf::compiler::cpp::ServiceGenerator::vars_
private

Definition at line 108 of file cpp_service.h.


The documentation for this class was generated from the following files:


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