| 27 | namespace DCPS { |
| 28 | |
| 29 | const char* retcode_to_string(DDS::ReturnCode_t value) |
| 30 | { |
| 31 | switch (value) { |
| 32 | case DDS::RETCODE_OK: |
| 33 | return "OK"; |
| 34 | case DDS::RETCODE_ERROR: |
| 35 | return "Error"; |
| 36 | case DDS::RETCODE_UNSUPPORTED: |
| 37 | return "Unsupported"; |
| 38 | case DDS::RETCODE_BAD_PARAMETER: |
| 39 | return "Bad parameter"; |
| 40 | case DDS::RETCODE_PRECONDITION_NOT_MET: |
| 41 | return "Precondition not met"; |
| 42 | case DDS::RETCODE_OUT_OF_RESOURCES: |
| 43 | return "Out of resources"; |
| 44 | case DDS::RETCODE_NOT_ENABLED: |
| 45 | return "Not enabled"; |
| 46 | case DDS::RETCODE_IMMUTABLE_POLICY: |
| 47 | return "Immutable policy"; |
| 48 | case DDS::RETCODE_INCONSISTENT_POLICY: |
| 49 | return "Inconsistent policy"; |
| 50 | case DDS::RETCODE_ALREADY_DELETED: |
| 51 | return "Already deleted"; |
| 52 | case DDS::RETCODE_TIMEOUT: |
| 53 | return "Timeout"; |
| 54 | case DDS::RETCODE_NO_DATA: |
| 55 | return "No data"; |
| 56 | case DDS::RETCODE_ILLEGAL_OPERATION: |
| 57 | return "Illegal operation"; |
| 58 | #if OPENDDS_CONFIG_SECURITY |
| 59 | case DDS::Security::RETCODE_NOT_ALLOWED_BY_SECURITY: |
| 60 | return "Not allowed by security"; |
| 61 | #endif |
| 62 | default: |
| 63 | ACE_ERROR((LM_ERROR, ACE_TEXT("(%P|%t) ERROR: retcode_to_string: ") |
| 64 | ACE_TEXT("%d is either invalid or not recognized.\n"), |
| 65 | value)); |
| 66 | return "Invalid return code"; |
| 67 | } |
| 68 | } |
| 69 | |
| 70 | const char* topicstatus_to_string(TopicStatus value) |
| 71 | { |
no outgoing calls