MCPcopy Create free account
hub / github.com/OpenDDS/OpenDDS / retcode_to_string

Function retcode_to_string

dds/DCPS/DCPS_Utils.cpp:29–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27namespace DCPS {
28
29const 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
70const char* topicstatus_to_string(TopicStatus value)
71{

Callers 15

on_data_availableMethod · 0.85
on_data_availableMethod · 0.85
svcMethod · 0.85
on_data_availableMethod · 0.85
on_data_availableMethod · 0.85
on_data_availableMethod · 0.85
on_data_availableMethod · 0.85
readFunction · 0.85
finalizeMethod · 0.85
finalizeMethod · 0.85
handle_exceptionMethod · 0.85

Calls

no outgoing calls

Tested by 11

retcodes_equalFunction · 0.68
check_rcFunction · 0.68
run_multitopic_testFunction · 0.68
on_data_availableMethod · 0.68
test_cleanupFunction · 0.68
complex_test_cleanupFunction · 0.68
run_filtering_testFunction · 0.68
run_test_next_instanceFunction · 0.68
test_caseMethod · 0.68