VR-Forces 4.2 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
include
vrfutil
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/rdrWritr.h
"
27
#include "
vrfutil/rwRegistry.h
"
28
#include "
vrfutil/putSelfCbInfo.h
"
29
#include "
vrfutil/getSelfCbInfo.h
"
30
#include <vlutil/vlMachineTypes.h>
31
#include "tdbutil/symStr.h"
32
#include <vlutil/vlFilename.h>
33
#include <list>
34
35
#include "
vrfutil/vrfutilDefines.h
"
36
class
DT_DLL_vrfutil
DtCSVReaderWriter
:
public
DtReaderWriter
37
{
38
public
:
39
40
42
DtCSVReaderWriter
();
43
47
DtCSVReaderWriter
(
const
DtString
& name,
DtReaderWriterRegistry
*
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 Sun Nov 24 19:49:21 EST 2013 from SVN revision 133924
Copyright © 2005-2013 VT MÄK. All Rights Reserved (
www.mak.com
)