21 #ifndef DtCSVReaderWriter_H_
22 #define DtCSVReaderWriter_H_
25 #include <vlutil/vlString.h>
30 #include <vlutil/vlMachineTypes.h>
32 #include <vlutil/vlFilename.h>
48 parentRegistry = NULL,
bool readonly =
false);
50 parentRegistry = NULL,
bool readonly =
false);
68 virtual void putSelf(std::string& fp,
int indentLevel = 0,
69 bool writeUnspecified =
false,
const DtFilename& path =
70 DtFilename::nullFilename())
override;
75 virtual void getSelf( FILE* fp);
79 virtual void writeSelf(std::string& fp,
int indentLevel = 0,
80 bool writeUnspecified =
false,
81 const DtFilename& path = DtFilename::nullFilename())
override;
94 virtual void putData(std::string& fp,
int indentLevel = 0)
override;
98 bool readLine(FILE * fp,
DtString& line );
virtual const char * readerWriterType() const
Used to supply a string type that this reader writer type is. This can be used in place of dynamic-ca...
This class allows one to collect and compare strings using an index number instead of having to do st...
Definition: symbolString.h:27
File: csvReaderWriter.h.
Definition: cSVReaderWriter.h:36
virtual DtlObjPtr getData(DtlObjPtr args, const SearchPaths &searchPaths, const DtVariableBindingsList &variableBindings)
Deriving class overrides these to get/put class specific data.
Definition: readerWriter.h:85
Definition: readerWriterRegistry.h:39
virtual void writeSelf(std::string &fp, int indentLevel=0, bool writeUnspecified=false, const DtFilename &path=DtFilename::nullFilename())
Called from putSelf, calls myRegistry.putSelf which in turn calls putSelf on each reader/writer in th...
std::vector< std::string > DtCSVLineEntry
Stores a parsed csv line.
Definition: cSVReaderWriter.h:89
virtual void getSelf(DtlObjPtr args, const DtReaderWriter::SearchPaths &searchPaths=SearchPaths(), const DtVariableBindingsList &variableBindings=nullVariableReference())
Top level to read itself from an input stream. searchPath is passed down to all DtReaderWriter member...
virtual void putSelf(std::string &fp, int indentLevel=0, bool writeUnspecified=false, const DtFilename &path=DtFilename::nullFilename())
Top level call to write itself to file. If write unspecified is true, will write entries that are uns...
virtual void putData(std::string &fp, int indentLevel=0)
Deriving class overrides these to get/put class specific data.
#define DT_DLL_vrfutil
This file is used to determine how to build Disable inconsistent dll linkage warning Visual Studio 6...
Definition: vrfutilDefines.h:34
const DtReaderWriter & operator=(const DtReaderWriter &orig)
assignment operator