diff options
Diffstat (limited to 'TAO/tao/PortableServer/LifespanStrategy.cpp')
-rw-r--r-- | TAO/tao/PortableServer/LifespanStrategy.cpp | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/TAO/tao/PortableServer/LifespanStrategy.cpp b/TAO/tao/PortableServer/LifespanStrategy.cpp new file mode 100644 index 00000000000..aea66e7161c --- /dev/null +++ b/TAO/tao/PortableServer/LifespanStrategy.cpp @@ -0,0 +1,52 @@ +// -*- C++ -*- + +//============================================================================= +/** + * @file LifespanStrategy.cpp + * + * $Id$ + * + */ +//============================================================================= + +#include "tao/PortableServer/LifespanStrategy.h" + +ACE_RCSID (PortableServer, + LifespanStrategy, + "$Id$") + +TAO_BEGIN_VERSIONED_NAMESPACE_DECL + +namespace TAO +{ + namespace Portable_Server + { + LifespanStrategy::LifespanStrategy () : + poa_ (0) + { + } + + void + LifespanStrategy::strategy_init ( + TAO_Root_POA *poa + ACE_ENV_ARG_DECL_NOT_USED) + { + poa_ = poa; + } + + void + LifespanStrategy::strategy_cleanup( + ACE_ENV_SINGLE_ARG_DECL_NOT_USED) + { + poa_ = 0; + } + + CORBA::ULong + LifespanStrategy::key_type_length (void) const + { + return sizeof (char); + } + } /* namespace Portable_Server */ +} /* namespace TAO */ + +TAO_END_VERSIONED_NAMESPACE_DECL |