Apollo  6.0
Open source self driving car software
Public Member Functions | Static Public Member Functions | List of all members
apollo::cyber::message::ProtobufFactory Class Reference

#include <protobuf_factory.h>

Collaboration diagram for apollo::cyber::message::ProtobufFactory:
Collaboration graph

Public Member Functions

 ~ProtobufFactory ()
 
bool RegisterMessage (const std::string &proto_desc_str)
 
bool RegisterPythonMessage (const std::string &proto_str)
 
bool RegisterMessage (const google::protobuf::Message &message)
 
bool RegisterMessage (const Descriptor &desc)
 
bool RegisterMessage (const FileDescriptorProto &file_desc_proto)
 
void GetDescriptorString (const std::string &type, std::string *desc_str)
 
google::protobuf::Message * GenerateMessageByType (const std::string &type) const
 
const Descriptor * FindMessageTypeByName (const std::string &type) const
 
const google::protobuf::ServiceDescriptor * FindServiceByName (const std::string &name) const
 
void GetPythonDesc (const std::string &type, std::string *desc_str)
 

Static Public Member Functions

static void GetDescriptorString (const google::protobuf::Message &message, std::string *desc_str)
 
static void GetDescriptorString (const Descriptor *desc, std::string *desc_str)
 

Constructor & Destructor Documentation

◆ ~ProtobufFactory()

apollo::cyber::message::ProtobufFactory::~ProtobufFactory ( )

Member Function Documentation

◆ FindMessageTypeByName()

const Descriptor* apollo::cyber::message::ProtobufFactory::FindMessageTypeByName ( const std::string &  type) const

◆ FindServiceByName()

const google::protobuf::ServiceDescriptor* apollo::cyber::message::ProtobufFactory::FindServiceByName ( const std::string &  name) const

◆ GenerateMessageByType()

google::protobuf::Message* apollo::cyber::message::ProtobufFactory::GenerateMessageByType ( const std::string &  type) const

◆ GetDescriptorString() [1/3]

static void apollo::cyber::message::ProtobufFactory::GetDescriptorString ( const google::protobuf::Message &  message,
std::string *  desc_str 
)
static

◆ GetDescriptorString() [2/3]

static void apollo::cyber::message::ProtobufFactory::GetDescriptorString ( const Descriptor *  desc,
std::string *  desc_str 
)
static

◆ GetDescriptorString() [3/3]

void apollo::cyber::message::ProtobufFactory::GetDescriptorString ( const std::string &  type,
std::string *  desc_str 
)

◆ GetPythonDesc()

void apollo::cyber::message::ProtobufFactory::GetPythonDesc ( const std::string &  type,
std::string *  desc_str 
)

◆ RegisterMessage() [1/4]

bool apollo::cyber::message::ProtobufFactory::RegisterMessage ( const std::string &  proto_desc_str)

◆ RegisterMessage() [2/4]

bool apollo::cyber::message::ProtobufFactory::RegisterMessage ( const google::protobuf::Message &  message)

◆ RegisterMessage() [3/4]

bool apollo::cyber::message::ProtobufFactory::RegisterMessage ( const Descriptor &  desc)

◆ RegisterMessage() [4/4]

bool apollo::cyber::message::ProtobufFactory::RegisterMessage ( const FileDescriptorProto &  file_desc_proto)

◆ RegisterPythonMessage()

bool apollo::cyber::message::ProtobufFactory::RegisterPythonMessage ( const std::string &  proto_str)

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