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
SessionId.h
Go to the documentation of this file.
1
#ifndef QPID_SESSIONID_H
2
#define QPID_SESSIONID_H
3
4
/*
5
*
6
* Licensed to the Apache Software Foundation (ASF) under one
7
* or more contributor license agreements. See the NOTICE file
8
* distributed with this work for additional information
9
* regarding copyright ownership. The ASF licenses this file
10
* to you under the Apache License, Version 2.0 (the
11
* "License"); you may not use this file except in compliance
12
* with the License. You may obtain a copy of the License at
13
*
14
* http://www.apache.org/licenses/LICENSE-2.0
15
*
16
* Unless required by applicable law or agreed to in writing,
17
* software distributed under the License is distributed on an
18
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
19
* KIND, either express or implied. See the License for the
20
* specific language governing permissions and limitations
21
* under the License.
22
*
23
*/
24
25
#include <boost/operators.hpp>
26
#include <string>
27
#include <
qpid/CommonImportExport.h
>
28
29
namespace
qpid {
30
42
class
SessionId
: boost::totally_ordered1<SessionId> {
43
std::string userId;
44
std::string name;
45
public
:
46
QPID_COMMON_EXTERN
SessionId
(
const
std::string& userId=std::string(),
const
std::string& name=std::string());
47
std::string
getUserId
()
const
{
return
userId; }
48
std::string
getName
()
const
{
return
name; }
49
QPID_COMMON_EXTERN
bool
operator<
(
const
SessionId&)
const
;
50
QPID_COMMON_EXTERN
bool
operator==
(
const
SessionId&
id
)
const
;
51
// Convert to a string
52
QPID_COMMON_EXTERN
std::string
str
()
const
;
53
};
54
55
QPID_COMMON_EXTERN
std::ostream&
operator<<
(std::ostream&,
const
SessionId&);
56
57
58
}
// namespace qpid
59
60
#endif
Qpid C++ API Reference
Generated on Tue Mar 26 2013 for Qpid C++ Client API by
1.8.3.1