1 /***************************************************************************
2   qgsexpressioncontextscopegenerator.h - QgsExpressionContextScopeGenerator
3 
4  ---------------------
5  begin                : 24.11.2017
6  copyright            : (C) 2017 by Matthias Kuhn
7  email                : matthias@opengis.ch
8  ***************************************************************************
9  *                                                                         *
10  *   This program is free software; you can redistribute it and/or modify  *
11  *   it under the terms of the GNU General Public License as published by  *
12  *   the Free Software Foundation; either version 2 of the License, or     *
13  *   (at your option) any later version.                                   *
14  *                                                                         *
15  ***************************************************************************/
16 #ifndef QGSEXPRESSIONCONTEXTSCOPEGENERATOR_H
17 #define QGSEXPRESSIONCONTEXTSCOPEGENERATOR_H
18 
19 #include "qgsexpressioncontext.h"
20 
21 /**
22  * \ingroup core
23  * \brief Abstract interface for generating an expression context scope.
24  *
25  * \since QGIS 3.0
26  */
27 
28 class CORE_EXPORT QgsExpressionContextScopeGenerator
29 {
30   public:
31 
32     /**
33      * This method needs to be reimplemented in all classes which implement this interface
34      * and return an expression context scope.
35      *
36      * \since QGIS 3.0
37      */
38     virtual QgsExpressionContextScope *createExpressionContextScope() const = 0 SIP_FACTORY;
39 
40     virtual ~QgsExpressionContextScopeGenerator() = default;
41 };
42 
43 #endif // QGSEXPRESSIONCONTEXTGENERATOR_H
44