1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-07 18:30:55 +03:00
occt/samples/qt/FuncDemo/src/BaseDriver.h
vro aff5997de8 0024665: A sample for advanced function mechanism
PRO file is added + a description of how to generate the Visual Studio projects and compile.
In addition, the sample folder is renamed to FuncDemo.

Adding 64 bit configuration to VC projects
2016-02-20 13:04:31 +03:00

40 lines
920 B
C++

// BaseDriver.h: interface for the Base function driver.
//
//////////////////////////////////////////////////////////////////////
#if !defined(_BASEDRIVER_H_)
#define _BASEDRIVER_H_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include <Standard_DefineHandle.hxx>
#include <TFunction_Driver.hxx>
#include <TFunction_Logbook.hxx>
#include <TDF_LabelList.hxx>
DEFINE_STANDARD_HANDLE(BaseDriver, TFunction_Driver)
// A base function driver.
class BaseDriver : public TFunction_Driver
{
public:
// Constructor
BaseDriver();
// Returns the arguments of the function
virtual void Arguments(TDF_LabelList& args) const;
// Returns the results of the function
virtual void Results(TDF_LabelList& res) const;
// Execution.
virtual Standard_Integer Execute(Handle(TFunction_Logbook)& log) const;
DEFINE_STANDARD_RTTIEXT(BaseDriver, TFunction_Driver)
};
#endif // !defined(_BASEDRIVER_H_)