00001 // -*- C++ -*- 00002 00003 //============================================================================= 00004 /** 00005 * @file Collocation_Resolver.h 00006 * 00007 * $Id: Collocation_Resolver.h 79115 2007-07-31 10:55:14Z johnnyw $ 00008 * 00009 * @author Irfan Pyarali 00010 */ 00011 // =================================================================== 00012 00013 #ifndef TAO_COLLOCATION_RESOLVER_H 00014 #define TAO_COLLOCATION_RESOLVER_H 00015 00016 #include /**/ "ace/pre.h" 00017 00018 #include /**/ "tao/TAO_Export.h" 00019 00020 #if !defined (ACE_LACKS_PRAGMA_ONCE) 00021 # pragma once 00022 #endif /* ACE_LACKS_PRAGMA_ONCE */ 00023 00024 #include "tao/Basic_Types.h" 00025 00026 #include "ace/Service_Object.h" 00027 00028 TAO_BEGIN_VERSIONED_NAMESPACE_DECL 00029 00030 namespace CORBA 00031 { 00032 class Object; 00033 typedef Object *Object_ptr; 00034 } 00035 00036 /** 00037 * @class TAO_Collocation_Resolver 00038 * 00039 * @brief This class helps in resolving if a CORBA:Object is collocated. 00040 * 00041 * \nosubgrouping 00042 * 00043 **/ 00044 class TAO_Export TAO_Collocation_Resolver 00045 : public ACE_Service_Object 00046 { 00047 public: 00048 00049 /// Destructor. 00050 virtual ~TAO_Collocation_Resolver (void); 00051 00052 /// Is @a object collocated? 00053 virtual CORBA::Boolean is_collocated (CORBA::Object_ptr object) const = 0; 00054 }; 00055 00056 TAO_END_VERSIONED_NAMESPACE_DECL 00057 00058 #include /**/ "ace/post.h" 00059 00060 #endif /* TAO_COLLOCATION_RESOLVER_H */