Operator Console
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Public Attributes | List of all members
entry< T > Struct Template Reference

A templated struct that contains all information for a single, scalar pass/fail variable. More...

#include <PassFailSettings.h>

Inheritance diagram for entry< T >:
[legend]

Public Member Functions

void assign_value (const T &input, const T &badVal)
 A member function for conditionally assigning the variable 'value' to 'input'. More...
 
 entry (void)
 a default constructor More...
 
void assign_value (const T &input, const T &badVal)
 A member function for conditionally assigning the variable 'value' to 'input'. More...
 
 entry (void)
 a default constructor More...
 

Public Attributes

CString name
 the pass/fail variable (or key) name as given in the Imatest documentation More...
 
CString description
 The description of this variable to be displayed. More...
 
value
 the value of the pass/fail variable More...
 
std::string data_type
 an indicator for the data_type to be used by inifile() More...
 
bool b_isUsed
 Indicates that this particular variable was found in the pass/fail file and thus should be displayed and kept up to date in the pass/fail file. More...
 

Detailed Description

template<typename T>
struct entry< T >

A templated struct that contains all information for a single, scalar pass/fail variable.

Constructor & Destructor Documentation

template<typename T>
entry< T >::entry ( void  )
inline

a default constructor

template<typename T>
entry< T >::entry ( void  )
inline

a default constructor

Member Function Documentation

template<typename T>
void entry< T >::assign_value ( const T &  input,
const T &  badVal 
)

A member function for conditionally assigning the variable 'value' to 'input'.

if 'input' is != the garbage value returned by inifile() when a variable is not found, then b_isUsed = true and value = input

Referenced by COperatorConsoleApp::ReadPassFail().

43 {
44  if (input != badVal)
45  {
46  this->b_isUsed = true;
47  this->value = input;
48  }
49 }
bool b_isUsed
Indicates that this particular variable was found in the pass/fail file and thus should be displayed ...
Definition: PassFailSettings.h:36
T value
the value of the pass/fail variable
Definition: PassFailSettings.h:33

Here is the caller graph for this function:

template<typename T>
void entry< T >::assign_value ( const T &  input,
const T &  badVal 
)

A member function for conditionally assigning the variable 'value' to 'input'.

if 'input' is != the garbage value returned by inifile() when a variable is not found, then b_isUsed = true and value = input

Member Data Documentation

template<typename T>
bool entry< T >::b_isUsed

Indicates that this particular variable was found in the pass/fail file and thus should be displayed and kept up to date in the pass/fail file.

Referenced by AddSubEntry(), COperatorConsoleApp::ReadPassFail(), and COperatorConsoleApp::WritePassFail().

template<typename T>
std::string entry< T >::data_type

an indicator for the data_type to be used by inifile()

This variable is used by inifile() for determining what data-type should be returned. Set equal to "i" for int, "d" for double, or "" (or "s") for string.

Referenced by CPassFailSettings::CPassFailSettings(), and COperatorConsoleApp::ReadPassFail().

template<typename T>
CString entry< T >::description

The description of this variable to be displayed.

Referenced by AddSubEntry(), CPassFailSettings::CPassFailSettings(), and COperatorConsoleApp::ReadPassFail().

template<typename T>
CString entry< T >::name

the pass/fail variable (or key) name as given in the Imatest documentation

Referenced by AddSubEntry(), CPassFailSettings::CPassFailSettings(), CPassFail::OnBnClickedOk(), COperatorConsoleApp::ReadPassFail(), and COperatorConsoleApp::WritePassFail().

template<typename T>
T entry< T >::value

The documentation for this struct was generated from the following file: