Salome HOME
merge from BR_V4dev_resman 24oct07
[modules/kernel.git] / src / SALOMEDS / SALOMEDS_AttributeStudyProperties.hxx
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 //
20 //  File   : SALOMEDS_AttributeStudyProperties.hxx
21 //  Author : Sergey RUIN
22 //  Module : SALOME
23
24 #ifndef SALOMEDS_AttributeStudyProperties_HeaderFile
25 #define SALOMEDS_AttributeStudyProperties_HeaderFile
26
27 #include <vector>
28 #include <string>
29
30 #include "SALOMEDSClient_AttributeStudyProperties.hxx"
31 #include "SALOMEDS_GenericAttribute.hxx"
32 #include "SALOMEDSImpl_AttributeStudyProperties.hxx"
33
34 // IDL headers
35 #include <SALOMEconfig.h>
36 #include CORBA_SERVER_HEADER(SALOMEDS)
37 #include CORBA_SERVER_HEADER(SALOMEDS_Attributes)
38
39 #ifdef GetUserName
40 #undef GetUserName
41 #endif
42
43 class Standard_EXPORT SALOMEDS_AttributeStudyProperties: public SALOMEDS_GenericAttribute, public SALOMEDSClient_AttributeStudyProperties
44 {
45 public:
46   
47   SALOMEDS_AttributeStudyProperties(const Handle(SALOMEDSImpl_AttributeStudyProperties)& theAttr);
48   SALOMEDS_AttributeStudyProperties(SALOMEDS::AttributeStudyProperties_ptr theAttr);
49   ~SALOMEDS_AttributeStudyProperties();
50
51   virtual void SetUserName(const std::string& theName);
52   virtual std::string GetUserName();
53   virtual void SetCreationDate(int theMinute, int theHour, int theDay, int theMonth, int theYear);
54   virtual bool GetCreationDate(int& theMinute, int& theHour, int& theDay, int& theMonth, int& theYear);
55   virtual void SetCreationMode(const std::string& theMode);
56   virtual std::string GetCreationMode();
57   virtual void SetModified(int theModified);
58   virtual bool IsModified();
59   virtual int GetModified();
60   virtual void SetLocked(bool theLocked);
61   virtual bool IsLocked();
62   virtual void SetModification(const std::string& theName,
63                                int theMinute,
64                                int theHour,
65                                int theDay,
66                                int theMonth,
67                                int theYear);
68   virtual void GetModificationsList(std::vector<std::string>& theNames,
69                                     std::vector<int>& theMinutes,
70                                     std::vector<int>& theHours,
71                                     std::vector<int>& theDays,
72                                     std::vector<int>& theMonths,
73                                     std::vector<int>& theYears,
74                                     bool theWithCreator);
75
76 };
77
78
79 #endif