diff options
| author | Alan Conway <aconway@apache.org> | 2010-10-14 19:38:40 +0000 |
|---|---|---|
| committer | Alan Conway <aconway@apache.org> | 2010-10-14 19:38:40 +0000 |
| commit | 23204010207ad7db58500b6547b92b7f91d2df53 (patch) | |
| tree | ffa680168fd8d4c04a3b3bcad0472d1a920985b7 /cpp/src/qpid/broker/Link.h | |
| parent | 0be15c353c4cdc2612757fa4c877e5bb42e0228d (diff) | |
| download | qpid-python-23204010207ad7db58500b6547b92b7f91d2df53.tar.gz | |
Code cleanup in broker directory.
- Removed un-necessary #includes for broker/Queue.h
- Removed "using std::string" in header files.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1022679 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/broker/Link.h')
| -rw-r--r-- | cpp/src/qpid/broker/Link.h | 29 |
1 files changed, 14 insertions, 15 deletions
diff --git a/cpp/src/qpid/broker/Link.h b/cpp/src/qpid/broker/Link.h index 9da610076b..bd74fe2a2f 100644 --- a/cpp/src/qpid/broker/Link.h +++ b/cpp/src/qpid/broker/Link.h @@ -37,7 +37,6 @@ namespace qpid { namespace broker { - using std::string; class LinkRegistry; class Broker; class Connection; @@ -47,13 +46,13 @@ namespace qpid { sys::Mutex lock; LinkRegistry* links; MessageStore* store; - string host; + std::string host; uint16_t port; - string transport; + std::string transport; bool durable; - string authMechanism; - string username; - string password; + std::string authMechanism; + std::string username; + std::string password; mutable uint64_t persistenceId; qmf::org::apache::qpid::broker::Link* mgmtObject; Broker* broker; @@ -93,13 +92,13 @@ namespace qpid { Link(LinkRegistry* links, MessageStore* store, - string& host, + std::string& host, uint16_t port, - string& transport, + std::string& transport, bool durable, - string& authMechanism, - string& username, - string& password, + std::string& authMechanism, + std::string& username, + std::string& password, Broker* broker, management::Manageable* parent = 0); virtual ~Link(); @@ -117,9 +116,9 @@ namespace qpid { void setConnection(Connection*); // Set pointer to the AMQP Connection void reconnect(const Address&); //called by LinkRegistry - string getAuthMechanism() { return authMechanism; } - string getUsername() { return username; } - string getPassword() { return password; } + std::string getAuthMechanism() { return authMechanism; } + std::string getUsername() { return username; } + std::string getPassword() { return password; } Broker* getBroker() { return broker; } void notifyConnectionForced(const std::string text); @@ -130,7 +129,7 @@ namespace qpid { uint64_t getPersistenceId() const { return persistenceId; } uint32_t encodedSize() const; void encode(framing::Buffer& buffer) const; - const string& getName() const; + const std::string& getName() const; static Link::shared_ptr decode(LinkRegistry& links, framing::Buffer& buffer); |
