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
disBroker
disBroker
brokers/disBroker/disBroker/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 <
disBroker/dllExport.h
>
13
#include <vl/hostStructs.h>
14
#include <vlutil/vlList.h>
15
16
class
DtCsvFileEntry
;
17
18
typedef
DtCsvFileEntry
* (*DtCsvFileEntryCreatorFcn)();
19
24
class
DT_DLL_DISBROKER
DtCsvFileEntry
25
{
26
public
:
27
28
static
DtCsvFileEntry
* creator();
29
30
// constructor
31
DtCsvFileEntry
(
const
DtString
& name );
32
33
// copy constructor
34
DtCsvFileEntry
(
const
DtCsvFileEntry
& orig );
35
36
// destructor
37
virtual
~
DtCsvFileEntry
();
38
39
// assignment operator
40
DtCsvFileEntry
& operator = (
const
DtCsvFileEntry
& orig );
41
42
// Clone entry
43
virtual
DtCsvFileEntry
* clone();
44
45
// operator[]
46
// For the default implementation, return
47
// a field in the list of fields.
48
// Returns DtString::nullString() for
49
// indices that are out of range
50
virtual
DtString
& operator[](
int
idx);
51
52
virtual
const
DtString
& operator[](
int
idx)
const
;
53
54
// parseFrom
55
// A generic tokenizer that busts up the line
56
// into string fields and stores them into
57
// the myFields member.
58
virtual
void
parseFrom(
const
DtString
& sLine);
59
60
//Entry's name
61
virtual
const
DtString
& name()
const
;
62
63
// emptyList()
64
// For the default implementation, delete
65
// the string fields in the member list.
66
virtual
void
emptyList();
67
68
// length()
69
// For the default implementation,
70
// return the number of fields available.
71
virtual
int
length()
const
;
72
73
protected
:
74
75
// default constructor
76
DtCsvFileEntry
();
77
78
protected
:
79
80
DtString
myName;
81
DtList myFields;
82
83
};
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
)