00001 /*------------------------------------------------------------------------------ 00002 Name: CallbackAddress.h 00003 Project: xmlBlaster.org 00004 Copyright: xmlBlaster.org, see xmlBlaster-LICENSE file 00005 Comment: Holding callback address std::string and protocol std::string 00006 Version: $Id: CallbackAddress.h 12937 2004-11-24 20:15:11Z ruff $ 00007 ------------------------------------------------------------------------------*/ 00008 00023 #ifndef _UTIL_CFG_CALLBACKADDRESS_H 00024 #define _UTIL_CFG_CALLBACKADDRESS_H 00025 00026 #include <util/xmlBlasterDef.h> 00027 #include <util/qos/address/AddressBase.h> 00028 #include <string> 00029 00030 namespace org { namespace xmlBlaster { namespace util { namespace qos { namespace address { 00031 00032 class Dll_Export CallbackAddress : public org::xmlBlaster::util::qos::address::AddressBase 00033 { 00034 private: 00035 00039 inline void initialize(); 00040 00041 public: 00042 00053 CallbackAddress(org::xmlBlaster::util::Global& global, const std::string& type="", const std::string nodeId=""); 00054 00058 CallbackAddress(const org::xmlBlaster::util::qos::address::AddressBase& addr); 00059 00063 CallbackAddress& operator =(const org::xmlBlaster::util::qos::address::AddressBase& addr); 00064 00069 bool useForSubjectQueue(); 00070 00075 void useForSubjectQueue(bool useForSubjectQueue); 00076 00078 std::string toString(); 00079 00083 std::string usage(); 00084 }; 00085 00086 }}}}} // namespace 00087 00088 #endif