Medical Imaging Interaction Toolkit  2022.04.99-194dd5d8
Medical Imaging Interaction Toolkit
mitkISemanticRelationsObserver.h
Go to the documentation of this file.
1 /*============================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center (DKFZ)
6 All rights reserved.
7 
8 Use of this source code is governed by a 3-clause BSD license that can be
9 found in the LICENSE file.
10 
11 ============================================================================*/
12 
13 #ifndef MITKISEMANTICRELATIONSOBSERVER_H
14 #define MITKISEMANTICRELATIONSOBSERVER_H
15 
16 #include "mitkSemanticTypes.h"
17 
18 namespace mitk
19 {
20  /*
21  * @brief This interface declares a functions each observer has to implement
22  * in order to be notified in the 'Observer pattern' sense.
23  */
25  {
26  public:
27  /*
28  * @brief Updates the concrete observer.
29  * The caseID can be used to get access to a certain patient (case),
30  * whose data should be used for updating.
31  *
32  * @param caseID The current case ID to identify the currently active patient / case.
33  */
34  virtual void Update(const mitk::SemanticTypes::CaseID& caseID) = 0;
35 
36  }; // class ISemanticRelationsObserver
37 } // namespace mitk
38 
39 #endif // MITKISEMANTICRELATIONSOBSERVER_H
DataCollection - Class to facilitate loading/accessing structured data.
virtual void Update(const mitk::SemanticTypes::CaseID &caseID)=0