Base of the file importers that scripts get from VQ, such as VQ.brukerImporter().
A typical import loads the files, then hands the result to the Data Manager:
var imp = VQ.gelImporter();
imp.setSliceThickness(1.0); // otherwise load() asks for it
if (!imp.load('C:/data/image.gel')) {
VQ.debug(imp.takeError());
}
imp.transferData(0, VQ.dataManager());
Errors are reported through the functions inherited from HasErrorQObject.
|
| virtual bool | load (Array< string > fileNames)=0 |
| | Reads image files. Nothing is added to the Data Manager until transferData().
|
| virtual bool | load (string fileName) |
| void | transferData (int idx, DataManager *dm) |
| | Adds the data read by load() to the Data Manager, then forgets it.
|
|
bool | hasError () |
| | Returns true if an error message is stored.
|
|
void | clearError () |
| | Clears the stored error message.
|
|
string | takeError () |
| | Returns the stored error message and clears it.
|
|
string | errorString () |
| | Returns the stored error message, or an empty string. The message is kept.
|