IVariableContainer.h
23 lines
| 592 B
| text/x-c
|
CLexer
Alexandre Leroux
|
r209 | #ifndef SCIQLOP_IVARIABLECONTAINER_H | ||
#define SCIQLOP_IVARIABLECONTAINER_H | ||||
r1420 | class Variable2; | |||
Alexandre Leroux
|
r209 | |||
/** | ||||
* @brief The IVariableContainer interface represents an UI object that can accommodate a variable | ||||
*/ | ||||
r1420 | class IVariableContainer | |||
{ | ||||
Alexandre Leroux
|
r209 | |||
public: | ||||
virtual ~IVariableContainer() = default; | ||||
/// Checks if the container can handle the variable passed in parameter | ||||
r1420 | virtual bool canDrop(Variable2& variable) const = 0; | |||
Alexandre Leroux
|
r327 | |||
/// Checks if the container contains the variable passed in parameter | ||||
r1420 | virtual bool contains(Variable2& variable) const = 0; | |||
Alexandre Leroux
|
r209 | }; | ||
#endif // SCIQLOP_IVARIABLECONTAINER_H | ||||