TwiceAsNice
2019-02-18
|
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 () |
void apgHelper::ApogeeSleep | ( | uint32_t | TimeInMs | ) |
void apgHelper::DebugMsg | ( | const char * | fmt, |
... | |||
) |
std::string apgHelper::GetCamCfgDir | ( | ) |
std::string apgHelper::GetCfgDir | ( | ) |
std::string apgHelper::GetCfgFileName | ( | ) |
bool apgHelper::IsEqual | ( | double | x, |
double | y | ||
) |
void apgHelper::LogErrorMsg | ( | const std::string & | fileName, |
const std::string & | msg, | ||
const int32_t | lineNum | ||
) |
void apgHelper::LogVerboseMsg | ( | const std::string & | fileName, |
const std::string & | msg, | ||
const int32_t | lineNum, | ||
const std::string & | type | ||
) |
void apgHelper::LogWarningMsg | ( | const std::string & | fileName, |
const std::string & | msg, | ||
const int32_t | lineNum | ||
) |
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
[in] | fileName | |
[in] | msgStr | |
[in] | lineNum |
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
[in] | fileName | |
[in] | errStr | |
[in] | lineNum | |
[in] | errType |
int32_t apgHelper::OsInt2Int32 | ( | int | value | ) |
int32_t apgHelper::SizeT2Int32 | ( | size_t | value | ) |
uint16_t apgHelper::SizeT2Uint16 | ( | size_t | value | ) |
uint32_t apgHelper::SizeT2Uint32 | ( | size_t | value | ) |
uint8_t apgHelper::SizeT2Uint8 | ( | size_t | value | ) |
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.
[in] | fileName | |
[in] | errStr | |
[in] | lineNum | |
[in] | errType |