VR-Forces 4.3 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
cSVReaderWriter.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2007 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 /*******************************************************************************
6 ** $RCSfile: csvReaderWriter.h,v $ $Revision: 1.4 $ $State: Exp $
7 ** Created: 4/4/07 MEM
8 *******************************************************************************/
9 
12 
20 
21 #ifndef DtCSVReaderWriter_H_
22 #define DtCSVReaderWriter_H_
23 
24 #include "stdio.h"
25 #include <vlutil/vlString.h>
26 #include "vrfutil/readerWriter.h"
30 #include <vlutil/vlMachineTypes.h>
31 #include "tdbutil/symbolString.h"
32 #include <vlutil/vlFilename.h>
33 #include <list>
34 
35 #include "vrfutil/vrfutilDefines.h"
37 {
38 public:
39 
40 
43 
48  parentRegistry = NULL, bool readonly = false);
49  DtCSVReaderWriter(const DtSymbolString& name, DtReaderWriterRegistry*
50  parentRegistry = NULL, bool readonly = false);
51 
53  DtCSVReaderWriter(const DtString& name, const DtCSVReaderWriter& orig,
54  DtReaderWriterRegistry* parentRegistry = NULL);
55  DtCSVReaderWriter(const DtSymbolString& name, const DtCSVReaderWriter& orig,
56  DtReaderWriterRegistry* parentRegistry = NULL);
57 
59  const DtCSVReaderWriter& operator=(const DtCSVReaderWriter& orig);
60 
62  virtual ~DtCSVReaderWriter();
63 
68  virtual void putSelf(FILE* fp, int indentLevel = 0,
69  bool writeUnspecified = false, const DtFilename& path =
70  DtFilename::nullFilename());
71 
75  virtual void getSelf( FILE* fp);
76 
79  virtual void writeSelf(FILE* fp, int indentLevel = 0,
80  bool writeUnspecified = false,
81  const DtFilename& path = DtFilename::nullFilename());
82 
86  virtual const char* readerWriterType() const;
87 
89  typedef std::vector<std::string> DtCSVLineEntry;
90 
91 protected:
92 
94  virtual void putData(FILE *fp, int indentLevel = 0);
95  virtual bool getData(FILE *fp);
96 
97  //Not virtual, simple reads in a line of a csv file for parsing
98  bool readLine(FILE * fp, DtString& line );
99 
100 };
101 
102 
103 
104 #endif

Document ID: Generated on Wed Mar 11 21:20:57 EDT 2015 from SVN revision 150940
Copyright © 2005-2014 VT MÄK. All Rights Reserved (www.mak.com)