COVISE Core
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
SessionID.h
Go to the documentation of this file.
1 /* This file is part of COVISE.
2 
3  You can use it under the terms of the GNU Lesser General Public License
4  version 2.1 or later, see lgpl-2.1.txt.
5 
6  * License: LGPL 2+ */
7 
10 #ifndef SESSION_H
11 #define SESSION_H
12 
13 #include <string>
14 #include <util/coExport.h>
15 namespace covise {
16 class TokenBuffer;
17 }
18 namespace vrb {
20 
21 public:
22  SessionID();
23  SessionID(int id, bool isPrivate = true);
24  SessionID(int id, const std::string &name, bool isPrivate = true);
25  SessionID(const SessionID &id);
26 
27  std::string name() const;
28  bool isPrivate()const ;
29  int owner() const;
30  void setOwner(int id);
31  void setName(const std::string &name);
32  void setPrivate(bool isPrivate);
33  bool operator ==(const SessionID &other) const;
34  bool operator !=(const SessionID &other) const;
35  bool operator <(const SessionID &other) const;
36  SessionID &operator=(const SessionID &other);
37  SessionID &operator=(const int other) = delete;
38  std::string toText() const;
39 private:
40  int m_owner = 0;
41  std::string m_name = "";
42  bool m_isPrivate = true;
43 };
46 }
47 
48 #endif // !SESSION_H
INLINE bool operator<(const coObjID &a, const coObjID &b)
Definition: coObjID.h:146
covise::TokenBuffer & operator>>(covise::TokenBuffer &tb, vrb::SessionID &id)
Definition: SessionID.cpp:119
GLsizei const GLchar *const * string
Definition: khronos-glext.h:6750
INLINE bool operator!=(const coObjID &a, const coObjID &b)
Definition: coObjID.h:171
Definition: SessionID.h:19
GLuint const GLchar * name
Definition: khronos-glext.h:6722
covise::TokenBuffer & operator<<(covise::TokenBuffer &tb, const vrb::SessionID &id)
Definition: SessionID.cpp:111
#define VRBEXPORT
Definition: coExport.h:81
INLINE bool operator==(const coObjID &a, const coObjID &b)
Definition: coObjID.h:166
Definition: tokenbuffer.h:74