VR-Exchange 2.4 API Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Libraries
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
brokers
tenaBroker
tenaBroker
brokers/tenaBroker/tenaBroker/csvFileEntry.h
Go to the documentation of this file.
1
/****************************************************************************
2
* Copyright (c) 2013 VT MAK
3
* All rights reserved.
4
****************************************************************************/
5
9
10
#pragma once
11
12
#include <
tenaBroker/dllExport.h
>
13
#include <vl/hostStructs.h>
14
#include <vlutil/vlList.h>
15
16
class
DtCsvFileEntry
;
17
18
typedef
DtCsvFileEntry
* (*DtCsvFileEntryCreatorFcn)();
19
20
// class DtCsvFileEntry:
21
//
22
// Is a generic class. It represents the entries that are parsed out of a csv file by the csv
23
// file reader. Children classes will derive their own entrie from this that their own derived readers
24
// know how to parse
25
26
class
DT_DLL_TENABROKER
DtCsvFileEntry
27
{
28
public
:
29
30
static
DtCsvFileEntry
* creator();
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
// Clone entry
42
virtual
DtCsvFileEntry
* clone();
43
44
// assignment operator
45
DtCsvFileEntry
& operator=(
const
DtCsvFileEntry
& orig);
46
47
// emptyList()
48
// For the default implementation, delete
49
// the string fields in the member list.
50
virtual
void
emptyList();
51
52
// length()
53
// For the default implementation,
54
// return the number of fields available.
55
virtual
int
length()
const
;
56
57
//Entry's name
58
virtual
const
DtString
& name()
const
;
59
60
// operator[]
61
// For the default implementation, return
62
// a field in the list of fields.
63
// Returns DtString::nullString() for
64
// indices that are out of range
65
virtual
DtString
& operator[](
int
idx);
66
67
virtual
const
DtString
& operator[](
int
idx)
const
;
68
69
// parseFrom
70
// A generic tokenizer that busts up the line
71
// into string fields and stores them into
72
// the myFields member.
73
virtual
void
parseFrom(
const
DtString
& sLine);
74
75
protected
:
76
77
// default constructor
78
DtCsvFileEntry
();
79
80
protected
:
81
82
DtString
myName;
83
DtList myFields;
84
85
};
Document ID: Generated on Thu Jul 23 10:25:22 EDT 2015 from SVN revision 155065
Copyright © 2005-2014 VT MÄK. All Rights Reserved (
www.mak.com
)