1 // File : SALOMEDS_StudyPropertiesAttribute.hxx
2 // Created : Tue Oct 8 10:13:30 2002
3 // Author : Yves FRICAUD
6 // Copyright : Open CASCADE 2001
9 #ifndef _SALOMEDS_StudyPropertiesAttribute_HeaderFile
10 #define _SALOMEDS_StudyPropertiesAttribute_HeaderFile
12 #ifndef _Standard_HeaderFile
13 #include <Standard.hxx>
15 #ifndef _Handle_SALOMEDS_StudyPropertiesAttribute_HeaderFile
16 #include <Handle_SALOMEDS_StudyPropertiesAttribute.hxx>
19 #ifndef _Handle_TColStd_HSequenceOfExtendedString_HeaderFile
20 #include <Handle_TColStd_HSequenceOfExtendedString.hxx>
22 #ifndef _Handle_TColStd_HSequenceOfInteger_HeaderFile
23 #include <Handle_TColStd_HSequenceOfInteger.hxx>
25 #ifndef _Standard_Integer_HeaderFile
26 #include <Standard_Integer.hxx>
28 #ifndef _Standard_Boolean_HeaderFile
29 #include <Standard_Boolean.hxx>
31 #ifndef _TDF_Attribute_HeaderFile
32 #include <TDF_Attribute.hxx>
34 #ifndef _Handle_TDF_Attribute_HeaderFile
35 #include <Handle_TDF_Attribute.hxx>
37 #ifndef _Handle_TDF_RelocationTable_HeaderFile
38 #include <Handle_TDF_RelocationTable.hxx>
40 class TColStd_HSequenceOfExtendedString;
41 class TColStd_HSequenceOfInteger;
44 class TCollection_ExtendedString;
46 class TDF_RelocationTable;
49 class SALOMEDS_StudyPropertiesAttribute : public TDF_Attribute {
53 inline void* operator new(size_t,void* anAddress)
57 inline void* operator new(size_t size)
59 return Standard::Allocate(size);
61 inline void operator delete(void *anAddress)
63 if (anAddress) Standard::Free((Standard_Address&)anAddress);
65 // inline void operator delete(void *anAddress, size_t size)
67 // if (anAddress) Standard::Free((Standard_Address&)anAddress,size);
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();
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;
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;
141 // other inline functions and methods (like "C++: function call" methods)