summaryrefslogtreecommitdiff
path: root/TAO/tests/OBV/Simple/OBV_impl.cpp
blob: 8ae13d5288a086d1df3556b335b1afde617e5f52 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
// $Id$

#include "OBV_impl.h"
#include "ace/OS_NS_sys_time.h"

// Implementation of the valuetype member functions.

Event_impl::Event_impl ()
{
}

Event_impl::Event_impl (CORBA::Long value)
{
  this->value_ (value);
}

Event_impl::~Event_impl ()
{
}

CORBA::ValueBase*
Event_impl::_copy_value (void)
{
  return new Event_impl (this->value_ ());
}


void
Event_impl::do_print (void)
{
  ACE_DEBUG((LM_DEBUG, "(value %d) \n",
             (CORBA::ULong) this->value_()));
}

Event_factory::~Event_factory ()
{
}

TAO_OBV_CREATE_RETURN_TYPE (Event)
Event_factory::create_for_unmarshal (void)
{
  return new Event_impl;
}