/src/contrib/geom-5.1.2.7/inc_pythonocc/Handle_BlockFix_SphereSpaceModifier.hxx

http://pythonocc.googlecode.com/ · C++ Header · 89 lines · 59 code · 12 blank · 18 comment · 1 complexity · 6cf5ca5345e801443802fd0d45b084b8 MD5 · raw file

  1. // Copyright (C) 2005 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
  2. // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
  3. //
  4. // This library is free software; you can redistribute it and/or
  5. // modify it under the terms of the GNU Lesser General Public
  6. // License as published by the Free Software Foundation; either
  7. // version 2.1 of the License.
  8. //
  9. // This library is distributed in the hope that it will be useful
  10. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  12. // Lesser General Public License for more details.
  13. //
  14. // You should have received a copy of the GNU Lesser General Public
  15. // License along with this library; if not, write to the Free Software
  16. // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  17. //
  18. // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
  19. #ifndef _Handle_BlockFix_SphereSpaceModifier_HeaderFile
  20. #define _Handle_BlockFix_SphereSpaceModifier_HeaderFile
  21. #ifndef _Standard_Macro_HeaderFile
  22. #include <Standard_Macro.hxx>
  23. #endif
  24. #ifndef _Standard_HeaderFile
  25. #include <Standard.hxx>
  26. #endif
  27. #ifndef _Handle_BRepTools_Modification_HeaderFile
  28. #include <Handle_BRepTools_Modification.hxx>
  29. #endif
  30. class Standard_Transient;
  31. class Handle_Standard_Type;
  32. class Handle(BRepTools_Modification);
  33. class BlockFix_SphereSpaceModifier;
  34. Standard_EXPORT Handle_Standard_Type& STANDARD_TYPE(BlockFix_SphereSpaceModifier);
  35. class Handle(BlockFix_SphereSpaceModifier) : public Handle(BRepTools_Modification) {
  36. public:
  37. void* operator new(size_t,void* anAddress)
  38. {
  39. return anAddress;
  40. }
  41. void* operator new(size_t size)
  42. {
  43. return Standard::Allocate(size);
  44. }
  45. void operator delete(void *anAddress)
  46. {
  47. if (anAddress) Standard::Free((Standard_Address&)anAddress);
  48. }
  49. Handle(BlockFix_SphereSpaceModifier)():Handle(BRepTools_Modification)() {}
  50. Handle(BlockFix_SphereSpaceModifier)(const Handle(BlockFix_SphereSpaceModifier)& aHandle) : Handle(BRepTools_Modification)(aHandle)
  51. {
  52. }
  53. Handle(BlockFix_SphereSpaceModifier)(const BlockFix_SphereSpaceModifier* anItem) : Handle(BRepTools_Modification)((BRepTools_Modification *)anItem)
  54. {
  55. }
  56. Handle(BlockFix_SphereSpaceModifier)& operator=(const Handle(BlockFix_SphereSpaceModifier)& aHandle)
  57. {
  58. Assign(aHandle.Access());
  59. return *this;
  60. }
  61. Handle(BlockFix_SphereSpaceModifier)& operator=(const BlockFix_SphereSpaceModifier* anItem)
  62. {
  63. Assign((Standard_Transient *)anItem);
  64. return *this;
  65. }
  66. BlockFix_SphereSpaceModifier* operator->()
  67. {
  68. return (BlockFix_SphereSpaceModifier *)ControlAccess();
  69. }
  70. BlockFix_SphereSpaceModifier* operator->() const
  71. {
  72. return (BlockFix_SphereSpaceModifier *)ControlAccess();
  73. }
  74. Standard_EXPORT ~Handle(BlockFix_SphereSpaceModifier)();
  75. Standard_EXPORT static const Handle(BlockFix_SphereSpaceModifier) DownCast(const Handle(Standard_Transient)& AnObject);
  76. };
  77. #endif