22 lines
383 B
C++
22 lines
383 B
C++
#pragma once
|
|
|
|
#include <memory>
|
|
#include <sp/common/DataBuffer.h>
|
|
|
|
namespace sp {
|
|
namespace protocol {
|
|
|
|
class Command;
|
|
|
|
using CommandPtr = std::shared_ptr<Command>;
|
|
|
|
namespace CommandSerializer {
|
|
|
|
DataBuffer Serialize(const Command& a_Command);
|
|
|
|
std::shared_ptr<Command> Deserialize(DataBuffer& a_Data);
|
|
|
|
} // namespace CommandSerializer
|
|
} // namespace protocol
|
|
} // namespace sp
|