comparison Plugin/Token.h @ 193:7bec4de04c91

fix LSB build
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 05 Jun 2024 15:48:26 +0200
parents 55435a4dd2c6
children
comparison
equal deleted inserted replaced
192:ccfd44ec3c9b 193:7bec4de04c91
20 20
21 #pragma once 21 #pragma once
22 22
23 #include "Enumerations.h" 23 #include "Enumerations.h"
24 24
25 #include <boost/noncopyable.hpp>
26
27 namespace OrthancPlugins 25 namespace OrthancPlugins
28 { 26 {
29 class Token : public boost::noncopyable 27 class Token
30 { 28 {
31 private: 29 private:
32 TokenType type_; 30 TokenType type_;
33 std::string key_; 31 std::string key_;
34 32
47 { 45 {
48 return key_; 46 return key_;
49 } 47 }
50 48
51 // required to use this class in std::set 49 // required to use this class in std::set
52 bool operator< (const Token &right) const 50 bool operator< (const Token &right) const;
53 {
54 if (type_ != right.type_)
55 {
56 return type_ < right.type_;
57 }
58 else
59 {
60 return key_ < right.key_ ;
61 }
62 }
63 }; 51 };
64 } 52 }