summaryrefslogtreecommitdiff
path: root/source/modules/asura-utils/io/io_task.h
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2019-08-02 20:51:00 +0800
committerchai <chaifix@163.com>2019-08-02 20:51:00 +0800
commitbad78945ceba425f6a80e3b8dca2414d592970eb (patch)
tree8bf7540766349c534bf9e5746b24fd7507ba034e /source/modules/asura-utils/io/io_task.h
parent99b90496765df21c5f377f42b9ed073ccb34c1fd (diff)
*修改文件名格式
Diffstat (limited to 'source/modules/asura-utils/io/io_task.h')
-rw-r--r--source/modules/asura-utils/io/io_task.h56
1 files changed, 0 insertions, 56 deletions
diff --git a/source/modules/asura-utils/io/io_task.h b/source/modules/asura-utils/io/io_task.h
deleted file mode 100644
index 8026a24..0000000
--- a/source/modules/asura-utils/io/io_task.h
+++ /dev/null
@@ -1,56 +0,0 @@
-#ifndef __ASURA_IO_TASK_H__
-#define __ASURA_IO_TASK_H__
-
-#include <string>
-
-#include "../scripting/portable.hpp"
-#include "../threading/task.h"
-
-#include "data_buffer.h"
-
-namespace AsuraEngine
-{
- namespace IO
- {
-
- enum IOTaskType
- {
- IOTASK_TYPE_READ,
- IOTASK_TYPE_WRITE,
- IOTASK_TYPE_APPEND,
- };
-
- ///
- /// ȡļ
- ///
- class IOTask ASURA_FINAL
- : public AEScripting::Portable<IOTask, AEThreading::Task>
- {
- public:
-
- LUAX_DECL_FACTORY(IOTask);
-
- IOTask(const std::string& path, DataBuffer* buffer, IOTaskType type);
- ~IOTask();
-
- bool Execute() override ;
- void Invoke(lua_State* invokeThreaad) override;
-
- private:
-
- LUAX_DECL_ENUM(IOTaskType);
-
- LUAX_DECL_METHOD(_New);
-
- std::string m_Path;
- IOTaskType m_Type;
-
- DataBuffer* m_Buffer;
- Luax::LuaxMemberRef m_BufferRef;
-
- };
-
- }
-}
-
-#endif \ No newline at end of file