qpid/messaging/Address.h Source File

Apache Qpid - AMQP Messaging for Java JMS, C++, Python, Ruby, and .NET | Apache Qpid Documentation

- Main Page
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

qpid/messaging/Address.h
Go to the documentation of this file.

    00001 #ifndef QPID_MESSAGING_ADDRESS_H
    00002 #define QPID_MESSAGING_ADDRESS_H
    00003
    00004 /*
    00005  *
    00006  * Licensed to the Apache Software Foundation (ASF) under one
    00007  * or more contributor license agreements.  See the NOTICE file
    00008  * distributed with this work for additional information
    00009  * regarding copyright ownership.  The ASF licenses this file
    00010  * to you under the Apache License, Version 2.0 (the
    00011  * "License"); you may not use this file except in compliance
    00012  * with the License.  You may obtain a copy of the License at
    00013  *
    00014  *   http://www.apache.org/licenses/LICENSE-2.0
    00015  *
    00016  * Unless required by applicable law or agreed to in writing,
    00017  * software distributed under the License is distributed on an
    00018  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
    00019  * KIND, either express or implied.  See the License for the
    00020  * specific language governing permissions and limitations
    00021  * under the License.
    00022  *
    00023  */
    00024 #include "qpid/messaging/ImportExport.h"
    00025
    00026 #include "qpid/messaging/exceptions.h"
    00027 #include "qpid/types/Variant.h"
    00028
    00029 #include <string>
    00030 #include <ostream>
    00031
    00032 namespace qpid {
    00033 namespace messaging {
    00034
    00035 class AddressImpl;
    00036
    00122 class QPID_MESSAGING_CLASS_EXTERN Address
    00123 {
    00124   public:
    00125     QPID_MESSAGING_EXTERN Address();
    00126     QPID_MESSAGING_EXTERN Address(const std::string& address);
    00127     QPID_MESSAGING_EXTERN Address(const std::string& name, const std::string& subject,
    00128                                const qpid::types::Variant::Map& options, const std::string& type = "");
    00129     QPID_MESSAGING_EXTERN Address(const Address& address);
    00130     QPID_MESSAGING_EXTERN ~Address();
    00131     QPID_MESSAGING_EXTERN Address& operator=(const Address&);
    00132     QPID_MESSAGING_EXTERN const std::string& getName() const;
    00133     QPID_MESSAGING_EXTERN void setName(const std::string&);
    00134     QPID_MESSAGING_EXTERN const std::string& getSubject() const;
    00135     QPID_MESSAGING_EXTERN void setSubject(const std::string&);
    00136     QPID_MESSAGING_EXTERN const qpid::types::Variant::Map& getOptions() const;
    00137     QPID_MESSAGING_EXTERN qpid::types::Variant::Map& getOptions();
    00138     QPID_MESSAGING_EXTERN void setOptions(const qpid::types::Variant::Map&);
    00139
    00140     QPID_MESSAGING_EXTERN std::string getType() const;
    00149     QPID_MESSAGING_EXTERN void setType(const std::string&);
    00150
    00151     QPID_MESSAGING_EXTERN std::string str() const;
    00152     QPID_MESSAGING_EXTERN operator bool() const;
    00153     QPID_MESSAGING_EXTERN bool operator !() const;
    00154   private:
    00155     AddressImpl* impl;
    00156 };
    00157
    00158 #ifndef SWIG
    00159 QPID_MESSAGING_EXTERN std::ostream& operator<<(std::ostream& out, const Address& address);
    00160 #endif
    00161
    00162 }} // namespace qpid::messaging
    00163
    00164 #endif