10 #include <coil/Time.h> 19 std::cout <<
m_cnt <<
": " << val << std::endl;
44 throw (CORBA::SystemException)
47 std::cout <<
"MyService::echo() was called." << std::endl;
49 for (
int i(0); i < 10; ++i)
51 std::cout <<
"Message: " << msg << std::endl;
54 std::cout <<
"MyService::echo() was finished" << std::endl;
56 return CORBA::string_dup(msg);
60 throw (CORBA::SystemException)
62 std::cout <<
"MyService::get_echo_history() was called." << std::endl;
65 SimpleService::EchoList_var el;
66 el =
new SimpleService::EchoList(m_echoList);
71 throw (CORBA::SystemException)
76 std::cout <<
"MyService::set_value() was called." << std::endl;
78 for (
int i(0); i < 10; ++i)
80 std::cout <<
"Input value: " << value;
81 std::cout <<
", Current value: " << m_value << std::endl;
84 std::cout <<
"MyService::set_value() was finished" << std::endl;
90 throw (CORBA::SystemException)
92 std::cout <<
"MyService::get_value() was called." << std::endl;
93 std::cout <<
"Current value: " << m_value << std::endl;
99 throw (CORBA::SystemException)
101 std::cout <<
"MyService::get_value_history() was called." << std::endl;
104 SimpleService::ValueList_var vl;
105 vl =
new SimpleService::ValueList(m_valueList);
Service implementation header of MyService.idl.
AutoTest::ValueList * get_value_history()
unsigned int sleep(unsigned int seconds)
Stop a processing at specified second time.
char * echo(const char *msg)
virtual ~MyServiceSVC_impl()
destructor
CORBA sequence utility template functions.
void set_value(CORBA::Float value)
void push_back(CorbaSequence &seq, SequenceElement elem)
Push the new element back to the CORBA sequence.
AutoTest::EchoList * get_echo_history()
MyServiceSVC_impl()
standard constructor
Functor for_each(CorbaSequence &seq, Functor f)
Apply the functor to all CORBA sequence elements.