SourceXtractorPlusPlus  0.15
Please provide a description of the project.
SourceID.h
Go to the documentation of this file.
1 
17 /*
18  * SourceID.h
19  *
20  * Created on: May 30, 2018
21  * Author: mschefer
22  */
23 
24 #ifndef _SEIMPLEMENTATION_PLUGIN_SOURCEIDS_SOURCEID_H_
25 #define _SEIMPLEMENTATION_PLUGIN_SOURCEIDS_SOURCEID_H_
26 
27 
28 #include "SEUtils/Types.h"
30 
31 namespace SourceXtractor {
32 
33 class SourceID : public Property {
34 public:
35 
36  virtual ~SourceID() = default;
37 
38  SourceID(unsigned int id, unsigned int detection_id) : m_id(id), m_detection_id(detection_id) {}
39 
40  int getId() const {
41  return m_id;
42  }
43 
44  int getDetectionId() const {
45  return m_detection_id;
46  }
47 
48 
49 private:
50  unsigned int m_id;
51  unsigned int m_detection_id;
52 };
53 
54 } /* namespace SourceXtractor */
55 
56 
57 
58 #endif /* _SEIMPLEMENTATION_PLUGIN_SOURCEIDS_SOURCEID_H_ */
Base class for all Properties. (has no actual content)
Definition: Property.h:33
virtual ~SourceID()=default
SourceID(unsigned int id, unsigned int detection_id)
Definition: SourceID.h:38
unsigned int m_id
Definition: SourceID.h:50
unsigned int m_detection_id
Definition: SourceID.h:51
int getDetectionId() const
Definition: SourceID.h:44