1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-21 10:13:43 +03:00
occt/samples/qt/FuncDemo/src/PrismDriver.h
Benjamin Bihler 0e9fe060f3 0028355: Stating wrong parent class in DEFINE_STANDARD_RTTIEXT is not recognized during compilation
Added compile-time checks (static_assert) in DEFINE_STANDARD_RTTI*(A,B) macros to check that A is actually the class being defined, and B is its base class.
For GCC compiler version 4.7 and later on, check ensures that B is direct base class of A.

Fixed dubious RTTI definitions.
2017-01-19 17:25:56 +03:00

37 lines
766 B
C++

// PrismDriver.h: interface for the Prism function driver.
//
//////////////////////////////////////////////////////////////////////
#if !defined(_PRISMDRIVER_H_)
#define _PRISMDRIVER_H_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "BaseDriver.h"
#include <Standard_DefineHandle.hxx>
#include <TFunction_Logbook.hxx>
DEFINE_STANDARD_HANDLE(PrismDriver, BaseDriver)
// A Prism function driver.
class PrismDriver : public BaseDriver
{
public:
// ID of the function driver
static const Standard_GUID& GetID();
// Constructor
PrismDriver();
// Execution.
virtual Standard_Integer Execute(Handle(TFunction_Logbook)& log) const;
DEFINE_STANDARD_RTTIEXT(PrismDriver, BaseDriver)
};
#endif // !defined(_PRISMDRIVER_H_)