#include <zypp-core/zyppng/base/Base>
#include <zypp-core/zyppng/base/Signals>
#include <zypp-core/zyppng/base/Timer>
#include <zypp-core/zyppng/io/IODevice>
#include <zypp-core/zyppng/pipelines/expected.h>
#include <zypp-core/zyppng/rpc/rpc.h>
#include <deque>
#include <optional>
Go to the source code of this file.
◆ ZYPP_RPCBASE
Value:public: \
static const std::string &staticTypeName(); \
const std::string &typeName() const override; \
void serializeInto(std::string &
str)
const override; \
std::string serialize( ) const override; \
private: \
String related utilities and Regular expression matching.
bool deserialize(const std::string &str_r, DownloadMode &result_r)
Helper macro to be added into the class declaration for a zyppng::RpcBase subclass
Definition at line 251 of file messagestream.h.
◆ ZYPP_IMPL_RPCBASE
#define ZYPP_IMPL_RPCBASE |
( |
|
Class, |
|
|
|
ImplClass, |
|
|
|
implVar |
|
) |
| |
Value:const std::string &Class::staticTypeName() \
{ \
return rpc::messageTypeName<ImplClass>(); \
} \
\
const std::string &Class::typeName() const \
{ \
return staticTypeName(); \
} \
\
{ \
return implVar->ParseFromString( data ); \
} \
\
void Class::serializeInto(std::string &
str)
const \
{ \
implVar->SerializeToString( &
str ); \
} \
\
std::string Class::serialize( ) const \
{ \
return implVar->SerializeAsString( ); \
}
String related utilities and Regular expression matching.
bool deserialize(const std::string &str_r, DownloadMode &result_r)
Helper macro to be added into the class cc file for a zyppng::RpcBase subclass. Generates the default implementation for the virtual functions if the impl is a protobuf type
Definition at line 266 of file messagestream.h.