diff options
Diffstat (limited to 'source/modules/asura-utils/io')
-rw-r--r-- | source/modules/asura-utils/io/decoded_data.cpp | 21 | ||||
-rw-r--r-- | source/modules/asura-utils/io/decoded_data.h | 16 | ||||
-rw-r--r-- | source/modules/asura-utils/io/reloadable.h | 18 |
3 files changed, 18 insertions, 37 deletions
diff --git a/source/modules/asura-utils/io/decoded_data.cpp b/source/modules/asura-utils/io/decoded_data.cpp deleted file mode 100644 index 358a7a5..0000000 --- a/source/modules/asura-utils/io/decoded_data.cpp +++ /dev/null @@ -1,21 +0,0 @@ -#include "../exceptions/exception.h" - -#include "decoded_data.h" - -namespace AsuraEngine -{ - namespace IO - { - - DecodedData::DecodedData(const DataBuffer& databuffer) - { - Decode(databuffer); - } - - DecodedData::~DecodedData() - { - - } - - } -} diff --git a/source/modules/asura-utils/io/decoded_data.h b/source/modules/asura-utils/io/decoded_data.h index e201e91..724dbac 100644 --- a/source/modules/asura-utils/io/decoded_data.h +++ b/source/modules/asura-utils/io/decoded_data.h @@ -2,6 +2,7 @@ #define __ASURA_ENGINE_DATA_H__ #include <cstdlib> +#include <asura-utils/threading/thread.h> #include "../scripting/portable.hpp" @@ -13,8 +14,8 @@ namespace AsuraEngine { /// - /// һ̹߳data̳дࡣͼƬݡƵݵȣһ߳нԭļڲݸʽ - /// ȡ + /// һ̹߳data̳дࡣͼƬݡƵݵȣһ߳нԭ + /// ļڲݸʽصȡ /// ASURA_ABSTRACT class DecodedData { @@ -23,16 +24,13 @@ namespace AsuraEngine /// /// ڴйdataԷһ߳棬Դϵͳء /// - DecodedData(const DataBuffer& databuffer); - - virtual ~DecodedData(); - - protected: + DecodedData() {}; + virtual ~DecodedData() {}; /// - /// ڴеݡ + /// ڴеݲijָʽ档 /// - virtual void Decode(const DataBuffer& buffer) = 0; + virtual void Decode(DataBuffer& buffer) = 0; }; diff --git a/source/modules/asura-utils/io/reloadable.h b/source/modules/asura-utils/io/reloadable.h index 22a721c..c3b89ac 100644 --- a/source/modules/asura-utils/io/reloadable.h +++ b/source/modules/asura-utils/io/reloadable.h @@ -1,5 +1,5 @@ -#ifndef __ASURA_ENGINE_RELOADABLE_H__ -#define __ASURA_ENGINE_RELOADABLE_H__ +#ifndef __ASURA_ENGINE_RENEWABLE_H__ +#define __ASURA_ENGINE_RENEWABLE_H__ #include "../scripting/portable.hpp" @@ -9,15 +9,19 @@ namespace AsuraEngine { /// - /// ¹ݽṹͼƬƵ֣ⲿݿֱӹڱ༭¹ڲıhandleԴ + /// ¹ݽṹͼƬƵ֣ӽݿֱӹڱ༭ + /// ¹handleֵı䲻߱ƻԣڲıhandleԴ /// - ASURA_ABSTRACT class Reloadable + ASURA_ABSTRACT class Renewable { public: - Reloadable(); - virtual ~Reloadable(); + Renewable(); + virtual ~ Renewable(); - // ̳ReloadableҪṩһload + /// + /// ̳RenewableҪṩһRefresh + /// + virtual bool Refresh(AEIO::DecodedData* decode_data) = 0; }; |