Revert "Minor modernization of DynamicAny code"
[ACE_TAO.git] / TAO / tests / Bug_2791_Regression / Message_i.cpp
blob86356a1cc64f89281949448c7a90b1e29eb98a8b
1 #include "Message_i.h"
3 MessageImpl::MessageImpl ()
7 MessageImpl::MessageImpl (const char *user, const char *subject, const char *text)
9 user_ (user);
10 subject_ (subject);
11 text_ (text);
14 ::CORBA::ValueBase *
15 MessageImpl::_copy_value ()
17 ::CORBA::ValueBase *ret_val= 0;
18 ACE_NEW_THROW_EX (
19 ret_val,
20 MessageImpl (
21 user_ (),
22 subject_ (),
23 text_ ()
25 ::CORBA::NO_MEMORY ());
26 return ret_val;
29 char *
30 MessageImpl::user ()
32 return CORBA::string_dup (user_ ());
35 void
36 MessageImpl::user (const char *s)
38 user_ (s);
41 char *
42 MessageImpl::subject ()
44 return CORBA::string_dup (subject_ ());
47 void
48 MessageImpl::subject (const char *s)
50 subject_ (s);
53 char *
54 MessageImpl::text ()
56 return CORBA::string_dup (text_ ());
59 void
60 MessageImpl::text (const char *s)
62 text_ (s);
65 void
66 MessageImpl::print ()
68 ACE_DEBUG ((LM_DEBUG, "User: %s\n", user ()));
69 ACE_DEBUG ((LM_DEBUG, "Subject: %s\n", subject ()));
70 ACE_DEBUG ((LM_DEBUG, "Text: %s\n", text ()));