Example #1
0
odil::Value::Integer echo(odil::message::CEchoRequest const & request)
{
    std::cout << "Received echo\n";
    std::cout << "  ID: " << request.get_message_id() << "\n";
    std::cout << "  Affected SOP Class UID: " << request.get_affected_sop_class_uid() << "\n";
    return odil::message::Response::Success;
}
Example #2
0
 void check(odil::message::CEchoRequest const & message)
 {
     BOOST_CHECK_EQUAL(
         message.get_command_field(),
         odil::message::Message::Command::C_ECHO_RQ);
     BOOST_CHECK_EQUAL(message.get_message_id(), 1234);
     BOOST_CHECK_EQUAL(
         message.get_affected_sop_class_uid(),
         odil::registry::VerificationSOPClass);
     BOOST_CHECK(!message.has_data_set());
 }