summaryrefslogtreecommitdiff
path: root/source/libs/asura-lib-utils/io/io_task.h
blob: b91a88c0232db138146fd7d71144bebbb021b0b6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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