VR-Vantage 2.7 API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ciSystemTest.h
Go to the documentation of this file.
1 
2 // Copyright JRM Enterprises, Inc. 2004
3 // All rights reserved.
4 //
5 // This code is the intellectual property of JRM Enterprises, Inc.
6 // It may not be used or released as source or compiled binary form
7 // without the prior written consent of JRM Enterprises, Inc.
8 //
10 
11 #pragma once
12 
13 #if !defined _ciSystemTest_h_
14 #define _ciSystemTest_h_
15 
16 #include "ciApi.h"
17 #include "clXML.h"
18 #include <stdio.h>
19 #include <string.h>
20 #include <fstream>
21 #include <iostream>
22 #include <assert.h>
23 #include "clXMLNode.h"
24 
26 {
27 public: // enumerations
28 
29 public: // methods
30 
31 
33  // archive
42  bool archive(std::ofstream &outf);
43 
45  // serialize
53  bool serialize(char *filepath);
54 
55  //
56  // loadXML
57  //
58  // \par Description:
59  // Loads attributes from an XML node
60  //
61  // \param clXMLNode* environmentNode
62  // \return bool
63  //
64  bool loadXML(clXMLNode* environmentNode);
65 
66  //
67  // parseXML
68  //
69  // \par Description:
70  // Parses an XML document for specific tags
71  //
72  // \param clXML xmlDocument
73  // \return bool
74  //
75  bool parseXML(clXML& xmlDocument);
76 
78  //loadXMLNode
85  bool loadXMLNode(std::string tag, char *nodeString);
87  //loadXMLNode
94  bool loadXMLNode(std::string tag, std::string *nodeString);
96  //loadXMLNode
103  bool loadXMLNode(std::string tag, bool *nodeBool);
105  //loadXMLNode
112  bool loadXMLNode(std::string tag, int *nodeBool);
114  //loadXMLNode
121  bool loadXMLNode(std::string tag, double *nodeBool);
122 
123  //
124  // saveXML
125  //
126  // \par Description:
127  // Saves XML nodes to an XML document
128  //
129  // \param clXML* xmlDocument
130  //
131  void saveXML(clXML* xmlDocument);
132 
134  // ciSystemTest
140  ciSystemTest(void);
141 
143  // ~ciSystemTest
149  ~ciSystemTest(void);
150 
152  // ciSystemTest
160 
162  // operator =
169  ciSystemTest operator = (ciSystemTest &obj);
170 
171  void setCaptureFrame(int frame) { m_captureFrame = frame;}
172  int getCaptureFrame() { return m_captureFrame;}
173 
174  void setPreApertureFpf(std::string fname) { m_preApertureFpf = strdup(fname.c_str());}
175  std::string getPreApertureFpf() { return m_preApertureFpf;}
176 
177  void setPostApertureFpf(std::string fname) { m_postApertureFpf = strdup(fname.c_str());}
178  std::string getPostApertureFpf() { return m_postApertureFpf;}
179 
180 // TODO: Add this functionality
181  void setCaptureStandardOutput(bool state) { m_standardOutput = state;}
182  bool getCaptureStandardOutput() { return m_standardOutput;}
183 
184  void setCaptureDisplayFrameRate(bool state) { m_displayFrameRate = state;}
185  bool getCaptureDisplayFrameRate() { return m_displayFrameRate;}
186 
187 private: // parts, variables, and other neat stuff...
188 
190 
191  //these were changed from std::strings to avoid a warning about dll export.
196 
198 };
199 
200 #endif // _ciSystemTest_h_


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