00001 // -*- C++ -*- 00002 00003 //============================================================================= 00004 /** 00005 * @file Default_Collocation_Resolver.h 00006 * 00007 * $Id: Default_Collocation_Resolver.h 76551 2007-01-24 13:42:44Z johnnyw $ 00008 * 00009 * @author Irfan Pyarali 00010 */ 00011 // =================================================================== 00012 00013 #ifndef TAO_DEFAULT_COLLOCATION_RESOLVER_H 00014 #define TAO_DEFAULT_COLLOCATION_RESOLVER_H 00015 00016 #include /**/ "ace/pre.h" 00017 #include "ace/Service_Config.h" 00018 00019 #if !defined (ACE_LACKS_PRAGMA_ONCE) 00020 # pragma once 00021 #endif /* ACE_LACKS_PRAGMA_ONCE */ 00022 00023 #include "tao/Collocation_Resolver.h" 00024 00025 TAO_BEGIN_VERSIONED_NAMESPACE_DECL 00026 00027 /** 00028 * @class TAO_Default_Collocation_Resolver 00029 * 00030 * @brief Simple resolver used to decide if a CORBA::Object is 00031 * collocated. 00032 * 00033 * \nosubgrouping 00034 * 00035 **/ 00036 class TAO_Export TAO_Default_Collocation_Resolver : 00037 public TAO_Collocation_Resolver 00038 { 00039 public: 00040 00041 /// Is @a object collocated? 00042 virtual CORBA::Boolean is_collocated (CORBA::Object_ptr object 00043 ) const; 00044 }; 00045 00046 TAO_END_VERSIONED_NAMESPACE_DECL 00047 00048 ACE_STATIC_SVC_DECLARE_EXPORT (TAO, TAO_Default_Collocation_Resolver) 00049 ACE_FACTORY_DECLARE (TAO, TAO_Default_Collocation_Resolver) 00050 00051 #include /**/ "ace/post.h" 00052 00053 #endif /* TAO_DEFAULT_COLLOCATION_RESOLVER_H */