VR-Vantage 3.1 API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
ciDataCollection.h
Go to the documentation of this file.
1 
2 // Original Author: Tim George
3 // Date: Oct 2005
4 //
5 //
6 //
8 
9 #if !defined(_CIDataCollection_H_)
10 #define _CIDataCollection_H_
11 #include "ciApi.h"
12 
13 #if _MSC_VER > 1000
14 #pragma once
15 #endif // _MSC_VER > 1000
16 
20 #include <iostream>
21 #include <fstream>
22 #include <string.h>
23 #include "clXML.h"
24 #include "clXMLNode.h"
25 
26 
28 {
29 public: // methods
30 
31  void set_DataCollection_State(int val) { State = val; }
32  int get_DataCollection_State() { return State; }
33  void set_DataCollection_StartTime(double val) { StartTime = val; }
34  double get_DataCollection_StartTime() { return StartTime; }
35  void set_DataCollection_EndTime(double val) { EndTime = val; }
36  double get_DataCollection_EndTime() { return EndTime; }
37  void set_DataCollection_FrameRate(double val) { FrameRate = val; }
38  double get_DataCollection_FrameRate() { return FrameRate; }
39  void set_DataCollection_GpuTiffData(int val) { GpuTiffData = val; }
40  int get_DataCollection_GpuTiffData() { return GpuTiffData; }
41  void set_DataCollection_QuickLookData(int val) { QuickLookData = val; }
42  int get_DataCollection_QuickLookData() { return QuickLookData; }
43  void set_DataCollection_MasterDirectory(char *val) { strcpy(MasterDirectory,val); }
44  char *get_DataCollection_MasterDirectory() { return MasterDirectory; }
45 
46  void loadArgXML(char *str, double &d);
47  void loadArgXML(char *str, int &i);
48 
49  void saveArgXML(clXML* xmlDocument, char *str, double d);
50  void saveArgXML(clXML* xmlDocument, char *str, int i);
51 
52 
54  // archive
62  bool archive(std::ofstream &outf);
63 
65  // serialize
73  bool serialize(char *filepath);
74 
75  //
76  // loadXML
77  //
78  // \par Description:
79  // Loads attributes from an XML node
80  //
81  // \param clXMLNode* DataCollectionNode
82  // \return bool
83  //
84  bool loadXML(clXMLNode* DataCollectionNode);
85 
86  //
87  // parseXML
88  //
89  // \par Description:
90  // Parses an XML document for specific tags
91  //
92  // \param clXML xmlDocument
93  // \return bool
94  //
95  bool parseXML(clXML& xmlDocument);
96 
98  //loadXMLNode
105  bool loadXMLNode(std::string tag, char *nodeString);
107  //loadXMLNode
114  bool loadXMLNode(std::string tag, bool *nodeBool);
116  //loadXMLNode
123  bool loadXMLNode(std::string tag, int *nodeBool);
125  //loadXMLNode
132  bool loadXMLNode(std::string tag, double *nodeBool);
133 
134  //
135  // saveXML
136  //
137  // \par Description:
138  // Saves XML nodes to an XML document
139  //
140  // \param clXML* xmlDocument
141  //
142  void saveXML(clXML* xmlDocument);
143 
145  // operator =
153  ciDataCollection operator = (ciDataCollection &obj);
154 
155 protected: // methods
156 
157 public: // construction/destruction
158 
160  // ciTrack
166 
168  // ciDataCollection
176 
177  virtual ~ciDataCollection();
178 
179 protected: // variables
180 
181  double StartTime;
182  double EndTime;
183  double FrameRate;
184  char MasterDirectory[1024];
186  int State;
188 
190 private: // variables
191 
192 };
193 
194 #endif // _ciDataCollection_H_


Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)