00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #ifndef _CMS_DESTINATION_H_
00019 #define _CMS_DESTINATION_H_
00020
00021 #include <cms/CMSProperties.h>
00022 #include <cms/Config.h>
00023
00024 #include <string>
00025
00026 namespace cms {
00027
00039 class CMS_API Destination {
00040 public:
00041
00042 enum DestinationType {
00043 TOPIC,
00044 QUEUE,
00045 TEMPORARY_TOPIC,
00046 TEMPORARY_QUEUE
00047 };
00048
00049 public:
00050
00051 virtual ~Destination();
00052
00058 virtual DestinationType getDestinationType() const = 0;
00059
00066 virtual cms::Destination* clone() const = 0;
00067
00074 virtual void copy(const cms::Destination& source) = 0;
00075
00085 virtual bool equals(const cms::Destination& other) const = 0;
00086
00094 virtual const CMSProperties& getCMSProperties() const = 0;
00095
00096 };
00097 }
00098
00099 #endif