Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
berryElementHandler.h
Go to the documentation of this file.
1 /*===================================================================
2 
3 BlueBerry Platform
4 
5 Copyright (c) German Cancer Research Center,
6 Division of Medical and Biological Informatics.
7 All rights reserved.
8 
9 This software is distributed WITHOUT ANY WARRANTY; without
10 even the implied warranty of MERCHANTABILITY or FITNESS FOR
11 A PARTICULAR PURPOSE.
12 
13 See LICENSE.txt or http://www.mitk.org for details.
14 
15 ===================================================================*/
16 
17 #ifndef BERRYELEMENTHANDLER_H_
18 #define BERRYELEMENTHANDLER_H_
19 
20 #include <berryObject.h>
21 
23 
24 namespace Poco {
25 namespace XML {
26 class Element;
27 }
28 }
29 
30 namespace berry {
31 
32 struct IConfigurationElement;
33 
34 class CompositeExpression;
35 class Expression;
36 class ExpressionConverter;
37 
48 
49 public:
50 
52 
53  ~ElementHandler();
54 
61  static ElementHandler::Pointer GetDefault();
62 
76 
93  virtual SmartPointer<Expression> Create(ExpressionConverter* converter, Poco::XML::Element* element);
94 
95 protected:
96 
111  virtual void ProcessChildren(ExpressionConverter* converter, SmartPointer<IConfigurationElement> element, SmartPointer<CompositeExpression> expression);
112 
128  virtual void ProcessChildren(ExpressionConverter* converter, Poco::XML::Element* element, SmartPointer<CompositeExpression> expression);
129 };
130 
131 } // namespace berry
132 
133 #endif /*BERRYELEMENTHANDLER_H_*/
Light weight base class for most BlueBerry classes.
Definition: berryObject.h:78
#define berryObjectMacro(...)
Definition: berryMacros.h:37