/
DiscoveryEvent.h
115 lines (91 loc) · 3.71 KB
/
DiscoveryEvent.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef _ACTIVEMQ_COMMANDS_DISCOVERYEVENT_H_
#define _ACTIVEMQ_COMMANDS_DISCOVERYEVENT_H_
// Turn off warning message for ignored exception specification
#ifdef _MSC_VER
#pragma warning( disable : 4290 )
#endif
#include <activemq/commands/BaseDataStructure.h>
#include <activemq/util/Config.h>
#include <decaf/lang/Pointer.h>
#include <string>
#include <vector>
namespace activemq{
namespace commands{
using decaf::lang::Pointer;
/*
*
* Command code for OpenWire format for DiscoveryEvent
*
* NOTE!: This file is auto generated - do not modify!
* if you need to make a change, please see the Java Classes
* in the activemq-cpp-openwire-generator module
*
*/
class AMQCPP_API DiscoveryEvent : public BaseDataStructure {
protected:
std::string serviceName;
std::string brokerName;
public:
const static unsigned char ID_DISCOVERYEVENT = 40;
protected:
DiscoveryEvent( const DiscoveryEvent& other AMQCPP_UNUSED ) {};
DiscoveryEvent& operator= ( const DiscoveryEvent& other AMQCPP_UNUSED ) { return *this; };
public:
DiscoveryEvent();
virtual ~DiscoveryEvent();
/**
* Get the unique identifier that this object and its own
* Marshaler share.
* @returns new DataStructure type copy.
*/
virtual unsigned char getDataStructureType() const;
/**
* Clone this object and return a new instance that the
* caller now owns, this will be an exact copy of this one
* @returns new copy of this object.
*/
virtual DiscoveryEvent* cloneDataStructure() const;
/**
* Copy the contents of the passed object into this object's
* members, overwriting any existing data.
* @param src - Source Object
*/
virtual void copyDataStructure( const DataStructure* src );
/**
* Returns a string containing the information for this DataStructure
* such as its type and value of its elements.
* @return formatted string useful for debugging.
*/
virtual std::string toString() const;
/**
* Compares the DataStructure passed in to this one, and returns if
* they are equivalent. Equivalent here means that they are of the
* same type, and that each element of the objects are the same.
* @returns true if DataStructure's are Equal.
*/
virtual bool equals( const DataStructure* value ) const;
virtual const std::string& getServiceName() const;
virtual std::string& getServiceName();
virtual void setServiceName( const std::string& serviceName );
virtual const std::string& getBrokerName() const;
virtual std::string& getBrokerName();
virtual void setBrokerName( const std::string& brokerName );
};
}}
#endif /*_ACTIVEMQ_COMMANDS_DISCOVERYEVENT_H_*/