#include "checkStatus.h"
Go to the source code of this file.
Functions | |
bool | checkHandle (void *handle, string info) |
bool | checkStatus (DDS::ReturnCode_t status, const char *info) |
string | getErrorName (DDS::ReturnCode_t status) |
Variables | |
string | RetCodeName [13] |
bool checkHandle | ( | void * | handle, |
string | info | ||
) |
Check whether a valid handle has been returned. If not, then terminate.
Definition at line 62 of file checkStatus.cpp.
bool checkStatus | ( | DDS::ReturnCode_t | status, |
const char * | info | ||
) |
Check the return status for errors. If there is an error, then terminate.
Definition at line 49 of file checkStatus.cpp.
string getErrorName | ( | DDS::ReturnCode_t | status | ) |
Returns the name of an error code.
Definition at line 41 of file checkStatus.cpp.
string RetCodeName[13] |
{ "DDS_RETCODE_OK", "DDS_RETCODE_ERROR", "DDS_RETCODE_UNSUPPORTED", "DDS_RETCODE_BAD_PARAMETER", "DDS_RETCODE_PRECONDITION_NOT_MET", "DDS_RETCODE_OUT_OF_RESOURCES", "DDS_RETCODE_NOT_ENABLED", "DDS_RETCODE_IMMUTABLE_POLICY", "DDS_RETCODE_INCONSISTENT_POLICY", "DDS_RETCODE_ALREADY_DELETED", "DDS_RETCODE_TIMEOUT", "DDS_RETCODE_NO_DATA", "DDS_RETCODE_ILLEGAL_OPERATION" }
Definition at line 28 of file checkStatus.cpp.