Back to index

salome-kernel  6.5.0
SALOMEDS_AttributeStudyProperties.hxx
Go to the documentation of this file.
00001 // Copyright (C) 2007-2012  CEA/DEN, EDF R&D, OPEN CASCADE
00002 //
00003 // Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
00004 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
00005 //
00006 // This library is free software; you can redistribute it and/or
00007 // modify it under the terms of the GNU Lesser General Public
00008 // License as published by the Free Software Foundation; either
00009 // version 2.1 of the License.
00010 //
00011 // This library is distributed in the hope that it will be useful,
00012 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00013 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014 // Lesser General Public License for more details.
00015 //
00016 // You should have received a copy of the GNU Lesser General Public
00017 // License along with this library; if not, write to the Free Software
00018 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
00019 //
00020 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
00021 //
00022 
00023 //  File   : SALOMEDS_AttributeStudyProperties.hxx
00024 //  Author : Sergey RUIN
00025 //  Module : SALOME
00026 //
00027 #ifndef SALOMEDS_AttributeStudyProperties_HeaderFile
00028 #define SALOMEDS_AttributeStudyProperties_HeaderFile
00029 
00030 #include "SALOMEDSClient_AttributeStudyProperties.hxx"
00031 #include "SALOMEDS_GenericAttribute.hxx"
00032 #include "SALOMEDSImpl_AttributeStudyProperties.hxx"
00033 
00034 #include <vector>
00035 #include <string>
00036 
00037 // IDL headers
00038 #include <SALOMEconfig.h>
00039 #include CORBA_SERVER_HEADER(SALOMEDS)
00040 #include CORBA_SERVER_HEADER(SALOMEDS_Attributes)
00041 
00042 #ifdef GetUserName
00043 #undef GetUserName
00044 #endif
00045 
00046 class Standard_EXPORT SALOMEDS_AttributeStudyProperties: public SALOMEDS_GenericAttribute, public SALOMEDSClient_AttributeStudyProperties
00047 {
00048 public:
00049   
00050   SALOMEDS_AttributeStudyProperties(SALOMEDSImpl_AttributeStudyProperties* theAttr);
00051   SALOMEDS_AttributeStudyProperties(SALOMEDS::AttributeStudyProperties_ptr theAttr);
00052   ~SALOMEDS_AttributeStudyProperties();
00053 
00054   virtual void SetUserName(const std::string& theName);
00055   virtual std::string GetUserName();
00056   virtual void SetCreationDate(int theMinute, int theHour, int theDay, int theMonth, int theYear);
00057   virtual bool GetCreationDate(int& theMinute, int& theHour, int& theDay, int& theMonth, int& theYear);
00058   virtual void SetCreationMode(const std::string& theMode);
00059   virtual std::string GetCreationMode();
00060   virtual void SetModified(int theModified);
00061   virtual bool IsModified();
00062   virtual int GetModified();
00063   virtual void SetLocked(bool theLocked);
00064   virtual bool IsLocked();
00065   virtual void SetModification(const std::string& theName,
00066                                int theMinute,
00067                                int theHour,
00068                                int theDay,
00069                                int theMonth,
00070                                int theYear);
00071   virtual void GetModificationsList(std::vector<std::string>& theNames,
00072                                     std::vector<int>& theMinutes,
00073                                     std::vector<int>& theHours,
00074                                     std::vector<int>& theDays,
00075                                     std::vector<int>& theMonths,
00076                                     std::vector<int>& theYears,
00077                                     bool theWithCreator);
00078 
00079   virtual void SetUnits(const std::string& theUnits);
00080   virtual std::string GetUnits();
00081 
00082   virtual void SetComment(const std::string& theComment);
00083   virtual std::string GetComment();
00084 
00085 
00086 };
00087 
00088 
00089 #endif