TwiceAsNice  2019-02-18
Functions
apgHelper Namespace Reference

Functions

void DebugMsg (const char *fmt,...)
 
void LogDebugMsg (const int size, const char *fmt, va_list ap)
 
void LogVerboseMsg (const std::string &fileName, const std::string &msg, const int32_t lineNum, const std::string &type)
 
void LogErrorMsg (const std::string &fileName, const std::string &msg, const int32_t lineNum)
 
void LogWarningMsg (const std::string &fileName, const std::string &msg, const int32_t lineNum)
 
std::string mkMsg (const std::string &fileName, const std::string &msgStr, const int32_t lineNum)
 
std::string mkMsg (const std::string &fileName, const std::string &errStr, const int32_t lineNum, const Apg::ErrorType errType)
 
void throwRuntimeException (const std::string &fileName, const std::string &errStr, const int32_t lineNum, const Apg::ErrorType errType)
 
void ApogeeSleep (uint32_t TimeInMs)
 
Apg::LedState ConvertUShort2ApnLedState (const uint16_t value)
 
bool IsEqual (double x, double y)
 
uint32_t SizeT2Uint32 (size_t value)
 
int32_t SizeT2Int32 (size_t value)
 
uint16_t SizeT2Uint16 (size_t value)
 
uint8_t SizeT2Uint8 (size_t value)
 
int32_t OsInt2Int32 (int value)
 
std::string GetCfgFileName ()
 
std::string GetCamCfgDir ()
 
std::string GetCfgDir ()
 

Function Documentation

◆ ApogeeSleep()

void apgHelper::ApogeeSleep ( uint32_t  TimeInMs)

◆ ConvertUShort2ApnLedState()

Apg::LedState apgHelper::ConvertUShort2ApnLedState ( const uint16_t  value)

◆ DebugMsg()

void apgHelper::DebugMsg ( const char *  fmt,
  ... 
)

◆ GetCamCfgDir()

std::string apgHelper::GetCamCfgDir ( )

◆ GetCfgDir()

std::string apgHelper::GetCfgDir ( )

◆ GetCfgFileName()

std::string apgHelper::GetCfgFileName ( )

◆ IsEqual()

bool apgHelper::IsEqual ( double  x,
double  y 
)

◆ LogDebugMsg()

void apgHelper::LogDebugMsg ( const int  size,
const char *  fmt,
va_list  ap 
)

◆ LogErrorMsg()

void apgHelper::LogErrorMsg ( const std::string &  fileName,
const std::string &  msg,
const int32_t  lineNum 
)

◆ LogVerboseMsg()

void apgHelper::LogVerboseMsg ( const std::string &  fileName,
const std::string &  msg,
const int32_t  lineNum,
const std::string &  type 
)

◆ LogWarningMsg()

void apgHelper::LogWarningMsg ( const std::string &  fileName,
const std::string &  msg,
const int32_t  lineNum 
)

◆ mkMsg() [1/2]

string apgHelper::mkMsg ( const std::string &  fileName,
const std::string &  msgStr,
const int32_t  lineNum 
)

Creates a string with the following format filename(lineNumber):msgStr

Parameters
[in]fileName
[in]msgStr
[in]lineNum
Returns
std::string message.

◆ mkMsg() [2/2]

string apgHelper::mkMsg ( const std::string &  fileName,
const std::string &  errStr,
const int32_t  lineNum,
const Apg::ErrorType  errType 
)

Creates a string with the following format filename(lineNumber):errStr:errorType

Parameters
[in]fileName
[in]errStr
[in]lineNum
[in]errType
Returns
std::string message.

◆ OsInt2Int32()

int32_t apgHelper::OsInt2Int32 ( int  value)

◆ SizeT2Int32()

int32_t apgHelper::SizeT2Int32 ( size_t  value)

◆ SizeT2Uint16()

uint16_t apgHelper::SizeT2Uint16 ( size_t  value)

◆ SizeT2Uint32()

uint32_t apgHelper::SizeT2Uint32 ( size_t  value)

◆ SizeT2Uint8()

uint8_t apgHelper::SizeT2Uint8 ( size_t  value)

◆ throwRuntimeException()

void apgHelper::throwRuntimeException ( const std::string &  fileName,
const std::string &  errStr,
const int32_t  lineNum,
const Apg::ErrorType  errType 
)

Takes the input, forms an error message, creates a std::runtime error, assigns the error message to the what string and finally throws the error.

Parameters
[in]fileName
[in]errStr
[in]lineNum
[in]errType