diff options
author | nobody <nobody@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-10-15 04:23:40 +0000 |
---|---|---|
committer | nobody <nobody@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-10-15 04:23:40 +0000 |
commit | b608d1066a61c3793c879266c93ab0a97b063f4c (patch) | |
tree | 330242725b8b5a464aa612d38ebc38821d20a08d /TAO/examples/Quoter/Quoter_i.h | |
parent | 43d57c766dfd3d460d9d20264482dfe3a5b1279b (diff) | |
download | ATCD-ACE-4_5_55.tar.gz |
This commit was manufactured by cvs2svn to create tag 'ACE-4_5_55'.ACE-4_5_55
Diffstat (limited to 'TAO/examples/Quoter/Quoter_i.h')
-rw-r--r-- | TAO/examples/Quoter/Quoter_i.h | 108 |
1 files changed, 0 insertions, 108 deletions
diff --git a/TAO/examples/Quoter/Quoter_i.h b/TAO/examples/Quoter/Quoter_i.h deleted file mode 100644 index aa835cad233..00000000000 --- a/TAO/examples/Quoter/Quoter_i.h +++ /dev/null @@ -1,108 +0,0 @@ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// TAO/tests/Quoter -// -// = FILENAME -// Quoter_i.h -// -// = AUTHOR -// Darrell Brunsch -// -// ============================================================================ - -#if !defined (QUOTER_IMPL_H) -#define QUOTER_IMPL_H - -#include "QuoterS.h" - -// Forward declaration. -class Quoter_i; - -// Typedefs. -typedef Quoter_i *Quoter_i_ptr; -typedef Quoter_i_ptr Quoter_i_ref; - -class Quoter_i: public POA_Stock::Quoter -{ - // = TITLE - // Quoter_i - // - // = DESCRIPTION - // Actual Quoter Implementation class. Returns a quoter for a given stock - // and provides an example for the lifecycle functionality. -public: - Quoter_i (const char *obj_name = "", - const unsigned char use_LifeCycle_Service = 0, - PortableServer::POA_ptr poa_ptr = 0); - // Constructor (use_LifeCycle_Service is 1 if the LifeCycle_Service should be used - // instead of the Quoter Generic_Factory - - ~Quoter_i (void); - // Destructor - - virtual CORBA::Long get_quote (const char *stock_name, - CORBA::Environment &env); - // Returns the current quote for the stock <stock_name> - - // = Lifecycle methods - - virtual CosLifeCycle::LifeCycleObject_ptr copy (CosLifeCycle::FactoryFinder_ptr there, - const CosLifeCycle::Criteria &the_criteria, - CORBA::Environment &_tao_environment); - // Make a copy of this object - - virtual void move (CosLifeCycle::FactoryFinder_ptr there, - const CosLifeCycle::Criteria &the_criteria, - CORBA::Environment &_tao_environment); - // Move this object using <there> - - virtual void remove (CORBA::Environment &_tao_environment); - // Removes the object. - -private: - unsigned char use_LifeCycle_Service_; - // This flag defines if a Generic Factory is used (0 by default) or - // the more sophisticated LifeCycle Service (1) - - PortableServer::POA_var poa_var_; - // Keep a reference to the POA for use by the move operation -}; - -// Forward declaration. -class Quoter_Factory_i; - -typedef Quoter_Factory_i *Quoter_Factory_i_ptr; - -class Quoter_Factory_i: public POA_Stock::Quoter_Factory -{ - // = TITLE - // Quoter_Factory_i - // - // = DESCRIPTION - // Factory object returning the quoter_impl objrefs. -public: - Quoter_Factory_i (size_t num, PortableServer::POA_ptr poa_ptr); - // Constructor that takes in the number of quoters in the pool. - - ~Quoter_Factory_i (void); - // Destructor. - - virtual Stock::Quoter_ptr create_quoter (const char *name, - CORBA::Environment &env); - // Return the quoter by the id <name>. - -private: - Quoter_i **my_quoters_; - // Array of quoters. - - size_t quoter_num_; - // Number of quoters. - - size_t next_quoter_; - // Which quoter to return next. -}; - -#endif /* QUOTER_IMPL_H */ |