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

#include <cpp_generator.h>

Inheritance diagram for google::protobuf::compiler::cpp::CppGenerator:
Inheritance graph
[legend]

Public Types

enum  Runtime { Runtime::kGoogle3, Runtime::kOpensource, Runtime::kOpensourceGoogle3 }
 

Public Member Functions

 CppGenerator ()
 
bool Generate (const FileDescriptor *file, const std::string &parameter, GeneratorContext *generator_context, std::string *error) const
 
void set_opensource_runtime (bool opensource)
 
void set_runtime_include_base (const std::string &base)
 
 ~CppGenerator ()
 
- Public Member Functions inherited from google::protobuf::compiler::CodeGenerator
 CodeGenerator ()
 
virtual bool GenerateAll (const std::vector< const FileDescriptor * > &files, const std::string &parameter, GeneratorContext *generator_context, std::string *error) const
 
virtual bool HasGenerateAll () const
 
virtual ~CodeGenerator ()
 

Private Member Functions

 GOOGLE_DISALLOW_EVIL_CONSTRUCTORS (CppGenerator)
 

Private Attributes

bool opensource_runtime_ = true
 
std::string runtime_include_base_
 

Detailed Description

Definition at line 54 of file cpp_generator.h.

Member Enumeration Documentation

◆ Runtime

Enumerator
kGoogle3 
kOpensource 
kOpensourceGoogle3 

Definition at line 59 of file cpp_generator.h.

Constructor & Destructor Documentation

◆ CppGenerator()

google::protobuf::compiler::cpp::CppGenerator::CppGenerator ( )

Definition at line 55 of file cpp_generator.cc.

◆ ~CppGenerator()

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

Definition at line 56 of file cpp_generator.cc.

Member Function Documentation

◆ Generate()

bool google::protobuf::compiler::cpp::CppGenerator::Generate ( const FileDescriptor file,
const std::string parameter,
GeneratorContext generator_context,
std::string error 
) const
virtual

Implements google::protobuf::compiler::CodeGenerator.

Definition at line 58 of file cpp_generator.cc.

◆ GOOGLE_DISALLOW_EVIL_CONSTRUCTORS()

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

◆ set_opensource_runtime()

void google::protobuf::compiler::cpp::CppGenerator::set_opensource_runtime ( bool  opensource)
inline

Definition at line 69 of file cpp_generator.h.

◆ set_runtime_include_base()

void google::protobuf::compiler::cpp::CppGenerator::set_runtime_include_base ( const std::string base)
inline

Definition at line 78 of file cpp_generator.h.

Member Data Documentation

◆ opensource_runtime_

bool google::protobuf::compiler::cpp::CppGenerator::opensource_runtime_ = true
private

Definition at line 87 of file cpp_generator.h.

◆ runtime_include_base_

std::string google::protobuf::compiler::cpp::CppGenerator::runtime_include_base_
private

Definition at line 88 of file cpp_generator.h.


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


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