summaryrefslogtreecommitdiff
path: root/source/libs/asura-lib-utils/io/io_task.h
diff options
context:
space:
mode:
Diffstat (limited to 'source/libs/asura-lib-utils/io/io_task.h')
-rw-r--r--source/libs/asura-lib-utils/io/io_task.h39
1 files changed, 39 insertions, 0 deletions
diff --git a/source/libs/asura-lib-utils/io/io_task.h b/source/libs/asura-lib-utils/io/io_task.h
new file mode 100644
index 0000000..b91a88c
--- /dev/null
+++ b/source/libs/asura-lib-utils/io/io_task.h
@@ -0,0 +1,39 @@
+#ifndef __ASURA_IO_TASK_H__
+#define __ASURA_IO_TASK_H__
+
+#include <string>
+
+#include "../scripting/portable.hpp"
+#include "../threading/thread_task.h"
+
+#include "data_buffer.h"
+
+namespace AsuraEngine
+{
+ namespace IO
+ {
+
+ ///
+ /// ȡļ
+ ///
+ class IOTask
+ : public AEScripting::Portable<IOTask>
+ , public AEThreading::ThreadTask
+ {
+ public:
+
+ LUAX_DECL_FACTORY(IOTask);
+
+ bool Execute() override ;
+
+ private:
+
+ std::string mPath;
+ DataBuffer* mDst;
+
+ };
+
+ }
+}
+
+#endif \ No newline at end of file