VR-Exchange 2.4 API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
brokers/ddsBroker/ddsBroker/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 <ddsBroker/dllExport.h>
13 #include <vl/hostStructs.h>
14 #include <vlutil/vlList.h>
15 
16 class DtCsvFileEntry;
17 
18 typedef DtCsvFileEntry* (*DtCsvFileEntryCreatorFcn)();
19 
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  // Clone entry
40  virtual DtCsvFileEntry* clone();
41 
42  // assignment operator
43  DtCsvFileEntry& operator = ( const DtCsvFileEntry& orig );
44 
45  // emptyList()
46  // For the default implementation, delete
47  // the string fields in the member list.
48  virtual void emptyList();
49 
50  // length()
51  // For the default implementation,
52  // return the number of fields available.
53  virtual int length() const;
54 
55  //Entry's name
56  virtual const DtString& name() const;
57 
58  // operator[]
59  // For the default implementation, return
60  // a field in the list of fields.
61  // Returns DtString::nullString() for
62  // indices that are out of range
63  virtual DtString& operator[](int idx);
64 
65  virtual const DtString& operator[](int idx) const;
66 
67  // parseFrom
68  // A generic tokenizer that busts up the line
69  // into string fields and stores them into
70  // the myFields member.
71  virtual void parseFrom(const DtString& sLine);
72 
73 protected:
74 
75  // default constructor
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)