Salome HOME
This commit was generated by cvs2git to track changes on a CVS vendor
[modules/kernel.git] / src / SALOMEDS / SALOMEDS_StudyPropertiesAttribute.hxx
1 //  File      : SALOMEDS_StudyPropertiesAttribute.hxx
2 //  Created   : Tue Oct  8 10:13:30 2002
3 //  Author    : Yves FRICAUD
4 //  Project   : SALOME
5 //  Module    : SALOMEDS
6 //  Copyright : Open CASCADE 2001
7 //  $Header$
8
9 #ifndef _SALOMEDS_StudyPropertiesAttribute_HeaderFile
10 #define _SALOMEDS_StudyPropertiesAttribute_HeaderFile
11
12 #ifndef _Standard_HeaderFile
13 #include <Standard.hxx>
14 #endif
15 #ifndef _Handle_SALOMEDS_StudyPropertiesAttribute_HeaderFile
16 #include <Handle_SALOMEDS_StudyPropertiesAttribute.hxx>
17 #endif
18
19 #ifndef _Handle_TColStd_HSequenceOfExtendedString_HeaderFile
20 #include <Handle_TColStd_HSequenceOfExtendedString.hxx>
21 #endif
22 #ifndef _Handle_TColStd_HSequenceOfInteger_HeaderFile
23 #include <Handle_TColStd_HSequenceOfInteger.hxx>
24 #endif
25 #ifndef _Standard_Integer_HeaderFile
26 #include <Standard_Integer.hxx>
27 #endif
28 #ifndef _Standard_Boolean_HeaderFile
29 #include <Standard_Boolean.hxx>
30 #endif
31 #ifndef _TDF_Attribute_HeaderFile
32 #include <TDF_Attribute.hxx>
33 #endif
34 #ifndef _Handle_TDF_Attribute_HeaderFile
35 #include <Handle_TDF_Attribute.hxx>
36 #endif
37 #ifndef _Handle_TDF_RelocationTable_HeaderFile
38 #include <Handle_TDF_RelocationTable.hxx>
39 #endif
40 class TColStd_HSequenceOfExtendedString;
41 class TColStd_HSequenceOfInteger;
42 class Standard_GUID;
43 class TDF_Label;
44 class TCollection_ExtendedString;
45 class TDF_Attribute;
46 class TDF_RelocationTable;
47
48
49 class SALOMEDS_StudyPropertiesAttribute : public TDF_Attribute {
50
51 public:
52
53     inline void* operator new(size_t,void* anAddress) 
54       {
55         return anAddress;
56       }
57     inline void* operator new(size_t size) 
58       { 
59         return Standard::Allocate(size); 
60       }
61     inline void  operator delete(void *anAddress) 
62       { 
63         if (anAddress) Standard::Free((Standard_Address&)anAddress); 
64       }
65 //    inline void  operator delete(void *anAddress, size_t size) 
66 //      { 
67 //        if (anAddress) Standard::Free((Standard_Address&)anAddress,size); 
68 //      }
69  // Methods PUBLIC
70  // 
71 Standard_EXPORT static const Standard_GUID& GetID() ;
72 Standard_EXPORT static  Handle_SALOMEDS_StudyPropertiesAttribute Set(const TDF_Label& label) ;
73 Standard_EXPORT SALOMEDS_StudyPropertiesAttribute();
74 Standard_EXPORT   void Init() ;
75 Standard_EXPORT   void SetUserName(const TCollection_ExtendedString& theName) ;
76 Standard_EXPORT   void SetFirstName(const TCollection_ExtendedString& theName) ;
77 Standard_EXPORT   TCollection_ExtendedString GetCreatorName() const;
78 Standard_EXPORT   Handle_TColStd_HSequenceOfExtendedString GetUserNames() const;
79 Standard_EXPORT   void SetModificationDate(const Standard_Integer theMinute,const Standard_Integer theHour,const Standard_Integer theDay,const Standard_Integer theMonth,const Standard_Integer theYear) ;
80 Standard_EXPORT   Standard_Boolean GetCreationDate(Standard_Integer& theMinute,Standard_Integer& theHour,Standard_Integer& theDay,Standard_Integer& theMonth,Standard_Integer& theYear) const;
81 Standard_EXPORT   void GetModificationDates(Handle(TColStd_HSequenceOfInteger)& theMinutes,Handle(TColStd_HSequenceOfInteger)& theHours,Handle(TColStd_HSequenceOfInteger)& theDays,Handle(TColStd_HSequenceOfInteger)& theMonths,Handle(TColStd_HSequenceOfInteger)& theYears) const;
82 Standard_EXPORT   void SetCreationMode(const Standard_Integer theMode) ;
83 Standard_EXPORT   Standard_Integer GetCreationMode() const;
84 Standard_EXPORT   void SetModified(const Standard_Integer theModified) ;
85 Standard_EXPORT   Standard_Boolean IsModified() const;
86 Standard_EXPORT   Standard_Integer GetModified() const;
87 Standard_EXPORT   void SetLocked(const Standard_Boolean theLocked) ;
88 Standard_EXPORT   Standard_Boolean IsLocked() const;
89 Standard_EXPORT   Standard_Boolean IsLockChanged(const Standard_Boolean theErase) ;
90 Standard_EXPORT  const Standard_GUID& ID() const;
91 Standard_EXPORT   void Restore(const Handle(TDF_Attribute)& with) ;
92 Standard_EXPORT   Handle_TDF_Attribute NewEmpty() const;
93 Standard_EXPORT   void Paste(const Handle(TDF_Attribute)& into,const Handle(TDF_RelocationTable)& RT) const;
94 Standard_EXPORT ~SALOMEDS_StudyPropertiesAttribute();
95
96
97
98
99  // Type management
100  //
101  Standard_EXPORT friend Handle_Standard_Type& SALOMEDS_StudyPropertiesAttribute_Type_();
102  Standard_EXPORT const Handle(Standard_Type)& DynamicType() const;
103  Standard_EXPORT Standard_Boolean              IsKind(const Handle(Standard_Type)&) const;
104
105 protected:
106
107  // Methods PROTECTED
108  // 
109
110
111  // Fields PROTECTED
112  //
113
114
115 private: 
116
117  // Methods PRIVATE
118  // 
119
120
121  // Fields PRIVATE
122  //
123 Handle_TColStd_HSequenceOfExtendedString myUserName;
124 Handle_TColStd_HSequenceOfInteger myMinute;
125 Handle_TColStd_HSequenceOfInteger myHour;
126 Handle_TColStd_HSequenceOfInteger myDay;
127 Handle_TColStd_HSequenceOfInteger myMonth;
128 Handle_TColStd_HSequenceOfInteger myYear;
129 Standard_Integer myMode;
130 Standard_Integer myModified;
131 Standard_Boolean myLocked;
132 Standard_Boolean myLockChanged;
133
134
135 };
136
137
138
139
140
141 // other inline functions and methods (like "C++: function call" methods)
142 //
143
144
145 #endif