What does your feature request improve on? Please describe.
Sometimes you'll find files, which are in defined format but don't use standard file format extension. It would be nice, if one can specifiy the file format type while loading.
Describe the solution you'd like
Enable the possility to specify the file format type while loading, e.g. via load FILE -fileformat="CSV"
Additional context
Add any other context or screenshots about the feature request here.
(Do not write below this line)
DEVS' SECTION
ANALYSIS
Needs a set of changes:
Change the interface of GenericFile* getFileByType(const std::string& filename); to accept an optional second parameter with the user-supplied file format extension, which is then used to filter for the correct implementation
Add all user-declared file extensions to the declared extensions within the used FileSystem instances (there are more than one)
Extend FileHeaderInfo FileAdapter::openFile(std::string _sFile, bool loadToCache, bool overrideTarget, int _nHeadline, const std::string& sTargetTable) to cope with the new parameter
Extend bool FileAdapter::saveFile(const std::string& sTable, std::string _sFileName, unsigned short nPrecision) and the called virtual function to cope with the new parameter
DESCRIPTION
What does your feature request improve on? Please describe. Sometimes you'll find files, which are in defined format but don't use standard file format extension. It would be nice, if one can specifiy the file format type while loading.
Describe the solution you'd like Enable the possility to specify the file format type while loading, e.g. via
load FILE -fileformat="CSV"
Additional context Add any other context or screenshots about the feature request here.
(Do not write below this line)
DEVS' SECTION
ANALYSIS
Needs a set of changes:
GenericFile* getFileByType(const std::string& filename);
to accept an optional second parameter with the user-supplied file format extension, which is then used to filter for the correct implementationFileSystem
instances (there are more than one)FileHeaderInfo FileAdapter::openFile(std::string _sFile, bool loadToCache, bool overrideTarget, int _nHeadline, const std::string& sTargetTable)
to cope with the new parameterbool FileAdapter::saveFile(const std::string& sTable, std::string _sFileName, unsigned short nPrecision)
and the called virtual function to cope with the new parameterIMPLEMENTATION STEPS
(see also our Wiki for implementation guidelines)
DOCUMENTATION STEPS
(see also our Wiki for further information)
*.NHLP
and*.NDB
files, if needed)*.NLNG
files, if needed)PULL REQUEST