Salome HOME
Removed references to OCC
[modules/kernel.git] / src / SALOMEDS / Handle_SALOMEDS_FileType.hxx
1 // File generated by CPPExt (Transient)
2 //
3 //                     Copyright (C) 1991,1995 by
4 //  
5 //                      MATRA DATAVISION, FRANCE
6 //  
7 // This software is furnished in accordance with the terms and conditions
8 // of the contract and with the inclusion of the above copyright notice.
9 // This software or any other copy thereof may not be provided or otherwise
10 // be made available to any other person. No title to an ownership of the
11 // software is hereby transferred.
12 //  
13 // At the termination of the contract, the software and all copies of this
14 // software must be deleted.
15 //
16 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
17
18 #ifndef _Handle_SALOMEDS_FileType_HeaderFile
19 #define _Handle_SALOMEDS_FileType_HeaderFile
20
21 #ifndef _Standard_Macro_HeaderFile
22 #include <Standard_Macro.hxx>
23 #endif
24 #ifndef _Standard_HeaderFile
25 #include <Standard.hxx>
26 #endif
27
28 #ifndef _Handle_TDataStd_Comment_HeaderFile
29 #include <Handle_TDataStd_Comment.hxx>
30 #endif
31
32 class Standard_Transient;
33 class Handle_Standard_Type;
34 class Handle(TDataStd_Comment);
35 class SALOMEDS_FileType;
36 Standard_EXPORT Handle_Standard_Type& STANDARD_TYPE(SALOMEDS_FileType);
37
38 class Handle(SALOMEDS_FileType) : public Handle(TDataStd_Comment) {
39   public:
40     void* operator new(size_t,void* anAddress) 
41       {
42         return anAddress;
43       }
44     void* operator new(size_t size) 
45       { 
46         return Standard::Allocate(size); 
47       }
48     void  operator delete(void *anAddress) 
49       { 
50         if (anAddress) Standard::Free((Standard_Address&)anAddress); 
51       }
52     Handle(SALOMEDS_FileType)():Handle(TDataStd_Comment)() {} 
53     Handle(SALOMEDS_FileType)(const Handle(SALOMEDS_FileType)& aHandle) : Handle(TDataStd_Comment)(aHandle) 
54      {
55      }
56
57     Handle(SALOMEDS_FileType)(const SALOMEDS_FileType* anItem) : Handle(TDataStd_Comment)((TDataStd_Comment *)anItem) 
58      {
59      }
60
61     Handle(SALOMEDS_FileType)& operator=(const Handle(SALOMEDS_FileType)& aHandle)
62      {
63       Assign(aHandle.Access());
64       return *this;
65      }
66
67     Handle(SALOMEDS_FileType)& operator=(const SALOMEDS_FileType* anItem)
68      {
69       Assign((Standard_Transient *)anItem);
70       return *this;
71      }
72
73     SALOMEDS_FileType* operator->() 
74      {
75       return (SALOMEDS_FileType *)ControlAccess();
76      }
77
78     SALOMEDS_FileType* operator->() const 
79      {
80       return (SALOMEDS_FileType *)ControlAccess();
81      }
82
83    Standard_EXPORT ~Handle(SALOMEDS_FileType)();
84  
85    Standard_EXPORT static const Handle(SALOMEDS_FileType) DownCast(const Handle(Standard_Transient)& AnObject);
86 };
87 #endif