wavelength 1.0.0
Loading...
Searching...
No Matches
mcsavefiletask.h
Go to the documentation of this file.
1#pragma once
2
7
14public:
21 ~MCSaveFileTask() override = default;
22
30
41 void Set(int nPort, const char *pszName, const void *pData, int nSize);
42
43private:
44 // The steps belong to the SerialTasks list.
45 MCOpenTask *mOpen;
46 MCWriteTask *mWrite;
47 MCCloseTask *mClose;
48};
Task that closes the file MemcardTask::sFd identifies.
Definition mcclosetask.h:10
Task that opens a file and records its descriptor in MemcardTask::sFd.
Definition mcopentask.h:11
MCSaveFileTask()
Construct the steps.
void Set(int nPort, const char *pszName, const void *pData, int nSize)
Prepare the work.
~MCSaveFileTask() override=default
Destroy the object.
Task that writes bytes to the file MemcardTask::sFd identifies.
Definition mcwritetask.h:10
Memory card work made of MemcardTask steps that run one after another.
Definition memcardserialtask.h:13