35 lines
570 B
C++
35 lines
570 B
C++
/**
|
|
* @file Writer.h
|
|
* @brief RPC writer (WIP)
|
|
* @date Oct 2, 2015
|
|
* @author R.W.A. van der Heijden
|
|
* @copyright 2015 Dual Inventive Technology Centre B.V.
|
|
*
|
|
* WIP
|
|
*/
|
|
#ifndef INCLUDE_DI_RPC_WRITER_H_
|
|
#define INCLUDE_DI_RPC_WRITER_H_
|
|
|
|
#include <string>
|
|
#include <memory>
|
|
#include <vector>
|
|
#include <type_traits>
|
|
|
|
#include <di/rpc/Msg.h>
|
|
|
|
namespace Di {
|
|
namespace Rpc {
|
|
|
|
class Writer {
|
|
public:
|
|
Writer();
|
|
int write(const std::shared_ptr<Msg> &msg);
|
|
private:
|
|
uint16_t __idCounter;
|
|
};
|
|
|
|
} // namespace Rpc
|
|
} // namespace Di
|
|
|
|
#endif // INCLUDE_DI_RPC_WRITER_H_
|