PMatchScore.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2015-2018 Digital Barriers plc. All rights reserved.
3  * Contact: http://www.digitalbarriers.com/
4  *
5  * This file is part of the Papillon SDK.
6  *
7  * You can't use, modify or distribute any part of this file without
8  * the explicit written agreements of Digital Barriers.
9  */
10 
15 #pragma once
16 #include <PObject.h>
17 
18 PAPILLON_BEGIN_NAMESPACE
19 
20 class PGuid;
21 
27 class PAPILLON_API_CORE PMatchScore : public PObject
28 {
29 public:
33  PMatchScore();
34 
38  explicit PMatchScore(const PGuid& objectId1, const PGuid& objectId2, double score, double threshold = -1.0);
39 
43  PMatchScore(const PMatchScore& other);
44 
48  virtual ~PMatchScore();
49 
53  PMatchScore& operator=(const PMatchScore& other);
54 
58  void Reset();
59 
63  void Set(const PGuid& objectId1, const PGuid& objectId2, double score, double threshold);
64 
68  void SetScore(double score);
69 
73  double GetScore() const;
74 
78  void SetThreshold(double threshold);
79 
83  double GetThreshold() const;
84 
88  bool IsVerified() const;
89 
93  PGuid GetIdentityId1() const;
94 
98  PGuid GetIdentityId2() const;
99 
103  bool operator<(const PMatchScore& other) const;
104 
108  bool operator>(const PMatchScore& other) const;
109 };
110 
111 PAPILLON_END_NAMESPACE
The PObject class is the root class of all Papillon classes; all PObject behaves like shared referenc...
Definition: PObject.h:27
The PMatchScore class is used to represent a score between two descriptions.
Definition: PMatchScore.h:27
The PGuid class represents a Globally Unique Identifier (GUID); PGuid instances are immutable (thread...
Definition: PGuid.h:28
Class PObject: the root class of all Papillon classes.
PObject & operator=(const PObject &obj)
Performs a shared copy of other to this object.
Definition: PObject.h:45