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
00031 class SessionId : boost::totally_ordered1<SessionId> {
00032 std::string userId;
00033 std::string name;
00034 public:
00035 SessionId(const std::string& userId=std::string(), const std::string& name=std::string());
00036 std::string getUserId() const { return userId; }
00037 std::string getName() const { return name; }
00038 bool operator<(const SessionId&) const ;
00039 bool operator==(const SessionId& id) const;
00040
00041 std::string str() const;
00042 };
00043
00044 std::ostream& operator<<(std::ostream&, const SessionId&);
00045
00046
00047 }
00048
00049 #endif