Loading...
Searching...
No Matches
target.hpp
Go to the documentation of this file.
#ifndef PROTON_TARGET_HPP
#define PROTON_TARGET_HPP
/*
*
* 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.
*
*/
#include "./fwd.hpp"
#include "./internal/export.hpp"
#include "./terminus.hpp"
#include <string>
struct pn_terminus_t;
namespace proton {
namespace internal {
template <class T> class factory;
}
class target : public terminus {
public:
target() = default;
using terminus::durability_mode;
using terminus::expiry_policy;
PN_CPP_EXTERN std::string address() const;
private:
target(pn_terminus_t* t);
target(const sender&);
target(const receiver&);
friend class internal::factory<target>;
friend class sender;
friend class receiver;
};
} // proton
#endif // PROTON_TARGET_HPP
proton::map
A collection of key-value pairs.
Definition map.hpp:69
proton::receiver
A channel for receiving messages.
Definition receiver.hpp:41
proton::sender
A channel for sending messages.
Definition sender.hpp:40
proton::target
A destination for messages.
Definition target.hpp:45
proton::target::address
std::string address() const
The address of the target.
proton::target::target
target()=default
Create an empty target.
proton::terminus
One end of a link, either a source or a target.
Definition terminus.hpp:53
proton::terminus::expiry_policy
expiry_policy
When expiration of the source or target begins.
Definition terminus.hpp:74
proton::terminus::durability_mode
durability_mode
The persistence mode of the source or target.
Definition terminus.hpp:64
fwd.hpp
Forward declarations.
proton
The main Proton namespace.
Definition annotation_key.hpp:33
terminus.hpp
One end of a link, either a source or a target.