VR-Vantage 2.8 API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ciNVtherm.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 //
9 // Original Author: Tom Bergin
10 // Date: Nov 2004
11 //
12 //
13 //
15 
16 #if !defined(_ciNVTHERM_H_)
17 #define _ciNVTHERM_H_
18 
19 #if _MSC_VER > 1000
20 #pragma once
21 #endif // _MSC_VER > 1000
22 #ifndef LINUX
23 #pragma warning (disable : 4996) // Eliminate warnings about old C stdio routines.
24 #endif
25 #include "ciApi.h"
26 
27 #include <stdio.h>
28 #include <iostream>
29 #include <fstream>
30 #include <string.h>
31 
37 {
38 
39 public: // methods
40 
42  // getFilename
49  char *getFilename() {
50  return m_OutputFilename;
51  }
52 
54  // setFilename
62  void setFilename(char *name = (char *)"./nvtOutput.txt") {
63  strcpy(m_OutputFilename, name);
64  }
65 
67  // setDetectionProbability
75  void setDetectionProbability(float probValue = 0.1f) {
76  m_detectionProbability = probValue;
77  }
78 
80  // setClassificationProbability
88  void setClassificationProbability(float probValue = 1.0f) {
89  m_classificationProbability = probValue;
90  }
91 
93  // setIdentificationProbability
101  void setIdentificationProbability(float probValue = 2.0f) {
102  m_identificationProbability = probValue;
103  }
104 
106  // getDetectionProbability
115  return m_detectionProbability;
116  }
117 
119  // getClassificationProbability
128  return m_classificationProbability;
129  }
130 
132  // getIdentificationProbability
141  return m_identificationProbability;
142  }
143 
145  // setCurrentDirectory
153  // void setCurrentDirectory() {
154  // strcpy(m_initialationDirectory, wxGetCwd().GetData());
155  // }
156 
158  // getCurrentDirectory
167  return m_initialationDirectory;
168  }
169 
171  // archive
179  bool archive(std::ofstream &outf);
180 
182  // serialize
190  bool serialize(char *filepath);
191 
193  // operator =
201  ciNVTherm operator = (ciNVTherm &obj);
202 
203 protected: // methods
204 
205 public: // construction/destruction
206 
208  // ciNVTherm
213  ciNVTherm();
214 
216  // ciNVTherm
224 
225  virtual ~ciNVTherm();
226 
227 protected: // variables
228 
229 private: // variables
230  char m_OutputFilename[256];
234  char m_initialationDirectory[256];
235 };
236 
237 #endif // _ciNVTHERM_H_


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