TAO::Portable_Server::IdUniquenessStrategyUniqueFactoryImpl Class Reference

#include <IdUniquenessStrategyUniqueFactoryImpl.h>

Inheritance diagram for TAO::Portable_Server::IdUniquenessStrategyUniqueFactoryImpl:

Inheritance graph
[legend]
Collaboration diagram for TAO::Portable_Server::IdUniquenessStrategyUniqueFactoryImpl:

Collaboration graph
[legend]
List of all members.

Public Member Functions

virtual IdUniquenessStrategycreate (::PortableServer::IdUniquenessPolicyValue value)
 Create a new strategy.
virtual void destroy (IdUniquenessStrategy *strategy)
 Cleanup the given strategy instance.

Detailed Description

Definition at line 32 of file IdUniquenessStrategyUniqueFactoryImpl.h.


Member Function Documentation

IdUniquenessStrategy * TAO::Portable_Server::IdUniquenessStrategyUniqueFactoryImpl::create ( ::PortableServer::IdUniquenessPolicyValue  value  )  [virtual]

Create a new strategy.

Implements TAO::Portable_Server::IdUniquenessStrategyFactory.

Definition at line 18 of file IdUniquenessStrategyUniqueFactoryImpl.cpp.

References ACE_ERROR, ACE_NEW_RETURN, and LM_ERROR.

00020     {
00021       IdUniquenessStrategy* strategy = 0;
00022 
00023       switch (value)
00024       {
00025         case ::PortableServer::UNIQUE_ID :
00026         {
00027           ACE_NEW_RETURN (strategy, IdUniquenessStrategyUnique, 0);
00028           break;
00029         }
00030         case ::PortableServer::MULTIPLE_ID :
00031         {
00032           ACE_ERROR ((LM_ERROR, "Incorrect type in IdUniquenessStrategyUniqueFactoryImpl"));
00033           break;
00034         }
00035       }
00036 
00037       return strategy;
00038     }

void TAO::Portable_Server::IdUniquenessStrategyUniqueFactoryImpl::destroy ( IdUniquenessStrategy strategy  )  [virtual]

Cleanup the given strategy instance.

Implements TAO::Portable_Server::IdUniquenessStrategyFactory.

Definition at line 41 of file IdUniquenessStrategyUniqueFactoryImpl.cpp.

References TAO::Portable_Server::Policy_Strategy::strategy_cleanup().

00044     {
00045       strategy->strategy_cleanup ();
00046 
00047       delete strategy;
00048     }


The documentation for this class was generated from the following files:
Generated on Tue Feb 2 17:41:41 2010 for TAO_PortableServer by  doxygen 1.4.7