![]() |
VRS
A file format for sensor data.
|
Class to abstract the delegate file open operation for VRS file. More...
#include <FileDelegator.h>
Public Member Functions | |
virtual int | delegateOpen (const FileSpec &fileSpec, unique_ptr< FileHandler > &outNewDelegate)=0 |
virtual int | parseUri (FileSpec &inOutFileSpec, MAYBE_UNUSED size_t colonIndex) const |
Class to abstract the delegate file open operation for VRS file.
|
pure virtual |
Delegate the file open operation to the correct FileHandler.
fileSpec | file specification. |
outNewDelegate | If provided, might be a fallback FileHandler to use. On exit, may be set to a different FileHandler than the provided one, if the provided FileHandler was not set or not the correct one to handle the provided file specification, or cleared if no appropriate FileHandler could be found. |
Implemented in vrs::FileHandler.
|
inlinevirtual |
When converting a URI to a FileSpec, some custom parsing maybe required.
inOutFileSpec | on input, both the fileHandlerName & URI fields are set. All the other fields of the FileSpec object are cleared, and URI holds the full original URI. |
colonIndex | index of the ':' character of the URI. |