Apache Qpid - AMQP Messaging for Java JMS, C++, Python, Ruby, and .NET Apache Qpid Documentation
Agent.h
Go to the documentation of this file.
1 /*
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one
4  * or more contributor license agreements. See the NOTICE file
5  * distributed with this work for additional information
6  * regarding copyright ownership. The ASF licenses this file
7  * to you under the Apache License, Version 2.0 (the
8  * "License"); you may not use this file except in compliance
9  * with the License. You may obtain a copy of the License at
10  *
11  * http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied. See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  */
21 #ifndef _QPID_CONSOLE_AGENT_H_
22 #define _QPID_CONSOLE_AGENT_H_
23 
24 #include "qpid/console/Broker.h"
26 
27 namespace qpid {
28 namespace console {
29 
35  public:
36  typedef std::vector<Agent*> Vector;
37 
38  QPID_CONSOLE_INLINE_EXTERN Agent(Broker* _broker, uint32_t _bank, const std::string& _label) :
39  broker(_broker), brokerBank(broker->getBrokerBank()),
40  agentBank(_bank), label(_label) {}
42  QPID_CONSOLE_INLINE_EXTERN uint32_t getBrokerBank() const { return brokerBank; }
43  QPID_CONSOLE_INLINE_EXTERN uint32_t getAgentBank() const { return agentBank; }
44  QPID_CONSOLE_INLINE_EXTERN const std::string& getLabel() const { return label; }
45 
46  private:
47  Broker* broker;
48  const uint32_t brokerBank;
49  const uint32_t agentBank;
50  const std::string label;
51  };
52 
53  std::ostream& operator<<(std::ostream& o, const Agent& agent);
54 }
55 }
56 
57 
58 #endif

Qpid C++ API Reference
Generated on Fri Aug 29 2014 for Qpid C++ Client API by doxygen 1.8.3.1