From c0e9ef9b2756f8d80048f07f83a916230b6fbeb2 Mon Sep 17 00:00:00 2001
From: caiyuzheng <290198252@qq.com>
Date: Wed, 10 Jun 2020 21:23:42 +0800
Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=91=BD=E4=BB=A4=E6=A8=A1?=
=?UTF-8?q?=E5=BC=8F?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.idea/workspace.xml | 6 +++---
general/CMakeLists.txt | 2 +-
general/src/pattern/cmd.hpp | 7 ++++---
3 files changed, 8 insertions(+), 7 deletions(-)
diff --git a/.idea/workspace.xml b/.idea/workspace.xml
index 89a1409..1e40e62 100644
--- a/.idea/workspace.xml
+++ b/.idea/workspace.xml
@@ -30,9 +30,9 @@
-
-
+
+
@@ -159,7 +159,7 @@
-
+
diff --git a/general/CMakeLists.txt b/general/CMakeLists.txt
index 0011556..957292b 100644
--- a/general/CMakeLists.txt
+++ b/general/CMakeLists.txt
@@ -34,7 +34,7 @@ aux_source_directory(src DIRSRCS)
aux_source_directory(src/pattern PaternSrc)
-add_library(General OBJECT ${DIRSRCS} ${PaternSrc} src/pattern/signleton.hpp src/pattern/Observer.hpp src/pattern/stratergy.hpp "src/pattern/adapter.hpp" src/encrypt/base64.cpp src/encrypt/base64.h src/encrypt/aes.cpp src/encrypt/aes.h src/encrypt/rsa.cpp
+add_library(General OBJECT ${DIRSRCS} ${PaternSrc} src/pattern/signleton.hpp src/pattern/cmd.hpp src/pattern/Observer.hpp src/pattern/stratergy.hpp "src/pattern/adapter.hpp" src/encrypt/base64.cpp src/encrypt/base64.h src/encrypt/aes.cpp src/encrypt/aes.h src/encrypt/rsa.cpp
src/math/BigInt.hpp src/net/TcpClient.cpp src/net/TcpClient.h src/net/PackageReceiver.cpp src/net/PackageReceiver.h src/function/Timer.cpp src/function/btree.cpp src/function/btree.h src/algorithm/sorter.hpp)
set(COPYITEM inc)
diff --git a/general/src/pattern/cmd.hpp b/general/src/pattern/cmd.hpp
index f9eadde..b013918 100644
--- a/general/src/pattern/cmd.hpp
+++ b/general/src/pattern/cmd.hpp
@@ -1,3 +1,4 @@
+#ifndef GENERAL_CMD_H
#define GENERAL_CMD_H
#include
template
@@ -7,11 +8,11 @@ public:
return 0;
}
};
+
template
class CommandBroker{
public:
- void AddCommand(Command order){
-
+ void AddCommand(Command order){
}
void DoCommand(){
for (Order order : orderList) {
@@ -20,6 +21,6 @@ public:
orderList.clear();
}
private:
- std::vector mCommands;
+ std::vector> mCommands;
};
#endif
\ No newline at end of file