| 96 | |
| 97 | template<typename Writer> |
| 98 | int |
| 99 | TestPublisher<Writer>::write_message(TestMessage& message) |
| 100 | { |
| 101 | if (this->writer_i_->write(message, DDS::HANDLE_NIL) != DDS::RETCODE_OK) { |
| 102 | ACE_ERROR_RETURN((LM_ERROR, |
| 103 | ACE_TEXT("ERROR: %N:%l: test() -") |
| 104 | ACE_TEXT(" unable to write sample!\n")), -1); |
| 105 | } |
| 106 | return 0; |
| 107 | } |
| 108 | |
| 109 | template<typename Writer> |
| 110 | int |