blob: aa5b38ed2faa937b8909f9413b25d00ef177bac7 (
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
40
41
42
43
44
45
46
47
|
#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 ASURA_FINAL
: public AEScripting::Portable<IOTask>
, public AEThreading::ThreadTask
{
public:
LUAX_DECL_FACTORY(IOTask);
IOTask(const std::string& path, DataBuffer* buffer);
~IOTask();
bool Execute() override ;
void Invoke() override;
private:
std::string mPath;
DataBuffer* mDst;
Luax::LuaxMemberRef mDstRef;
LUAX_DECL_METHOD(_New);
};
}
}
#endif
|