activemq-cpp-3.6.0
Main Page
Namespaces
Data Structures
Files
File List
Globals
ActiveMQTopic.h
Go to the documentation of this file.
1
/*
2
* Licensed to the Apache Software Foundation (ASF) under one or more
3
* contributor license agreements. See the NOTICE file distributed with
4
* this work for additional information regarding copyright ownership.
5
* The ASF licenses this file to You under the Apache License, Version 2.0
6
* (the "License"); you may not use this file except in compliance with
7
* the License. You may obtain a copy of the License at
8
*
9
* http://www.apache.org/licenses/LICENSE-2.0
10
*
11
* Unless required by applicable law or agreed to in writing, software
12
* distributed under the License is distributed on an "AS IS" BASIS,
13
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
* See the License for the specific language governing permissions and
15
* limitations under the License.
16
*/
17
18
#ifndef _ACTIVEMQ_COMMANDS_ACTIVEMQTOPIC_H_
19
#define _ACTIVEMQ_COMMANDS_ACTIVEMQTOPIC_H_
20
21
// Turn off warning message for ignored exception specification
22
#ifdef _MSC_VER
23
#pragma warning( disable : 4290 )
24
#endif
25
26
#include <
activemq/util/Config.h
>
27
#include <
activemq/commands/ActiveMQDestination.h
>
28
#include <
activemq/exceptions/ActiveMQException.h
>
29
#include <
decaf/lang/Exception.h
>
30
#include <
cms/Topic.h
>
31
#include <vector>
32
#include <string>
33
#include <memory>
34
35
namespace
activemq{
36
namespace
commands{
37
38
class
AMQCPP_API
ActiveMQTopic
:
public
ActiveMQDestination
,
39
public
cms::Topic
{
40
public
:
41
42
const
static
unsigned
char
ID_ACTIVEMQTOPIC = 101;
43
44
private
:
45
46
ActiveMQTopic
(
const
ActiveMQTopic
& );
47
ActiveMQTopic
& operator= (
const
ActiveMQTopic
& );
48
49
public
:
50
51
ActiveMQTopic
();
52
ActiveMQTopic
(
const
std::string& name );
53
virtual
~
ActiveMQTopic
() throw();
54
55
virtual
unsigned
char
getDataStructureType()
const
;
56
57
virtual
ActiveMQTopic
* cloneDataStructure() const;
58
59
virtual
void
copyDataStructure( const
DataStructure
* src );
60
61
virtual std::
string
toString() const;
62
63
virtual
bool
equals( const
DataStructure
* value ) const;
64
65
virtual const cms::Destination* getCMSDestination()
const
{
66
return
this
;
67
}
68
69
public
:
// CMS Destination
70
71
virtual
cms::Destination::DestinationType
getDestinationType
()
const
{
72
return
cms::Destination::TOPIC
;
73
}
74
75
virtual
cms::Destination
*
clone
()
const
{
76
return
dynamic_cast<
cms::Destination
*
>
(
77
this->cloneDataStructure() );
78
}
79
80
virtual
void
copy
(
const
cms::Destination
& source ) {
81
this->copyDataStructure(
82
dynamic_cast<const DataStructure*>( &source ) );
83
}
84
85
virtual
const
cms::CMSProperties
&
getCMSProperties
()
const
{
86
return
this->getOptions();
87
}
88
89
virtual
bool
equals(
const
cms::Destination
& other )
const
;
90
91
public
:
// CMS Topic
92
93
virtual
std::string
getTopicName
()
const
{
94
return
this->getPhysicalName();
95
}
96
97
};
98
99
}}
100
101
#endif
/*#define _ACTIVEMQ_COMMANDS_ACTIVEMQTOPIC_H_*/
src
main
activemq
commands
ActiveMQTopic.h
Generated on Mon Mar 4 2013 10:25:45 for activemq-cpp-3.6.0 by
1.8.1.2