VR-Vantage 3.0.3 API Documentation
Home
Modules
Namespaces
Classes
Files
Libraries
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
sensorFx
include
ciSettings.h
Go to the documentation of this file.
1
2
3
#pragma once
4
5
#if !defined _ciSettings_h_
6
#define _ciSettings_h_
7
#include "
ciApi.h
"
8
9
#include <stdio.h>
10
#include <string.h>
11
#include <fstream>
12
#include <iostream>
13
#include <assert.h>
14
#include "
clXML.h
"
15
#include "
clXMLNode.h
"
16
17
class
CI_API
ciSettings
18
{
19
public
:
// methods
20
22
// archive
31
bool
archive(std::ofstream &outf);
32
34
// serialize
42
bool
serialize(
char
*filepath);
43
44
//
45
// loadXML
46
//
47
// \par Description:
48
// Loads attributes from an XML node
49
//
50
// \param clXMLNode* xmlParentNode
51
// \return bool
52
//
53
bool
loadXML(
clXMLNode
* xmlParentNode);
54
55
//
56
// parseXML
57
//
58
// \par Description:
59
// Parses an XML document for specific tags
60
//
61
// \param clXML xmlDocument
62
// \return bool
63
//
64
bool
parseXML(
clXML
& xmlDocument);
65
67
//loadXMLNode
74
bool
loadXMLNode(
std::string
tag,
char
*nodeString);
76
//loadXMLNode
83
bool
loadXMLNode(
std::string
tag,
bool
*nodeBool);
85
//loadXMLNode
92
bool
loadXMLNode(
std::string
tag,
int
*nodeBool);
94
//loadXMLNode
101
bool
loadXMLNode(
std::string
tag,
double
*nodeBool);
102
103
//
104
// saveXML
105
//
106
// \par Description:
107
// Saves XML nodes to an XML document
108
//
109
// \param clXML* xmlDocument
110
//
111
void
saveXML(
clXML
* xmlDocument);
112
114
//setSensorGain
119
void
setSameFOV
(
bool
sameFOV){ m_sameFOV = sameFOV; }
121
//getSensorGain
126
bool
getSameFOV
(){
return
m_sameFOV; }
128
// ciSettings
134
ciSettings
(
void
);
135
137
// ~ciSettings
143
~
ciSettings
(
void
);
144
146
// ciSettings
153
ciSettings
(
ciSettings
&
obj
);
154
156
// operator =
163
ciSettings
operator = (
ciSettings
&
obj
);
164
165
private
:
// parts, variables, and other neat stuff...
166
167
bool
m_sameFOV
;
168
clXMLNode
*
m_parentNode
;
169
};
170
171
#endif
172
// _ciSettings_h_
Copyright © 2005-2023 MAK Technologies. All Rights Reserved (
www.mak.com
)