![]() |
MapLink Pro 11.1.1.0.
Envitia MapLink Pro: The Ultimate Mapping Application Toolkit
|
Simple file loader class.
This simple loader operates only synchronously and only on local files.
For this loader, a file is always read in one chunk not block by block, so no progress callbacks will happen until the load process is finished.
The synchronous flag has no effect, this loader is always synchronous.
Only local files can be read, this loader will not read internet files.
This loader has no worker thread - callbacks always come from the main thread.
Public Member Functions | |
TSLFileLoaderBlocking () | |
void * | operator new (size_t size) TSL_NO_THROW |
void * | operator new (size_t size, char *filename, int line) |
![]() | |
void | cancelAllLoads () |
void | destroy () |
bool | fileExists (const char *filename) |
bool | fileModificationTime (TSLPathList *pathList, const char *filename, TSLTimeType &lastModificationTime) |
bool | findMatchingFile (TSLPathList *pathList, const char *filename, TSLSimpleString &fullPathFound, TSLMaplCompressionOption *compression=0, bool *remote=0) |
TSLLoaderStatus | load (TSLPathList *pathList, const char *filename, TSLLoaderCallback callback, void *arg, bool synchronous=true) |
TSLLoaderStatus | loadImmediate (TSLPathList *pathList, const char *filename, TSLifstream *stream) |
TSLLoaderStatus | loadSegment (TSLPathList *pathList, const char *filename, TSLFileOffset offset, TSLFileLength length, TSLLoaderCallback callback, void *arg, bool synchronous=true) |
TSLLoaderStatus | loadSegmentImmediate (TSLPathList *pathList, const char *filename, TSLFileOffset offset, TSLFileLength length, TSLifstream *stream) |
void | setCallback (TSLLoaderFileCallback callback, void *userData, int loaderCallbacks) |
TSLFileLoaderTypeEnum | type () const |
Additional Inherited Members | |
![]() | |
TSLFileLoader () | |
~TSLFileLoader () | |
TSLFileLoaderBlocking::TSLFileLoaderBlocking | ( | ) |
Default constructor
void * TSLFileLoaderBlocking::operator new | ( | size_t | size | ) |
Overridden allocation to redirect to MapLink
void * TSLFileLoaderBlocking::operator new | ( | size_t | size, |
char * | filename, | ||
int | line ) |
When included in an MFC application in debug mode, the debug new expects this to be here. Override it and return the same as the normal one. The library must include it when compiled in release mode, since the user's application may be in debug mode.