1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-06-05 11:24:17 +03:00
occt/samples/mfc/standard/06_Ocaf/src/Handle_TOcafFunction_BoxDriver.hxx
2012-03-05 19:23:40 +04:00

90 lines
2.7 KiB
C++
Executable File

// File generated by CPPExt (Transient)
//
// Copyright (C) 1991,1995 by
//
// MATRA DATAVISION, FRANCE
//
// This software is furnished in accordance with the terms and conditions
// of the contract and with the inclusion of the above copyright notice.
// This software or any other copy thereof may not be provided or otherwise
// be made available to any other person. No title to an ownership of the
// software is hereby transferred.
//
// At the termination of the contract, the software and all copies of this
// software must be deleted.
#ifndef _Handle_TOcafFunction_BoxDriver_HeaderFile
#define _Handle_TOcafFunction_BoxDriver_HeaderFile
#ifndef _Standard_Macro_HeaderFile
#include <Standard_Macro.hxx>
#endif
#ifndef _Standard_HeaderFile
#include <Standard.hxx>
#endif
#ifndef _Handle_TFunction_Driver_HeaderFile
#include <Handle_TFunction_Driver.hxx>
#endif
class Standard_Transient;
class Handle_Standard_Type;
class Handle(TFunction_Driver);
class TOcafFunction_BoxDriver;
Standard_EXPORT Handle_Standard_Type& STANDARD_TYPE(TOcafFunction_BoxDriver);
class Handle(TOcafFunction_BoxDriver) : public Handle(TFunction_Driver) {
public:
inline void* operator new(size_t,void* anAddress)
{
return anAddress;
}
inline void* operator new(size_t size)
{
return Standard::Allocate(size);
}
inline void operator delete(void *anAddress)
{
if (anAddress) Standard::Free((Standard_Address&)anAddress);
}
// inline void operator delete(void *anAddress, size_t size)
// {
// if (anAddress) Standard::Free((Standard_Address&)anAddress,size);
// }
Handle(TOcafFunction_BoxDriver)():Handle(TFunction_Driver)() {}
Handle(TOcafFunction_BoxDriver)(const Handle(TOcafFunction_BoxDriver)& aHandle) : Handle(TFunction_Driver)(aHandle)
{
}
Handle(TOcafFunction_BoxDriver)(const TOcafFunction_BoxDriver* anItem) : Handle(TFunction_Driver)((TFunction_Driver *)anItem)
{
}
Handle(TOcafFunction_BoxDriver)& operator=(const Handle(TOcafFunction_BoxDriver)& aHandle)
{
Assign(aHandle.Access());
return *this;
}
Handle(TOcafFunction_BoxDriver)& operator=(const TOcafFunction_BoxDriver* anItem)
{
Assign((Standard_Transient *)anItem);
return *this;
}
TOcafFunction_BoxDriver* operator->()
{
return (TOcafFunction_BoxDriver *)ControlAccess();
}
TOcafFunction_BoxDriver* operator->() const
{
return (TOcafFunction_BoxDriver *)ControlAccess();
}
Standard_EXPORT ~Handle(TOcafFunction_BoxDriver)();
Standard_EXPORT static const Handle(TOcafFunction_BoxDriver) DownCast(const Handle(Standard_Transient)& AnObject);
};
#endif