0029021: Coding Rules - eliminate GCC warnings in Qt sample
[occt.git] / samples / qt / FuncDemo / src / BaseDriver.h
1 // BaseDriver.h: interface for the Base function driver.
2 //
3 //////////////////////////////////////////////////////////////////////
4
5 #if !defined(_BASEDRIVER_H_)
6 #define _BASEDRIVER_H_
7
8 #if _MSC_VER > 1000
9 #pragma once
10 #endif // _MSC_VER > 1000
11
12 #include <Standard_DefineHandle.hxx> 
13 #include <TFunction_Driver.hxx>
14 #include <TFunction_Logbook.hxx>
15 #include <TDF_LabelList.hxx>
16
17 DEFINE_STANDARD_HANDLE(BaseDriver, TFunction_Driver)
18
19 // A base function driver.
20 class BaseDriver : public TFunction_Driver
21 {
22 public:
23     
24     // Constructor
25         BaseDriver();
26
27         // Returns the arguments of the function
28         virtual void Arguments(TDF_LabelList& args) const;
29
30         // Returns the results of the function
31         virtual void Results(TDF_LabelList& res) const;
32
33         // Execution.
34         virtual Standard_Integer Execute(Handle(TFunction_Logbook)& log) const;
35
36         DEFINE_STANDARD_RTTIEXT(BaseDriver, TFunction_Driver)
37 };
38
39 #endif // !defined(_BASEDRIVER_H_)