1 // BaseDriver.h: interface for the Base function driver.
3 //////////////////////////////////////////////////////////////////////
5 #if !defined(_BASEDRIVER_H_)
8 #include <Standard_DefineHandle.hxx>
9 #include <TFunction_Driver.hxx>
10 #include <TFunction_Logbook.hxx>
11 #include <TDF_LabelList.hxx>
12 #include <Standard_Mutex.hxx>
14 DEFINE_STANDARD_HANDLE(BaseDriver, TFunction_Driver)
16 // A base function driver.
17 class BaseDriver : public TFunction_Driver
24 // Returns the arguments of the function
25 virtual void Arguments(TDF_LabelList& args) const;
27 // Returns the results of the function
28 virtual void Results(TDF_LabelList& res) const;
30 // Sets a mutex for execution of the driver.
31 void SetMutex(Standard_Mutex* pmutex);
34 virtual Standard_Integer Execute(Handle(TFunction_Logbook)& log) const;
36 DEFINE_STANDARD_RTTIEXT(BaseDriver, TFunction_Driver)
39 Standard_Mutex* myMutex;
42 #endif // !defined(_BASEDRIVER_H_)