less serialize code
This commit is contained in:
@@ -7,7 +7,6 @@
|
||||
|
||||
#include <memory>
|
||||
#include <sp/common/GenericHandler.h>
|
||||
#include <sp/io/SerializableMessage.h>
|
||||
#include <sp/protocol/ConcreteMessage.h>
|
||||
#include <sp/protocol/MessageDispatcher.h>
|
||||
#include <sp/protocol/MessageFactory.h>
|
||||
@@ -15,6 +14,8 @@
|
||||
#include <td/common/NonCopyable.h>
|
||||
#include <td/protocol/command/CommandData.h>
|
||||
|
||||
#include <sp/io/SerializableMessage.h>
|
||||
|
||||
namespace td {
|
||||
namespace protocol {
|
||||
|
||||
@@ -58,9 +59,9 @@ using CommandDispatcher = sp::MessageDispatcher<CommandBase>;
|
||||
|
||||
using CommandFactory = sp::MessageFactory<CommandBase, AllCommands>;
|
||||
|
||||
using LockStep = std::vector<std::shared_ptr<CommandBase>>;
|
||||
using CommandPtr = sp::SerializableMessage<CommandFactory>;
|
||||
|
||||
using CommandPtr = std::unique_ptr<sp::SerializableMessage<CommandFactory>>;
|
||||
using LockStep = std::vector<CommandPtr>;
|
||||
|
||||
} // namespace protocol
|
||||
} // namespace td
|
||||
|
||||
Reference in New Issue
Block a user