00001 #ifndef QPID_SESSIONID_H
00002 #define QPID_SESSIONID_H
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025 #include <boost/operators.hpp>
00026 #include <string>
00027
00028 namespace qpid {
00029
00041 class SessionId : boost::totally_ordered1<SessionId> {
00042 std::string userId;
00043 std::string name;
00044 public:
00045 SessionId(const std::string& userId=std::string(), const std::string& name=std::string());
00046 std::string getUserId() const { return userId; }
00047 std::string getName() const { return name; }
00048 bool operator<(const SessionId&) const ;
00049 bool operator==(const SessionId& id) const;
00050
00051 std::string str() const;
00052 };
00053
00054 std::ostream& operator<<(std::ostream&, const SessionId&);
00055
00056
00057 }
00058
00059 #endif