wavelength 1.0.0
Loading...
Searching...
No Matches
mcgetremixinfotask.h
Go to the documentation of this file.
1#pragma once
2
3#include <memory>
4
9
16public:
24
32
41 void Set(int nPort, const char *pszName);
42
44 char *GetBuffer() const {
45 return mBuffer.get();
46 }
47
49 int GetSize() const {
50 return mSize;
51 }
52
53private:
54 std::unique_ptr<char[]> mBuffer;
55 int mSize;
56 // The steps belong to the SerialTasks list.
57 MCOpenTask *mOpen;
58 MCReadTask *mRead;
59 MCCloseTask *mClose;
60};
Task that closes the file MemcardTask::sFd identifies.
Definition mcclosetask.h:10
int GetSize() const
Definition mcgetremixinfotask.h:49
~MCGetRemixInfoTask() override
Release the buffer and the steps.
char * GetBuffer() const
Definition mcgetremixinfotask.h:44
MCGetRemixInfoTask()
Construct the steps and the buffer.
void Set(int nPort, const char *pszName)
Prepare the work.
Task that opens a file and records its descriptor in MemcardTask::sFd.
Definition mcopentask.h:11
Task that reads bytes from the file MemcardTask::sFd identifies.
Definition mcreadtask.h:10
Memory card work made of MemcardTask steps that run one after another.
Definition memcardserialtask.h:13