|
resonance 1.0.1
|
Asynchronous reader of one pre-fab persona file. More...
#include <metfreqloader.h>


Public Member Functions | |
| MetFreqLoader (const HxStr &path, std::vector< MetPersonaData * > *pIdentities) | |
| Record the file to read and the list to fill. | |
| virtual | ~MetFreqLoader () |
| Release the path. | |
| virtual void | Done (int nHandle, int nFile, void *pBuffer, int nLength, int nStatus) |
| Parse the completed read into personas and release the buffer. | |
| bool | PollAssets () |
| Report whether the FreQ maker assets are resident. | |
| void | Start () |
| Wait for the FreQ maker assets and queue the read of the persona file. | |
| int | IsLoaded () |
| Pump the asynchronous layer and report whether Done() has run. | |
| Public Member Functions inherited from AsyncCallback | |
| virtual | ~AsyncCallback () |
| Release the receiver. | |
Asynchronous reader of one pre-fab persona file.
Its RTTI descriptor is at 0x008f2a90. It derives publicly from AsyncCallback at offset 0. The vtable is at 0x007f7d78. The two allocations in MetFreqMakerAssetManager's constructor fix the object at 0x1c bytes. The embedded source file name MetFreqLoader.cpp is billed with the buffer release in Done().
Start() queues a read of the file, Done() parses every persona in the completed buffer into the list the loader was given, and IsLoaded() pumps the asynchronous layer and reports completion.
The translation unit spans 0x002a0e30 to 0x002a3820. Besides the members below, it has template library emissions at 0x002a1090, 0x002a1268, 0x002a1638 through 0x002a2a48, 0x002a2fc0 through 0x002a3190, 0x002a3638, 0x002a3700, and 0x002a37a0.
| MetFreqLoader::MetFreqLoader | ( | const HxStr & | path, |
| std::vector< MetPersonaData * > * | pIdentities ) |
Record the file to read and the list to fill.
| path | The persona file. |
| pIdentities | The list Done() appends the personas to. |
|
virtual |
Release the path.
Vtable slot 1.
|
virtual |
Parse the completed read into personas and release the buffer.
Vtable slot 2. A negative status changes nothing. Otherwise the buffer is parsed, released under the tag MetFreqLoader.cpp, the request handle is cleared, and the loader is marked loaded.
| nHandle | The request identifier. |
| nFile | The file the read was issued against. |
| pBuffer | The buffer the read filled. |
| nLength | The bytes read. |
| nStatus | The completion status. |
Implements AsyncCallback.
| bool MetFreqLoader::PollAssets | ( | ) |
Report whether the FreQ maker assets are resident.
The body does not read this object. It runs MetFreqMakerAssetManager::PollLoad(). The title is inferred.
| void MetFreqLoader::Start | ( | ) |
Wait for the FreQ maker assets and queue the read of the persona file.
The read is issued with no zone selected, and the previously selected zone is restored after. The title is inferred.
| int MetFreqLoader::IsLoaded | ( | ) |
Pump the asynchronous layer and report whether Done() has run.
The title is inferred.