Operator Console
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Public Attributes | Protected Member Functions | List of all members
Config Class Reference

A class that contains a few configuration details. More...

#include <Config.h>

Public Member Functions

 Config (void)
 
virtual ~Config (void)
 
void Init (LPCTSTR iniFileName, LPCTSTR programPath, LPCTSTR ext, LPCTSTR fileRoot, LPCTSTR serialNum, LPCTSTR partNum, int nColors)
 
 Config (void)
 
virtual ~Config (void)
 
void Init (LPCTSTR iniFileName, LPCTSTR programPath, LPCTSTR ext, LPCTSTR fileRoot, LPCTSTR serialNum, LPCTSTR partNum, int nColors)
 

Public Attributes

const char * m_programPath
 Path to Imatest. More...
 
const char * m_iniFilePathName
 Fully-qualified ini file name (including full path) More...
 
const char * m_extension
 RAW file extension. More...
 
const char * m_fileRoot
 File root. More...
 
const char * m_serialNumber
 Camera serial number. More...
 
const char * m_partNumber
 Camera part number. More...
 
int m_ncolors
 

Protected Member Functions

bool Load ()
 
bool Save ()
 
bool Load ()
 
bool Save ()
 

Detailed Description

A class that contains a few configuration details.

Constructor & Destructor Documentation

Config::Config ( void  )

References m_extension, m_fileRoot, m_iniFilePathName, m_ncolors, m_partNumber, m_programPath, and m_serialNumber.

25 {
26  m_iniFilePathName = NULL;
27  m_programPath = NULL;
28  m_extension = NULL;
29  m_fileRoot = NULL;
30  m_serialNumber = NULL;
31  m_partNumber = NULL;
32  m_ncolors = 0;
33 }
const char * m_iniFilePathName
Fully-qualified ini file name (including full path)
Definition: Config.h:38
const char * m_programPath
Path to Imatest.
Definition: Config.h:37
const char * m_extension
RAW file extension.
Definition: Config.h:39
const char * m_fileRoot
File root.
Definition: Config.h:40
const char * m_partNumber
Camera part number.
Definition: Config.h:42
int m_ncolors
Definition: Config.h:43
const char * m_serialNumber
Camera serial number.
Definition: Config.h:41
Config::~Config ( void  )
virtual
48 {
49 }
Config::Config ( void  )
virtual Config::~Config ( void  )
virtual

Member Function Documentation

void Config::Init ( LPCTSTR  iniFileName,
LPCTSTR  programPath,
LPCTSTR  ext,
LPCTSTR  fileRoot,
LPCTSTR  serialNum,
LPCTSTR  partNum,
int  nColors 
)

References m_extension, m_fileRoot, m_iniFilePathName, m_ncolors, m_partNumber, m_programPath, and m_serialNumber.

Referenced by COperatorConsoleApp::Init().

36 {
37  m_iniFilePathName = iniFileName;
38  m_programPath = programPath;
39  m_extension = ext;
40  m_fileRoot = fileRoot;
41  m_serialNumber = serialNum;
42  m_partNumber = partNum;
43  m_ncolors = ncolors;
44 }
const char * m_iniFilePathName
Fully-qualified ini file name (including full path)
Definition: Config.h:38
const char * m_programPath
Path to Imatest.
Definition: Config.h:37
const char * m_extension
RAW file extension.
Definition: Config.h:39
const char * m_fileRoot
File root.
Definition: Config.h:40
const char * m_partNumber
Camera part number.
Definition: Config.h:42
int m_ncolors
Definition: Config.h:43
const char * m_serialNumber
Camera serial number.
Definition: Config.h:41

Here is the caller graph for this function:

void Config::Init ( LPCTSTR  iniFileName,
LPCTSTR  programPath,
LPCTSTR  ext,
LPCTSTR  fileRoot,
LPCTSTR  serialNum,
LPCTSTR  partNum,
int  nColors 
)
bool Config::Load ( )
protected
bool Config::Load ( void  )
protected
52 {
53  return true;
54 }
bool Config::Save ( void  )
protected
57 {
58  return true;
59 }
bool Config::Save ( )
protected

Member Data Documentation

const char * Config::m_extension

RAW file extension.

Referenced by Config(), Init(), and ImageTest::Init().

const char * Config::m_fileRoot

File root.

Referenced by Config(), Init(), and ImageTest::Init().

const char * Config::m_iniFilePathName
int Config::m_ncolors

Referenced by Config(), Init(), and ImageTest::Init().

const char * Config::m_partNumber
const char * Config::m_programPath
const char * Config::m_serialNumber

The documentation for this class was generated from the following files: