VR-Exchange 2.1 API Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Libraries
File List
File Members
include
disBroker
disBroker/csvFileEntry.h
Go to the documentation of this file.
1
/*********************************************************************
2
** Copyright (c) 1992-2010 VT MAK
3
** All rights reserved.
4
*********************************************************************/
5
/*********************************************************************
6
** $RCSfile: csvFileEntry.h,v $ $Revision: 1.1 $ $State: Exp $
7
** Created:8/22/02 MEM, Updated: 8/26/02
8
*********************************************************************/
9
10
#ifndef DtCsvFileEntry_H_
11
#define DtCsvFileEntry_H_
12
13
#include <vl/hostStructs.h>
14
#include <vlutil/vlList.h>
15
#include <
namespace.h
>
16
17
class
DtCsvFileEntry
;
18
19
typedef
DtCsvFileEntry
* (*DtCsvFileEntryCreatorFcn)();
20
21
// class DtCsvFileEntry:
22
//
23
// Is a generic class. It represents the entries that are parsed out of a csv file by the csv
24
// file reader. Children classes will derive their own entrie from this that their own derived readers
25
// know how to parse
26
27
class
DT_DLL_DISBROKER
DtCsvFileEntry
28
{
29
// constructors
30
public
:
31
32
// constructor
33
DtCsvFileEntry
(
const
DtString
& name);
34
35
// destructor
36
virtual
~
DtCsvFileEntry
();
37
38
// copy constructor
39
DtCsvFileEntry
(
const
DtCsvFileEntry
& orig);
40
41
// operators
42
public
:
43
// Clone entry
44
virtual
DtCsvFileEntry
* clone();
45
46
// assignment operator
47
DtCsvFileEntry
& operator=(
const
DtCsvFileEntry
& orig);
48
49
// accessors & mutators
50
public
:
51
// emptyList()
52
// For the default implementation, delete
53
// the string fields in the member list.
54
virtual
void
emptyList();
55
56
// length()
57
// For the default implementation,
58
// return the number of fields available.
59
virtual
int
length()
const
;
60
61
//Entry's name
62
virtual
const
DtString
& name()
const
;
63
64
// operator[]
65
// For the default implementation, return
66
// a field in the list of fields.
67
// Returns DtString::nullString() for
68
// indices that are out of range
69
virtual
DtString
& operator[](
int
idx);
70
71
virtual
const
DtString
& operator[](
int
idx)
const
;
72
73
// parseFrom
74
// A generic tokenizer that busts up the line
75
// into string fields and stores them into
76
// the myFields member.
77
virtual
void
parseFrom(
const
DtString
& sLine);
78
79
// static creator
80
public
:
81
82
static
DtCsvFileEntry
* creator();
83
84
protected
:
85
86
// default constructor
87
DtCsvFileEntry
();
88
89
protected
:
90
DtString
myName
;
91
DtList
myFields
;
92
93
};
94
95
#endif
Document ID: Generated on Tue Aug 7 22:07:13 EDT 2012 from SVN revision 117874
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (
www.mak.com
)