LifespanStrategyTransient.h

Go to the documentation of this file.
00001 // -*- C++ -*-
00002 
00003 //=============================================================================
00004 /**
00005  *  @file LifespanStrategyTransient.h
00006  *
00007  *  $Id: LifespanStrategyTransient.h 76551 2007-01-24 13:42:44Z johnnyw $
00008  *
00009  *  @author  Johnny Willemsen  <jwillemsen@remedy.nl>
00010  */
00011 //=============================================================================
00012 
00013 #ifndef TAO_LIFESPANSTRATEGYTRANSIENT_H
00014 #define TAO_LIFESPANSTRATEGYTRANSIENT_H
00015 #include /**/ "ace/pre.h"
00016 
00017 #include "tao/PortableServer/LifespanStrategy.h"
00018 
00019 #if !defined (ACE_LACKS_PRAGMA_ONCE)
00020 # pragma once
00021 #endif /* ACE_LACKS_PRAGMA_ONCE */
00022 
00023 #include "tao/PortableServer/Creation_Time.h"
00024 #include "tao/Object_KeyC.h"
00025 
00026 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
00027 
00028 namespace TAO
00029 {
00030   namespace Portable_Server
00031   {
00032     class LifespanStrategyTransient
00033       : public LifespanStrategy
00034     {
00035     public:
00036       LifespanStrategyTransient (void);
00037 
00038       virtual void notify_startup (void);
00039 
00040       virtual void notify_shutdown (void);
00041 
00042       char key_type (void) const;
00043 
00044       virtual CORBA::Boolean is_persistent (void) const;
00045 
00046       CORBA::ULong key_length (void) const;
00047 
00048       virtual void create_key (CORBA::Octet *buffer, CORBA::ULong& starting_at);
00049 
00050       virtual
00051       bool validate (CORBA::Boolean is_persistent,
00052                      const TAO::Portable_Server::Temporary_Creation_Time& creation_time) const;
00053 
00054       /// Check the state of the POA.
00055       virtual void check_state (void);
00056 
00057       virtual ::PortableServer::LifespanPolicyValue type() const;
00058 
00059       virtual bool use_imr () const;
00060 
00061     private:
00062       TAO::Portable_Server::Creation_Time creation_time_;
00063     };
00064   } /* namespace Portable_Server */
00065 } /* namespace TAO */
00066 
00067 TAO_END_VERSIONED_NAMESPACE_DECL
00068 
00069 #include /**/ "ace/post.h"
00070 #endif /* TAO_LIFESPANSTRATEGYTRANSIENT_H */

Generated on Tue Feb 2 17:40:54 2010 for TAO_PortableServer by  doxygen 1.4.7