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

A templated struct that contains all information for a single min-max variable pair. More...

#include <PassFailSettings.h>

Inheritance diagram for minMaxEntry< T >:
[legend]

Public Member Functions

void assign_value (const std::vector< T > &input, const T &badVal)
 A member function for conditionally assigning the variable 'value' to 'input'. More...
 
 minMaxEntry (void)
 default constructor More...
 
void assign_value (const std::vector< T > &input, const T &badVal)
 A member function for conditionally assigning the variable 'value' to 'input'. More...
 
 minMaxEntry (void)
 default constructor More...
 

Public Attributes

CString group_name
 The overall name for the pair. More...
 
CString min_name
 The name displayed for the min entry. More...
 
CString max_name
 The name displayed for the max entry. More...
 
CString min_description
 The description displayed for the min variable. More...
 
CString max_description
 The description displayed for the max variable. More...
 
min_val
 The value for the min variable. More...
 
max_val
 The value for the max 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 minMaxEntry< T >

A templated struct that contains all information for a single min-max variable pair.

Constructor & Destructor Documentation

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

default constructor

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

default constructor

Member Function Documentation

template<typename T>
void minMaxEntry< T >::assign_value ( const std::vector< 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().

71 {
72  if (input[0] != badVal)
73  {
74  this->b_isUsed = true;
75  this->min_val = input[0];
76  this->max_val = input[1];
77  }
78 }
T min_val
The value for the min variable.
Definition: PassFailSettings.h:61
bool b_isUsed
Indicates that this particular variable was found in the pass/fail file and thus should be displayed ...
Definition: PassFailSettings.h:65
T max_val
The value for the max variable.
Definition: PassFailSettings.h:62

Here is the caller graph for this function:

template<typename T>
void minMaxEntry< T >::assign_value ( const std::vector< 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 minMaxEntry< 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 AddSubMinMaxEntry(), and COperatorConsoleApp::WritePassFail().

template<typename T>
std::string minMaxEntry< 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 minMaxEntry< T >::group_name
template<typename T>
CString minMaxEntry< T >::max_description

The description displayed for the max variable.

Referenced by AddSubMinMaxEntry(), and CPassFailSettings::CPassFailSettings().

template<typename T>
CString minMaxEntry< T >::max_name

The name displayed for the max entry.

Note that an MFC property grid will not display a description for the group

Referenced by AddSubMinMaxEntry(), and CPassFailSettings::CPassFailSettings().

template<typename T>
T minMaxEntry< T >::max_val
template<typename T>
CString minMaxEntry< T >::min_description

The description displayed for the min variable.

Referenced by AddSubMinMaxEntry(), and CPassFailSettings::CPassFailSettings().

template<typename T>
CString minMaxEntry< T >::min_name

The name displayed for the min entry.

Note that an MFC property grid will not display a description for the group

Referenced by AddSubMinMaxEntry(), and CPassFailSettings::CPassFailSettings().

template<typename T>
T minMaxEntry< T >::min_val

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