Public Member Functions | Static Public Member Functions | Static Private Member Functions | Private Attributes | List of all members
google::protobuf::compiler::MockCodeGenerator Class Reference

#include <mock_code_generator.h>

Inheritance diagram for google::protobuf::compiler::MockCodeGenerator:
Inheritance graph
[legend]

Public Member Functions

virtual bool Generate (const FileDescriptor *file, const std::string &parameter, GeneratorContext *context, std::string *error) const
 
 MockCodeGenerator (const std::string &name)
 
virtual ~MockCodeGenerator ()
 
- 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 ()
 

Static Public Member Functions

static void CheckGeneratedAnnotations (const std::string &name, const std::string &file, const std::string &output_directory)
 
static void ExpectGenerated (const std::string &name, const std::string &parameter, const std::string &insertions, const std::string &file, const std::string &first_message_name, const std::string &parsed_file_list, const std::string &output_directory)
 
static std::string GetOutputFileName (const std::string &generator_name, const FileDescriptor *file)
 
static std::string GetOutputFileName (const std::string &generator_name, const std::string &file)
 

Static Private Member Functions

static std::string GetOutputFileContent (const std::string &generator_name, const std::string &parameter, const FileDescriptor *file, GeneratorContext *context)
 
static std::string GetOutputFileContent (const std::string &generator_name, const std::string &parameter, const std::string &file, const std::string &parsed_file_list, const std::string &first_message_name)
 

Private Attributes

std::string name_
 

Detailed Description

Definition at line 75 of file mock_code_generator.h.

Constructor & Destructor Documentation

◆ MockCodeGenerator()

google::protobuf::compiler::MockCodeGenerator::MockCodeGenerator ( const std::string name)

Definition at line 86 of file mock_code_generator.cc.

◆ ~MockCodeGenerator()

google::protobuf::compiler::MockCodeGenerator::~MockCodeGenerator ( )
virtual

Definition at line 88 of file mock_code_generator.cc.

Member Function Documentation

◆ CheckGeneratedAnnotations()

void google::protobuf::compiler::MockCodeGenerator::CheckGeneratedAnnotations ( const std::string name,
const std::string file,
const std::string output_directory 
)
static

Definition at line 151 of file mock_code_generator.cc.

◆ ExpectGenerated()

void google::protobuf::compiler::MockCodeGenerator::ExpectGenerated ( const std::string name,
const std::string parameter,
const std::string insertions,
const std::string file,
const std::string first_message_name,
const std::string parsed_file_list,
const std::string output_directory 
)
static

Definition at line 90 of file mock_code_generator.cc.

◆ Generate()

bool google::protobuf::compiler::MockCodeGenerator::Generate ( const FileDescriptor file,
const std::string parameter,
GeneratorContext context,
std::string error 
) const
virtual

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

Definition at line 173 of file mock_code_generator.cc.

◆ GetOutputFileContent() [1/2]

std::string google::protobuf::compiler::MockCodeGenerator::GetOutputFileContent ( const std::string generator_name,
const std::string parameter,
const FileDescriptor file,
GeneratorContext context 
)
staticprivate

Definition at line 307 of file mock_code_generator.cc.

◆ GetOutputFileContent() [2/2]

std::string google::protobuf::compiler::MockCodeGenerator::GetOutputFileContent ( const std::string generator_name,
const std::string parameter,
const std::string file,
const std::string parsed_file_list,
const std::string first_message_name 
)
staticprivate

Definition at line 318 of file mock_code_generator.cc.

◆ GetOutputFileName() [1/2]

std::string google::protobuf::compiler::MockCodeGenerator::GetOutputFileName ( const std::string generator_name,
const FileDescriptor file 
)
static

Definition at line 297 of file mock_code_generator.cc.

◆ GetOutputFileName() [2/2]

std::string google::protobuf::compiler::MockCodeGenerator::GetOutputFileName ( const std::string generator_name,
const std::string file 
)
static

Definition at line 302 of file mock_code_generator.cc.

Member Data Documentation

◆ name_

std::string google::protobuf::compiler::MockCodeGenerator::name_
private

Definition at line 114 of file mock_code_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