session_options.hpp
#ifndef PROTON_SESSION_OPTIONS_HPP
#define PROTON_SESSION_OPTIONS_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 "./internal/config.hpp"
#include "./internal/export.hpp"
#include "./internal/pn_unique_ptr.hpp"
#include "./types.hpp"
namespace proton {
class messaging_handler;
class session;
// XXX Does this need the CLASS_EXTERN stuff? - Add just for consistency
class session_options {
public:
PN_CPP_EXTERN session_options();
PN_CPP_EXTERN session_options(const session_options&);
PN_CPP_EXTERN ~session_options();
PN_CPP_EXTERN session_options& operator=(const session_options&);
PN_CPP_EXTERN session_options& handler(class messaging_handler &);
// Other useful session configuration TBD.
private:
void apply(session&) const;
class impl;
internal::pn_unique_ptr<impl> impl_;
friend class session;
};
} // proton
#endif // PROTON_SESSION_OPTIONS_HPP
proton::session_options::operator=
session_options & operator=(const session_options &)
Copy options.
types.hpp
Include the definitions of all proton types used to represent AMQP types.
proton::session_options::handler
session_options & handler(class messaging_handler &)
Set a messaging_handler for the session.
proton::session
A container of senders and receivers.
Definition: session.hpp:46
proton::messaging_handler
A handler for Proton messaging events.
Definition: messaging_handler.hpp:74
proton::session_options
Options for creating a session.
Definition: session_options.hpp:42
proton
Type traits for mapping between AMQP and C++ types.
Definition: annotation_key.hpp:28
proton::session_options::session_options
session_options()
Create an empty set of options.