OdbDesignLib
OdbDesign ODB++ Parsing Library
 
Loading...
Searching...
No Matches
Odb::Lib::IProtoBuffable< TPbMessage > Class Template Referenceabstract
Inheritance diagram for Odb::Lib::IProtoBuffable< TPbMessage >:

Public Member Functions

virtual std::unique_ptr< TPbMessage > to_protobuf () const =0
 
virtual void from_protobuf (const TPbMessage &message)=0
 
bool to_pbstring (std::string &pb_string) const
 
bool from_pbstring (const std::string &pb_string)
 
bool to_stream (std::ostream &outputStream) const
 
bool from_stream (std::istream &inputStream)
 
std::string to_json () const override
 
void from_json (const std::string &json) override
 

Detailed Description

template<typename TPbMessage>
class Odb::Lib::IProtoBuffable< TPbMessage >

Definition at line 15 of file IProtoBuffable.h.

Member Function Documentation

◆ from_json()

template<typename TPbMessage >
void Odb::Lib::IProtoBuffable< TPbMessage >::from_json ( const std::string &  json)
inlineoverride

Definition at line 90 of file IProtoBuffable.h.

◆ from_pbstring()

template<typename TPbMessage >
bool Odb::Lib::IProtoBuffable< TPbMessage >::from_pbstring ( const std::string &  pb_string)
inline

Definition at line 52 of file IProtoBuffable.h.

◆ from_stream()

template<typename TPbMessage >
bool Odb::Lib::IProtoBuffable< TPbMessage >::from_stream ( std::istream &  inputStream)
inline

Definition at line 69 of file IProtoBuffable.h.

◆ to_json()

template<typename TPbMessage >
std::string Odb::Lib::IProtoBuffable< TPbMessage >::to_json ( ) const
override

Definition at line 78 of file IProtoBuffable.h.

◆ to_pbstring()

template<typename TPbMessage >
bool Odb::Lib::IProtoBuffable< TPbMessage >::to_pbstring ( std::string &  pb_string) const
inline

Definition at line 44 of file IProtoBuffable.h.

◆ to_stream()

template<typename TPbMessage >
bool Odb::Lib::IProtoBuffable< TPbMessage >::to_stream ( std::ostream &  outputStream) const
inline

Definition at line 61 of file IProtoBuffable.h.


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