remove RpcSerializer
This commit is contained in:
@@ -30,8 +30,7 @@ project/
|
|||||||
│ │ │ └── ProxyMarshaller.h
|
│ │ │ └── ProxyMarshaller.h
|
||||||
│ │ └── rpc
|
│ │ └── rpc
|
||||||
│ │ ├── rpc_export.h
|
│ │ ├── rpc_export.h
|
||||||
│ │ ├── RpcInvoker.h
|
│ │ └── RpcInvoker.h
|
||||||
│ │ └── RpcSerializer.h
|
|
||||||
│ ├── MyService.cpp
|
│ ├── MyService.cpp
|
||||||
│ ├── MyService.h
|
│ ├── MyService.h
|
||||||
│ └── server.cpp
|
│ └── server.cpp
|
||||||
|
|||||||
@@ -1,21 +0,0 @@
|
|||||||
#pragma once
|
|
||||||
|
|
||||||
#include <sstream>
|
|
||||||
#include <string>
|
|
||||||
|
|
||||||
class RpcSerializer {
|
|
||||||
public:
|
|
||||||
template<typename T>
|
|
||||||
static void write(std::ostringstream& out, const T& v) {
|
|
||||||
out << v << ' ';
|
|
||||||
}
|
|
||||||
|
|
||||||
template<typename T>
|
|
||||||
static T read(std::istringstream& in) {
|
|
||||||
T v;
|
|
||||||
in >> v;
|
|
||||||
return v;
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
Reference in New Issue
Block a user