Medical Imaging Interaction Toolkit  2018.4.99-b5518f0d
Medical Imaging Interaction Toolkit
berryElementHandler.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 BERRYELEMENTHANDLER_H_
14 #define BERRYELEMENTHANDLER_H_
15 
16 #include <berryObject.h>
17 
19 
20 namespace Poco {
21 namespace XML {
22 class Element;
23 }
24 }
25 
26 namespace berry {
27 
28 struct IConfigurationElement;
29 
30 class CompositeExpression;
31 class Expression;
32 class ExpressionConverter;
33 
44 
45 public:
46 
48 
49  ~ElementHandler() override;
50 
57  static ElementHandler::Pointer GetDefault();
58 
72 
89  virtual SmartPointer<Expression> Create(ExpressionConverter* converter, Poco::XML::Element* element);
90 
91 protected:
92 
107  virtual void ProcessChildren(ExpressionConverter* converter, SmartPointer<IConfigurationElement> element, SmartPointer<CompositeExpression> expression);
108 
124  virtual void ProcessChildren(ExpressionConverter* converter, Poco::XML::Element* element, SmartPointer<CompositeExpression> expression);
125 };
126 
127 } // namespace berry
128 
129 #endif /*BERRYELEMENTHANDLER_H_*/
Light weight base class for most BlueBerry classes.
Definition: berryObject.h:72
#define berryObjectMacro(...)
Definition: berryMacros.h:33