comparison Plugin/Token.cpp @ 115:0eed78c1e177

cache the UserProfile + updated http filter logic
author Alain Mazy <am@osimis.io>
date Fri, 08 Sep 2023 09:52:21 +0200
parents 43154740ea2e
children 9be1ee2b8fe1
comparison
equal deleted inserted replaced
114:546aea509427 115:0eed78c1e177
25 Token::Token(TokenType type, 25 Token::Token(TokenType type,
26 const std::string& key) : 26 const std::string& key) :
27 type_(type), 27 type_(type),
28 key_(key) 28 key_(key)
29 { 29 {
30 if (key.empty())
31 {
32 throw Orthanc::OrthancException(Orthanc::ErrorCode_ParameterOutOfRange);
33 }
34 } 30 }
35 31
36 Token::Token(const Token& other) : 32 Token::Token(const Token& other) :
37 type_(other.GetType()), 33 type_(other.GetType()),
38 key_(other.GetKey()) 34 key_(other.GetKey())
39 { 35 {
40 if (key_.empty())
41 {
42 throw Orthanc::OrthancException(Orthanc::ErrorCode_ParameterOutOfRange);
43 }
44 } 36 }
45 37
46 } 38 }