Salome HOME
ENV: Windows porting.
[modules/kernel.git] / src / SALOMEDS / SALOMEDS_AttributeStudyProperties.hxx
1 //  File   : SALOMEDS_AttributeStudyProperties.hxx
2 //  Author : Sergey RUIN
3 //  Module : SALOME
4
5 #ifndef SALOMEDS_AttributeStudyProperties_HeaderFile
6 #define SALOMEDS_AttributeStudyProperties_HeaderFile
7
8 #include <vector>
9 #include <string>
10
11 #include "SALOMEDSClient_AttributeStudyProperties.hxx"
12 #include "SALOMEDS_GenericAttribute.hxx"
13 #include "SALOMEDSImpl_AttributeStudyProperties.hxx"
14
15 // IDL headers
16 #include <SALOMEconfig.h>
17 #include CORBA_SERVER_HEADER(SALOMEDS)
18 #include CORBA_SERVER_HEADER(SALOMEDS_Attributes)
19
20 #ifdef GetUserName
21 #undef GetUserName
22 #endif
23
24 class SALOMEDS_AttributeStudyProperties: public SALOMEDS_GenericAttribute, public SALOMEDSClient_AttributeStudyProperties
25 {
26 public:
27   
28   SALOMEDS_AttributeStudyProperties(const Handle(SALOMEDSImpl_AttributeStudyProperties)& theAttr);
29   SALOMEDS_AttributeStudyProperties(SALOMEDS::AttributeStudyProperties_ptr theAttr);
30   ~SALOMEDS_AttributeStudyProperties();
31
32   virtual void SetUserName(const std::string& theName);
33   virtual std::string GetUserName();
34   virtual void SetCreationDate(int theMinute, int theHour, int theDay, int theMonth, int theYear);
35   virtual bool GetCreationDate(int& theMinute, int& theHour, int& theDay, int& theMonth, int& theYear);
36   virtual void SetCreationMode(const std::string& theMode);
37   virtual std::string GetCreationMode();
38   virtual void SetModified(int theModified);
39   virtual bool IsModified();
40   virtual int GetModified();
41   virtual void SetLocked(bool theLocked);
42   virtual bool IsLocked();
43   virtual void SetModification(const std::string& theName,
44                                int theMinute,
45                                int theHour,
46                                int theDay,
47                                int theMonth,
48                                int theYear);
49   virtual void GetModificationsList(std::vector<std::string>& theNames,
50                                     std::vector<int>& theMinutes,
51                                     std::vector<int>& theHours,
52                                     std::vector<int>& theDays,
53                                     std::vector<int>& theMonths,
54                                     std::vector<int>& theYears,
55                                     bool theWithCreator);
56
57 };
58
59
60 #endif