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

Function ACE_TMAIN

tools/modeling/tests/MultiTopic/publisher.cpp:101–129  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

99}
100
101int ACE_TMAIN(int argc, ACE_TCHAR** argv)
102{
103 int rc = 0;
104 try {
105 OpenDDS::Model::Application application(argc, argv);
106 MultiTopicLib::DefaultMultiTopicType model(application, argc, argv);
107
108
109 rc = send_reference_data(model);
110 std::cout << "send_reference_data returned " << rc << std::endl;
111 rc = rc || send_trade_data(model);
112 std::cout << "send_trade_data returned " << rc << std::endl;
113
114 // END OF EXISTING MESSENGER EXAMPLE CODE
115 } catch (const CORBA::Exception& e) {
116 e._tao_print_exception("Exception caught in main():");
117 return -1;
118
119 } catch( const std::exception& ex) {
120 ACE_ERROR_RETURN((LM_ERROR,
121 ACE_TEXT("(%P|%t) ERROR: %N:%l: main() -")
122 ACE_TEXT(" Exception caught: %C\n"),
123 ex.what()),
124 -1);
125 }
126
127 std::cout << "pub exiting" << std::endl;
128 return rc;
129}
130

Callers

nothing calls this directly

Calls 4

send_reference_dataFunction · 0.85
send_trade_dataFunction · 0.85
_tao_print_exceptionMethod · 0.80
whatMethod · 0.45

Tested by

no test coverage detected