00001 /* 00002 * OpenSplice DDS 00003 * 00004 * This software and documentation are Copyright 2006 to 2013 PrismTech 00005 * Limited and its licensees. All rights reserved. See file: 00006 * 00007 * $OSPL_HOME/LICENSE 00008 * 00009 * for full copyright notice and license terms. 00010 * 00011 */ 00012 00013 /************************************************************************ 00014 * LOGICAL_NAME: CheckStatus.h 00015 * FUNCTION: OpenSplice NetworkPartitions example code. 00016 * MODULE: NetworkPartitions example for the C++ programming language. 00017 * DATE june 2007. 00018 ************************************************************************ 00019 * 00020 * This file contains the headers for the error handling operations. 00021 * 00022 ***/ 00023 00024 #ifndef __CHECKSTATUS_H__ 00025 #define __CHECKSTATUS_H__ 00026 00027 #include "ccpp_dds_dcps.h" 00028 #include <iostream> 00029 00030 using namespace std; 00031 00035 const char *getErrorName(DDS::ReturnCode_t status); 00036 00040 void checkStatus(DDS::ReturnCode_t status, const char *info); 00041 00045 void checkHandle(void *handle, const char *info); 00046 00047 #endif