00001 // -*- C++ -*- 00002 00003 //============================================================================= 00004 /** 00005 * @file Collocation_Resolver.h 00006 * 00007 * Collocation_Resolver.h,v 1.12 2005/11/02 07:13:02 ossama Exp 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 #include "ace/CORBA_macros.h" 00028 00029 TAO_BEGIN_VERSIONED_NAMESPACE_DECL 00030 00031 namespace CORBA 00032 { 00033 class Object; 00034 typedef Object *Object_ptr; 00035 00036 class Environment; 00037 } 00038 00039 /** 00040 * @class TAO_Collocation_Resolver 00041 * 00042 * @brief This class helps in resolving if a CORBA:Object is collocated. 00043 * 00044 * \nosubgrouping 00045 * 00046 **/ 00047 class TAO_Export TAO_Collocation_Resolver 00048 : public ACE_Service_Object 00049 { 00050 public: 00051 00052 /// Destructor. 00053 virtual ~TAO_Collocation_Resolver (void); 00054 00055 /// Is @a object collocated? 00056 virtual CORBA::Boolean is_collocated (CORBA::Object_ptr object 00057 ACE_ENV_ARG_DECL) const = 0; 00058 }; 00059 00060 TAO_END_VERSIONED_NAMESPACE_DECL 00061 00062 #include /**/ "ace/post.h" 00063 00064 #endif /* TAO_COLLOCATION_RESOLVER_H */