From: srn Date: Mon, 4 Apr 2005 06:59:18 +0000 (+0000) Subject: Proxy classe's headers for SALOMEDS X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=1d2567a2d4c34bff511479f7e0c67a0ab140bbbe;p=modules%2Fkernel.git Proxy classe's headers for SALOMEDS --- diff --git a/src/SALOMEDSClient/Makefile.in b/src/SALOMEDSClient/Makefile.in index b4cb3897e..c016bdbfa 100644 --- a/src/SALOMEDSClient/Makefile.in +++ b/src/SALOMEDSClient/Makefile.in @@ -1,28 +1,5 @@ -# SALOME SALOMEDS : data structure of SALOME and sources of Salome data server -# -# Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org -# -# -# # File : Makefile.in -# Author : Marc Tajchman +# Author : Sergey RUIN # Module : SALOME top_srcdir=@top_srcdir@ @@ -31,13 +8,46 @@ srcdir=@srcdir@ VPATH=.:@srcdir@:@top_srcdir@/idl:$(top_srcdir)/idl -@COMMENCE@ - -EXPORT_HEADERS= SALOMEDSClient_SObject.hxx \ - SALOMEDSClient_SComponent.hxx \ - SALOMEDSClient_GenericAttribute.hxx - +@COMMENCE@ + +EXPORT_HEADERS= SALOMEDSClient_AttributeComment.hxx \ + SALOMEDSClient_AttributeDrawable.hxx \ + SALOMEDSClient_AttributeExpandable.hxx \ + SALOMEDSClient_AttributeExternalFileDef.hxx \ + SALOMEDSClient_AttributeFileType.hxx \ + SALOMEDSClient_AttributeFlags.hxx \ + SALOMEDSClient_AttributeGraphic.hxx \ + SALOMEDSClient_AttributeIOR.hxx \ + SALOMEDSClient_AttributeInteger.hxx \ + SALOMEDSClient_AttributeLocalID.hxx \ + SALOMEDSClient_AttributeName.hxx \ + SALOMEDSClient_AttributeOpened.hxx \ + SALOMEDSClient_AttributePersistentRef.hxx \ + SALOMEDSClient_AttributePixMap.hxx \ + SALOMEDSClient_AttributePythonObject.hxx \ + SALOMEDSClient_AttributeReal.hxx \ + SALOMEDSClient_AttributeSelectable.hxx \ + SALOMEDSClient_AttributeSequenceOfInteger.hxx \ + SALOMEDSClient_AttributeSequenceOfReal.hxx \ + SALOMEDSClient_AttributeStudyProperties.hxx \ + SALOMEDSClient_AttributeTableOfInteger.hxx \ + SALOMEDSClient_AttributeTableOfReal.hxx \ + SALOMEDSClient_AttributeTableOfString.hxx \ + SALOMEDSClient_AttributeTarget.hxx \ + SALOMEDSClient_AttributeTextColor.hxx \ + SALOMEDSClient_AttributeTextHighlightColor.hxx \ + SALOMEDSClient_AttributeTreeNode.hxx \ + SALOMEDSClient_AttributeUserID.hxx \ + SALOMEDSClient_ChildIterator.hxx \ + SALOMEDSClient_GenericAttribute.hxx \ + SALOMEDSClient_SComponent.hxx \ + SALOMEDSClient_SComponentIterator.hxx \ + SALOMEDSClient_SObject.hxx \ + SALOMEDSClient_Study.hxx \ + SALOMEDSClient_StudyBuilder.hxx \ + SALOMEDSClient_StudyManager.hxx \ + SALOMEDSClient_UseCaseBuilder.hxx \ + SALOMEDSClient_UseCaseIterator.hxx @CONCLUDE@ - diff --git a/src/SALOMEDSClient/SALOMEDSClient_AttributeComment.hxx b/src/SALOMEDSClient/SALOMEDSClient_AttributeComment.hxx new file mode 100644 index 000000000..54a3e7c8c --- /dev/null +++ b/src/SALOMEDSClient/SALOMEDSClient_AttributeComment.hxx @@ -0,0 +1,17 @@ +// File : SALOMEDSClient_AttributeComment.hxx +// Author : Sergey RUIN +// Module : SALOME + +#ifndef SALOMEDSClient_AttributeComment_HeaderFile +#define SALOMEDSClient_AttributeComment_HeaderFile + +#include "SALOMEDSClient_GenericAttribute.hxx" + +class SALOMEDSClient_AttributeComment: public virtual SALOMEDSClient_GenericAttribute +{ +public: + virtual char* Value() = 0; + virtual void SetValue(const char* value) = 0; +}; + +#endif diff --git a/src/SALOMEDSClient/SALOMEDSClient_AttributeDrawable.hxx b/src/SALOMEDSClient/SALOMEDSClient_AttributeDrawable.hxx new file mode 100644 index 000000000..c00cb0c7d --- /dev/null +++ b/src/SALOMEDSClient/SALOMEDSClient_AttributeDrawable.hxx @@ -0,0 +1,17 @@ +// File : SALOMEDSClient_AttributeDrawable.hxx +// Author : Sergey RUIN +// Module : SALOME + +#ifndef SALOMEDSClient_AttributeDrawable_HeaderFile +#define SALOMEDSClient_AttributeDrawable_HeaderFile + +#include "SALOMEDSClient_GenericAttribute.hxx" + +class SALOMEDSClient_AttributeDrawable: public virtual SALOMEDSClient_GenericAttribute +{ +public: + virtual bool IsDrawable() = 0; + virtual void SetDrawable(bool value) = 0; +}; + +#endif diff --git a/src/SALOMEDSClient/SALOMEDSClient_AttributeExpandable.hxx b/src/SALOMEDSClient/SALOMEDSClient_AttributeExpandable.hxx new file mode 100644 index 000000000..0da2e37e1 --- /dev/null +++ b/src/SALOMEDSClient/SALOMEDSClient_AttributeExpandable.hxx @@ -0,0 +1,20 @@ +// File : SALOMEDSClient_AttributeExpandable.hxx +// Author : Sergey RUIN +// Module : SALOME +// $Header: + +#ifndef SALOMEDSClient_AttributeExpandable_HeaderFile +#define SALOMEDSClient_AttributeExpandable_HeaderFile + +#include "SALOMEDSClient_GenericAttribute.hxx" + +class SALOMEDSClient_AttributeExpandable: public virtual SALOMEDSClient_GenericAttribute +{ +public: + virtual bool IsExpandable() = 0; + virtual void SetExpandable(bool value) = 0; +}; + + + +#endif diff --git a/src/SALOMEDSClient/SALOMEDSClient_AttributeExternalFileDef.hxx b/src/SALOMEDSClient/SALOMEDSClient_AttributeExternalFileDef.hxx new file mode 100644 index 000000000..fb4fff25b --- /dev/null +++ b/src/SALOMEDSClient/SALOMEDSClient_AttributeExternalFileDef.hxx @@ -0,0 +1,19 @@ +// File : SALOMEDSClient_AttributeExternalFileDef.hxx +// Author : Sergey RUIN +// Module : SALOME + +#ifndef SALOMEDSClient_AttributeExternalFileDef_HeaderFile +#define SALOMEDSClient_AttributeExternalFileDef_HeaderFile + +#include "SALOMEDSClient_GenericAttribute.hxx" + +class SALOMEDSClient_AttributeExternalFileDef: public virtual SALOMEDSClient_GenericAttribute +{ +public: + virtual char* Value() = 0; + virtual void SetValue(const char* value) = 0; +}; + + + +#endif diff --git a/src/SALOMEDSClient/SALOMEDSClient_AttributeFileType.hxx b/src/SALOMEDSClient/SALOMEDSClient_AttributeFileType.hxx new file mode 100644 index 000000000..0b534d8f0 --- /dev/null +++ b/src/SALOMEDSClient/SALOMEDSClient_AttributeFileType.hxx @@ -0,0 +1,20 @@ +// File : SALOMEDSClient_AttributeFileType.hxx +// Author : Sergey RUIN +// Module : SALOME + +#ifndef SALOMEDSClient_AttributeFileType_HeaderFile +#define SALOMEDSClient_AttributeFileType_HeaderFile + +#include "SALOMEDSClient_GenericAttribute.hxx" + +class SALOMEDSClient_AttributeFileType: public virtual SALOMEDSClient_GenericAttribute +{ +public: + virtual char* Value() = 0; + virtual void SetValue(const char* value) = 0; + +}; + + + +#endif diff --git a/src/SALOMEDSClient/SALOMEDSClient_AttributeFlags.hxx b/src/SALOMEDSClient/SALOMEDSClient_AttributeFlags.hxx new file mode 100644 index 000000000..99f314d33 --- /dev/null +++ b/src/SALOMEDSClient/SALOMEDSClient_AttributeFlags.hxx @@ -0,0 +1,23 @@ +// File : SALOMEDSClient_AttributeFlags.hxx +// Author : Sergey RUIN +// Module : SALOME +// $Header: + +#ifndef SALOMEDSClient_AttributeFlags_HeaderFile +#define SALOMEDSClient_AttributeFlags_HeaderFile + +#include "SALOMEDSClient_GenericAttribute.hxx" + +class SALOMEDSClient_AttributeFlags: public virtual SALOMEDSClient_GenericAttribute +{ +public: + + virtual int GetFlags() = 0; + virtual void SetFlags(int theFlags) = 0; + + virtual bool Get(int theFlag) = 0; + virtual void Set(int theFlag, bool theValue) = 0; + +}; + +#endif diff --git a/src/SALOMEDSClient/SALOMEDSClient_AttributeGraphic.hxx b/src/SALOMEDSClient/SALOMEDSClient_AttributeGraphic.hxx new file mode 100644 index 000000000..0a494c77f --- /dev/null +++ b/src/SALOMEDSClient/SALOMEDSClient_AttributeGraphic.hxx @@ -0,0 +1,20 @@ +// File : SALOMEDSClient_AttributeFlags.hxx +// Author : Sergey RUIN +// Module : SALOME +// $Header: + +#ifndef SALOMEDSClient_AttributeGraphic_HeaderFile +#define SALOMEDSClient_AttributeGraphic_HeaderFile + +#include "SALOMEDSClient_GenericAttribute.hxx" + +class SALOMEDSClient_AttributeGraphic: public virtual SALOMEDSClient_GenericAttribute +{ +public: + + virtual void SetVisibility(int theViewId, bool theValue) = 0; + virtual bool GetVisibility(int theViewId) = 0; + +}; + +#endif diff --git a/src/SALOMEDSClient/SALOMEDSClient_AttributeIOR.hxx b/src/SALOMEDSClient/SALOMEDSClient_AttributeIOR.hxx new file mode 100644 index 000000000..93fa61b2f --- /dev/null +++ b/src/SALOMEDSClient/SALOMEDSClient_AttributeIOR.hxx @@ -0,0 +1,20 @@ +// File : SALOMEDSClient_AttributeIOR.hxx +// Author : Sergey RUIN +// Module : SALOME + +#ifndef SALOMEDSClient_AttributeIOR_HeaderFile +#define SALOMEDSClient_AttributeIOR_HeaderFile + +#include "SALOMEDSClient_GenericAttribute.hxx" + +class SALOMEDSClient_AttributeIOR: public virtual SALOMEDSClient_GenericAttribute +{ +public: + + virtual char* Value() = 0; + virtual void SetValue(const char* value) = 0; + +}; + + +#endif diff --git a/src/SALOMEDSClient/SALOMEDSClient_AttributeInteger.hxx b/src/SALOMEDSClient/SALOMEDSClient_AttributeInteger.hxx new file mode 100644 index 000000000..25c7a20fa --- /dev/null +++ b/src/SALOMEDSClient/SALOMEDSClient_AttributeInteger.hxx @@ -0,0 +1,20 @@ +// File : SALOMEDSClient_AttributeInteger.hxx +// Author : Sergey RUIN +// Module : SALOME + +#ifndef SALOMEDSClient_AttributeInteger_HeaderFile +#define SALOMEDSClient_AttributeInteger_HeaderFile + +#include "SALOMEDSClient_GenericAttribute.hxx" + +class SALOMEDSClient_AttributeInteger: public virtual SALOMEDSClient_GenericAttribute +{ +public: + + virtual int Value() = 0; + virtual void SetValue(int value) = 0; +}; + + + +#endif diff --git a/src/SALOMEDSClient/SALOMEDSClient_AttributeLocalID.hxx b/src/SALOMEDSClient/SALOMEDSClient_AttributeLocalID.hxx new file mode 100644 index 000000000..51c1a2a33 --- /dev/null +++ b/src/SALOMEDSClient/SALOMEDSClient_AttributeLocalID.hxx @@ -0,0 +1,21 @@ +// File : SALOMEDSClient_AttributeLocalID.hxx +// Author : Sergey RUIN +// Module : SALOME +// $Header: + +#ifndef SALOMEDSClient_AttributeLocalID_HeaderFile +#define SALOMEDSClient_AttributeLocalID_HeaderFile + +#include "SALOMEDSClient_GenericAttribute.hxx" + +class SALOMEDSClient_AttributeLocalID: public virtual SALOMEDSClient_GenericAttribute +{ +public: + virtual int Value() = 0; + virtual void SetValue(int value) = 0; + +}; + + + +#endif diff --git a/src/SALOMEDSClient/SALOMEDSClient_AttributeName.hxx b/src/SALOMEDSClient/SALOMEDSClient_AttributeName.hxx new file mode 100644 index 000000000..63fa39046 --- /dev/null +++ b/src/SALOMEDSClient/SALOMEDSClient_AttributeName.hxx @@ -0,0 +1,23 @@ +// File : SALOMEDSClient_AttributeName.hxx +// Author : Sergey RUIN +// Module : SALOME +// $Header: + +#ifndef SALOMEDSClient_AttributeName_HeaderFile +#define SALOMEDSClient_AttributeName_HeaderFile + +#include "SALOMEDSClient_GenericAttribute.hxx" + +class SALOMEDSClient_AttributeName: public virtual SALOMEDSClient_GenericAttribute +{ +public: + + virtual char* Value() = 0; + virtual void SetValue(const char* value) = 0; + +}; + + + + +#endif diff --git a/src/SALOMEDSClient/SALOMEDSClient_AttributeOpened.hxx b/src/SALOMEDSClient/SALOMEDSClient_AttributeOpened.hxx new file mode 100644 index 000000000..76d641adc --- /dev/null +++ b/src/SALOMEDSClient/SALOMEDSClient_AttributeOpened.hxx @@ -0,0 +1,21 @@ +// File : SALOMEDSClient_AttributeOpened.hxx +// Author : Sergey RUIN +// Module : SALOME +// $Header: + +#ifndef SALOMEDSClient_AttributeOpened_HeaderFile +#define SALOMEDSClient_AttributeOpened_HeaderFile + +#include "SALOMEDSClient_GenericAttribute.hxx" + +class SALOMEDSClient_AttributeOpened: public virtual SALOMEDSClient_GenericAttribute +{ +public: + + virtual bool IsOpened() = 0; + virtual void SetOpened(bool value) = 0; +}; + + + +#endif diff --git a/src/SALOMEDSClient/SALOMEDSClient_AttributePersistentRef.hxx b/src/SALOMEDSClient/SALOMEDSClient_AttributePersistentRef.hxx new file mode 100644 index 000000000..931f0d967 --- /dev/null +++ b/src/SALOMEDSClient/SALOMEDSClient_AttributePersistentRef.hxx @@ -0,0 +1,21 @@ +// File : SALOMEDSClient_AttributePersistentRef.hxx +// Author : Sergey RUIN +// Module : SALOME + +#ifndef SALOMEDSClient_AttributePersistentRef_HeaderFile +#define SALOMEDSClient_AttributePersistentRef_HeaderFile + +#include "SALOMEDSClient_GenericAttribute.hxx" + +class SALOMEDSClient_AttributePersistentRef: public virtual SALOMEDSClient_GenericAttribute +{ +public: + + virtual char* Value() = 0; + virtual void SetValue(const char* value) = 0; + +}; + + + +#endif diff --git a/src/SALOMEDSClient/SALOMEDSClient_AttributePixMap.hxx b/src/SALOMEDSClient/SALOMEDSClient_AttributePixMap.hxx new file mode 100644 index 000000000..de9b3b43c --- /dev/null +++ b/src/SALOMEDSClient/SALOMEDSClient_AttributePixMap.hxx @@ -0,0 +1,21 @@ +// File : SALOMEDSClient_AttributePixMap.hxx +// Author : Sergey RUIN +// Module : SALOME + +#ifndef SALOMEDSClient_AttributePixMap_HeaderFile +#define SALOMEDSClient_AttributePixMap_HeaderFile + +#include "SALOMEDSClient_GenericAttribute.hxx" + +class SALOMEDSClient_AttributePixMap: public virtual SALOMEDSClient_GenericAttribute +{ +public: + + virtual bool HasPixMap() = 0; + virtual char* GetPixMap() = 0; + virtual void SetPixMap(const char* value) = 0; + +}; + + +#endif diff --git a/src/SALOMEDSClient/SALOMEDSClient_AttributePythonObject.hxx b/src/SALOMEDSClient/SALOMEDSClient_AttributePythonObject.hxx new file mode 100644 index 000000000..d1b37001f --- /dev/null +++ b/src/SALOMEDSClient/SALOMEDSClient_AttributePythonObject.hxx @@ -0,0 +1,23 @@ +// File : SALOMEDSClient_AttributePythonObject.hxx +// Author : Sergey RUIN +// Module : SALOME + +#ifndef SALOMEDSClient_AttributePythonObject_HeaderFile +#define SALOMEDSClient_AttributePythonObject_HeaderFile + +#include "SALOMEDSClient_GenericAttribute.hxx" + +class SALOMEDSClient_AttributePythonObject: public virtual SALOMEDSClient_GenericAttribute +{ +public: + + virtual void SetObject(const char* theSequence, bool IsScript) = 0; + virtual char* GetObject() = 0; + virtual bool IsScript() = 0; + +}; + + + + +#endif diff --git a/src/SALOMEDSClient/SALOMEDSClient_AttributeReal.hxx b/src/SALOMEDSClient/SALOMEDSClient_AttributeReal.hxx new file mode 100644 index 000000000..ec5007bc2 --- /dev/null +++ b/src/SALOMEDSClient/SALOMEDSClient_AttributeReal.hxx @@ -0,0 +1,19 @@ +// File : SALOMEDSClient_AttributeReal.hxx +// Author : Sergey RUIN +// Module : SALOME + +#ifndef SALOMEDSClient_AttributeReal_HeaderFile +#define SALOMEDSClient_AttributeReal_HeaderFile + +#include "SALOMEDSClient_GenericAttribute.hxx" + +class SALOMEDSClient_AttributeReal: public virtual SALOMEDSClient_GenericAttribute +{ +public: + + virtual double Value() = 0; + virtual void SetValue(double value) = 0; +}; + + +#endif diff --git a/src/SALOMEDSClient/SALOMEDSClient_AttributeSelectable.hxx b/src/SALOMEDSClient/SALOMEDSClient_AttributeSelectable.hxx new file mode 100644 index 000000000..39eb766b4 --- /dev/null +++ b/src/SALOMEDSClient/SALOMEDSClient_AttributeSelectable.hxx @@ -0,0 +1,21 @@ +// File : SALOMEDSClient_AttributeSelectable.hxx +// Author : Sergey RUIN +// Module : SALOME + +#ifndef SALOMEDSClient_AttributeSelectable_HeaderFile +#define SALOMEDSClient_AttributeSelectable_HeaderFile + +#include "SALOMEDSClient_GenericAttribute.hxx" + +class SALOMEDSClient_AttributeSelectable: public virtual SALOMEDSClient_GenericAttribute +{ +public: + + virtual bool IsSelectable() = 0; + virtual void SetSelectable(bool value) = 0; + +}; + + + +#endif diff --git a/src/SALOMEDSClient/SALOMEDSClient_AttributeSequenceOfInteger.hxx b/src/SALOMEDSClient/SALOMEDSClient_AttributeSequenceOfInteger.hxx new file mode 100644 index 000000000..a0f065a71 --- /dev/null +++ b/src/SALOMEDSClient/SALOMEDSClient_AttributeSequenceOfInteger.hxx @@ -0,0 +1,25 @@ +// File : SALOMEDSClient_AttributeSequenceOfInteger.hxx +// Author : Sergey RUIN +// Module : SALOME + +#ifndef SALOMEDSClient_AttributeSequenceOfInteger_HeaderFile +#define SALOMEDSClient_AttributeSequenceOfInteger_HeaderFile + +#include +#include "SALOMEDSClient_GenericAttribute.hxx" + +class SALOMEDSClient_AttributeSequenceOfInteger: public virtual SALOMEDSClient_GenericAttribute +{ +public: + + virtual void Assign(const std::vector& other) = 0; + virtual std::vector CorbaSequence() = 0; + virtual void Add(int value) = 0; + virtual void Remove(int index) = 0; + virtual void ChangeValue(int index, int value) = 0; + virtual int Value(int index) = 0; + virtual int Length() = 0; + +}; + +#endif diff --git a/src/SALOMEDSClient/SALOMEDSClient_AttributeSequenceOfReal.hxx b/src/SALOMEDSClient/SALOMEDSClient_AttributeSequenceOfReal.hxx new file mode 100644 index 000000000..d4578d29c --- /dev/null +++ b/src/SALOMEDSClient/SALOMEDSClient_AttributeSequenceOfReal.hxx @@ -0,0 +1,27 @@ +// File : SALOMEDSClient_AttributeSequenceOfSequenceOfReal.hxx +// Author : Sergey RUIN +// Module : SALOME + +#ifndef SALOMEDSClient_AttributeSequenceOfSequenceOfReal_HeaderFile +#define SALOMEDSClient_AttributeSequenceOfSequenceOfReal_HeaderFile + +#include +#include "SALOMEDSClient_GenericAttribute.hxx" + +class SALOMEDSClient_AttributeSequenceOfReal: public virtual SALOMEDSClient_GenericAttribute +{ +public: + + virtual void Assign(const std::vector& other) = 0; + virtual std::vector CorbaSequence() = 0; + virtual void Add(double value) = 0; + virtual void Remove(int index) = 0; + virtual void ChangeValue(int index, double value) = 0; + virtual double Value(int index) = 0; + virtual int Length() = 0; + +}; + + + +#endif diff --git a/src/SALOMEDSClient/SALOMEDSClient_AttributeStudyProperties.hxx b/src/SALOMEDSClient/SALOMEDSClient_AttributeStudyProperties.hxx new file mode 100644 index 000000000..8e408219b --- /dev/null +++ b/src/SALOMEDSClient/SALOMEDSClient_AttributeStudyProperties.hxx @@ -0,0 +1,45 @@ +// File : SALOMEDSClient_AttributeStudyProperties.hxx +// Author : Sergey RUIN +// Module : SALOME + +#ifndef SALOMEDSClient_AttributeStudyProperties_HeaderFile +#define SALOMEDSClient_AttributeStudyProperties_HeaderFile + +#include +#include + +#include "SALOMEDSClient_GenericAttribute.hxx" + +class SALOMEDSClient_AttributeStudyProperties: public virtual SALOMEDSClient_GenericAttribute +{ +public: + + virtual void SetUserName(const char* theName) = 0; + virtual char* GetUserName() = 0; + virtual void SetCreationDate(int theMinute, int theHour, int theDay, int theMonth, int theYear) = 0; + virtual bool GetCreationDate(int& theMinute, int& theHour, int& theDay, int& theMonth, int& theYear) = 0; + virtual void SetCreationMode(const char* theMode) = 0; + virtual char* GetCreationMode() = 0; + virtual void SetModified(int theModified) = 0; + virtual bool IsModified() = 0; + virtual int GetModified() = 0; + virtual void SetLocked(bool theLocked) = 0; + virtual bool IsLocked() = 0; + virtual void SetModification(const char* theName, + int theMinute, + int theHour, + int theDay, + int theMonth, + int theYear) = 0; + virtual void GetModificationsList(std::vector& theNames, + std::vector& theMinutes, + std::vector& theHours, + std::vector& theDays, + std::vector& theMonths, + std::vector& theYears, + bool theWithCreator) = 0; + +}; + + +#endif diff --git a/src/SALOMEDSClient/SALOMEDSClient_AttributeTableOfInteger.hxx b/src/SALOMEDSClient/SALOMEDSClient_AttributeTableOfInteger.hxx new file mode 100644 index 000000000..8a46b2944 --- /dev/null +++ b/src/SALOMEDSClient/SALOMEDSClient_AttributeTableOfInteger.hxx @@ -0,0 +1,47 @@ +// File : SALOMEDSClient_AttributeTableOfInteger.hxx +// Author : Sergey RUIN +// Module : SALOME + +#ifndef SALOMEDSClient_AttributeTableOfInteger_HeaderFile +#define SALOMEDSClient_AttributeTableOfInteger_HeaderFile + +#include +#include +#include "SALOMEDSClient_GenericAttribute.hxx" + +class SALOMEDSClient_AttributeTableOfInteger: public virtual SALOMEDSClient_GenericAttribute +{ + +public: + + virtual void SetTitle(const char* theTitle) = 0; + virtual char* GetTitle() = 0; + virtual void SetRowTitle(int theIndex, const char* theTitle) = 0; + virtual void SetRowTitles(const std::vector& theTitles) = 0; + virtual std::vector GetRowTitles() = 0; + virtual void SetColumnTitle(int theIndex, const char* theTitle) = 0; + virtual void SetColumnTitles(const std::vector& theTitles) = 0; + virtual std::vector GetColumnTitles() = 0; + + virtual void SetRowUnit(int theIndex, const char* theUnit) = 0; + virtual void SetRowUnits(const std::vector& theUnits) = 0; + virtual std::vector GetRowUnits() = 0; + + virtual int GetNbRows() = 0; + virtual int GetNbColumns() = 0; + virtual void AddRow(const std::vector& theData) = 0; + virtual void SetRow(int theRow, const std::vector& theData) = 0; + virtual std::vector GetRow(int theRow) = 0; + virtual void AddColumn(const std::vector& theData) = 0; + virtual void SetColumn(int theColumn, const std::vector& theData) = 0; + virtual std::vector GetColumn(int theColumn) = 0; + virtual void PutValue(int theValue, int theRow, int theColumn) = 0; + virtual bool HasValue(int theRow, int theColumn) = 0; + virtual int GetValue(int theRow, int theColumn) = 0; + + virtual std::vector GetRowSetIndices(int theRow) = 0; + virtual void SetNbColumns(int theNbColumns) = 0; + +}; + +#endif diff --git a/src/SALOMEDSClient/SALOMEDSClient_AttributeTableOfReal.hxx b/src/SALOMEDSClient/SALOMEDSClient_AttributeTableOfReal.hxx new file mode 100644 index 000000000..3da7e8a81 --- /dev/null +++ b/src/SALOMEDSClient/SALOMEDSClient_AttributeTableOfReal.hxx @@ -0,0 +1,46 @@ +// File : SALOMEDSClient_AttributeTableOfReal.hxx +// Author : Michael Ponikarov +// Module : SALOME + +#ifndef SALOMEDSClient_AttributeTableOfReal_HeaderFile +#define SALOMEDSClient_AttributeTableOfReal_HeaderFile + +#include +#include +#include "SALOMEDSClient_GenericAttribute.hxx" + +class SALOMEDSClient_AttributeTableOfReal: public virtual SALOMEDSClient_GenericAttribute +{ + +public: + + virtual void SetTitle(const char* theTitle) = 0; + virtual char* GetTitle() = 0; + virtual void SetRowTitle(int theIndex, const char* theTitle) = 0; + virtual void SetRowTitles(const std::vector& theTitles) = 0; + virtual std::vector GetRowTitles() = 0; + virtual void SetColumnTitle(int theIndex, const char* theTitle) = 0; + virtual void SetColumnTitles(const std::vector& theTitles) = 0; + virtual std::vector GetColumnTitles() = 0; + virtual void SetRowUnit(int theIndex, const char* theUnit) = 0; + virtual void SetRowUnits(const std::vector& theUnits) = 0; + virtual std::vector GetRowUnits() = 0; + + virtual int GetNbRows() = 0; + virtual int GetNbColumns() = 0; + virtual void AddRow(const std::vector& theData) = 0; + virtual void SetRow(int theRow, const std::vector& theData) = 0; + virtual std::vector GetRow(int theRow) = 0; + virtual void AddColumn(const std::vector& theData) = 0; + virtual void SetColumn(int theColumn, const std::vector& theData) = 0; + virtual std::vector GetColumn(int theColumn) = 0; + virtual void PutValue(double theValue, int theRow, int theColumn) = 0; + virtual bool HasValue(int theRow, int theColumn) = 0; + virtual double GetValue(int theRow, int theColumn) = 0; + + virtual std::vector GetRowSetIndices(int theRow) = 0; + virtual void SetNbColumns(int theNbColumns) = 0; + +}; + +#endif diff --git a/src/SALOMEDSClient/SALOMEDSClient_AttributeTableOfString.hxx b/src/SALOMEDSClient/SALOMEDSClient_AttributeTableOfString.hxx new file mode 100644 index 000000000..fae6d5c2c --- /dev/null +++ b/src/SALOMEDSClient/SALOMEDSClient_AttributeTableOfString.hxx @@ -0,0 +1,46 @@ +// File : SALOMEDSClient_AttributeTableOfString.hxx +// Author : Sergey RUIN +// Module : SALOME + +#ifndef SALOMEDSClient_AttributeTableOfString_HeaderFile +#define SALOMEDSClient_AttributeTableOfString_HeaderFile + +#include +#include +#include "SALOMEDSClient_GenericAttribute.hxx" + +class SALOMEDSClient_AttributeTableOfString: public virtual SALOMEDSClient_GenericAttribute +{ +public: + + virtual void SetTitle(const char* theTitle) = 0; + virtual char* GetTitle() = 0; + virtual void SetRowTitle(int theIndex, const char* theTitle) = 0; + virtual void SetRowTitles(const std::vector& theTitles) = 0; + virtual std::vector GetRowTitles() = 0; + virtual void SetColumnTitle(int theIndex, const char* theTitle) = 0; + virtual void SetColumnTitles(const std::vector& theTitles) = 0; + virtual std::vector GetColumnTitles() = 0; + + virtual void SetRowUnit(int theIndex, const char* theUnit) = 0; + virtual void SetRowUnits(const std::vector& theUnits) = 0; + virtual std::vector GetRowUnits() = 0; + + virtual int GetNbRows() = 0; + virtual int GetNbColumns() = 0; + virtual void AddRow(const std::vector& theData) = 0; + virtual void SetRow(int theRow, const std::vector& theData) = 0; + virtual std::vector GetRow(int theRow) = 0; + virtual void AddColumn(const std::vector& theData) = 0; + virtual void SetColumn(int theColumn, const std::vector& theData) = 0; + virtual std::vector GetColumn(int theColumn) = 0; + virtual void PutValue(const char* theValue, int theRow, int theColumn) = 0; + virtual bool HasValue(int theRow, int theColumn) = 0; + virtual char* GetValue(int theRow, int theColumn) = 0; + + virtual std::vector GetRowSetIndices(int theRow) = 0; + virtual void SetNbColumns(int theNbColumns) = 0; + +}; + +#endif diff --git a/src/SALOMEDSClient/SALOMEDSClient_AttributeTarget.hxx b/src/SALOMEDSClient/SALOMEDSClient_AttributeTarget.hxx new file mode 100644 index 000000000..323dc6404 --- /dev/null +++ b/src/SALOMEDSClient/SALOMEDSClient_AttributeTarget.hxx @@ -0,0 +1,20 @@ +// File : SALOMEDSClient_AttributeTarget.hxx +// Author : Sergey RUIN +// Module : SALOME + +#ifndef SALOMEDSClient_AttributeTarget_HeaderFile +#define SALOMEDSClient_AttributeTarget_HeaderFile + +#include +#include "SALOMEDSClient_SObject.hxx" +#include "SALOMEDSClient_GenericAttribute.hxx" + +class SALOMEDSClient_AttributeTarget: public virtual SALOMEDSClient_GenericAttribute +{ +public: + virtual void Add(SALOMEDSClient_SObject* theObject) = 0; + virtual std::vector Get() = 0; + virtual void Remove(SALOMEDSClient_SObject* theObject) = 0; +}; + +#endif diff --git a/src/SALOMEDSClient/SALOMEDSClient_AttributeTextColor.hxx b/src/SALOMEDSClient/SALOMEDSClient_AttributeTextColor.hxx new file mode 100644 index 000000000..eccbd17c6 --- /dev/null +++ b/src/SALOMEDSClient/SALOMEDSClient_AttributeTextColor.hxx @@ -0,0 +1,21 @@ +// File : SALOMEDSClient_AttributeTextColor.hxx +// Author : Sergey RUIN +// Module : SALOME + +#ifndef SALOMEDSClient_AttributeTextColor_HeaderFile +#define SALOMEDSClient_AttributeTextColor_HeaderFile + +#include +#include "SALOMEDSClient_GenericAttribute.hxx" + +class SALOMEDSClient_AttributeTextColor: public virtual SALOMEDSClient_GenericAttribute +{ +public: + + virtual std::vector TextColor() = 0; + virtual void SetTextColor(const std::vector& value) = 0; + +}; + + +#endif diff --git a/src/SALOMEDSClient/SALOMEDSClient_AttributeTextHighlightColor.hxx b/src/SALOMEDSClient/SALOMEDSClient_AttributeTextHighlightColor.hxx new file mode 100644 index 000000000..b728393a1 --- /dev/null +++ b/src/SALOMEDSClient/SALOMEDSClient_AttributeTextHighlightColor.hxx @@ -0,0 +1,19 @@ +// File : SALOMEDSClient_AttributeTextHighlightColor.hxx +// Author : Sergey RUIN +// Module : SALOME + +#ifndef SALOMEDSClient_AttributeTextHighlightColor_HeaderFile +#define SALOMEDSClient_AttributeTextHighlightColor_HeaderFile + +#include +#include "SALOMEDSClient_GenericAttribute.hxx" + +class SALOMEDSClient_AttributeTextHighlightColor: public virtual SALOMEDSClient_GenericAttribute +{ +public: + virtual std::vector TextHighlightColor() = 0; + virtual void SetTextHighlightColor(const std::vector& value) = 0; +}; + + +#endif diff --git a/src/SALOMEDSClient/SALOMEDSClient_AttributeTreeNode.hxx b/src/SALOMEDSClient/SALOMEDSClient_AttributeTreeNode.hxx new file mode 100644 index 000000000..a035dd961 --- /dev/null +++ b/src/SALOMEDSClient/SALOMEDSClient_AttributeTreeNode.hxx @@ -0,0 +1,42 @@ +// File : SALOMEDSClient_AttributeTreeNode.hxx +// Author : Sergey RUIN +// Module : SALOME + +#ifndef SALOMEDSClient_AttributeTreeNode_HeaderFile +#define SALOMEDSClient_AttributeTreeNode_HeaderFile + +#include "SALOMEDSClient_GenericAttribute.hxx" + +class SALOMEDSClient_AttributeTreeNode +{ +public: + + virtual void SetFather(SALOMEDSClient_AttributeTreeNode* value) = 0; + virtual bool HasFather() = 0; + virtual SALOMEDSClient_AttributeTreeNode* GetFather() = 0; + virtual void SetPrevious(SALOMEDSClient_AttributeTreeNode* value) = 0; + virtual bool HasPrevious() = 0; + virtual SALOMEDSClient_AttributeTreeNode* GetPrevious() = 0; + virtual void SetNext(SALOMEDSClient_AttributeTreeNode* value) = 0; + virtual bool HasNext() = 0; + virtual SALOMEDSClient_AttributeTreeNode* GetNext() = 0; + virtual void SetFirst(SALOMEDSClient_AttributeTreeNode* value) = 0; + virtual bool HasFirst() = 0; + virtual SALOMEDSClient_AttributeTreeNode* GetFirst() = 0; + virtual void SetTreeID(const char* value) = 0; + virtual char* GetTreeID() = 0; + virtual void Append(SALOMEDSClient_AttributeTreeNode* value) = 0; + virtual void Prepend(SALOMEDSClient_AttributeTreeNode* value) = 0; + virtual void InsertBefore(SALOMEDSClient_AttributeTreeNode* value) = 0; + virtual void InsertAfter(SALOMEDSClient_AttributeTreeNode* value) = 0; + virtual void Remove() = 0; + virtual int Depth() = 0; + virtual bool IsRoot() = 0; + virtual bool IsDescendant(SALOMEDSClient_AttributeTreeNode* value) = 0; + virtual bool IsFather(SALOMEDSClient_AttributeTreeNode* value) = 0; + virtual bool IsChild(SALOMEDSClient_AttributeTreeNode* value) = 0; + virtual char* Label() = 0; + +}; + +#endif diff --git a/src/SALOMEDSClient/SALOMEDSClient_AttributeUserID.hxx b/src/SALOMEDSClient/SALOMEDSClient_AttributeUserID.hxx new file mode 100644 index 000000000..e18453849 --- /dev/null +++ b/src/SALOMEDSClient/SALOMEDSClient_AttributeUserID.hxx @@ -0,0 +1,22 @@ +// File : SALOMEDSClient_AttributeUserID.hxx +// Author : Sergey RUIN +// Module : SALOME + +#ifndef SALOMEDSClient_AttributeUserID_HeaderFile +#define SALOMEDSClient_AttributeUserID_HeaderFile + +#include "SALOMEDSClient_GenericAttribute.hxx" + +class SALOMEDSClient_AttributeUserID: public virtual SALOMEDSClient_GenericAttribute +{ +public: + + virtual char* Value() = 0; + virtual void SetValue(const char* value) = 0; + +}; + + + + +#endif diff --git a/src/SALOMEDSClient/SALOMEDSClient_ChildIterator.hxx b/src/SALOMEDSClient/SALOMEDSClient_ChildIterator.hxx new file mode 100644 index 000000000..e10274845 --- /dev/null +++ b/src/SALOMEDSClient/SALOMEDSClient_ChildIterator.hxx @@ -0,0 +1,19 @@ +// File : SALOMEDSClient_ChildIterator.hxx +// Author : Sergey RUIN +// Module : SALOME + +#ifndef __SALOMEDSClient_CHILDITERATOR_H__ +#define __SALOMEDSClient_CHILDITERATOR_H__ + +#include "SALOMEDSClient_SObject.hxx" + +class SALOMEDSClient_ChildIterator +{ +public: + virtual void Init() = 0; + virtual void InitEx(bool) = 0; + virtual bool More() = 0; + virtual void Next() = 0; + virtual SALOMEDSClient_SObject* Value() = 0; +}; +#endif diff --git a/src/SALOMEDSClient/SALOMEDSClient_GenericAttribute.hxx b/src/SALOMEDSClient/SALOMEDSClient_GenericAttribute.hxx index 3b7204d18..3ea5a5bd1 100644 --- a/src/SALOMEDSClient/SALOMEDSClient_GenericAttribute.hxx +++ b/src/SALOMEDSClient/SALOMEDSClient_GenericAttribute.hxx @@ -1,52 +1,23 @@ -// SALOME SALOMEDS : data structure of SALOME and sources of Salome data server -// -// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org -// -// -// -// File : SALOMEDSClient__GenericAttribute_i.hxx +// File : SALOMEDSClient__GenericAttribute.hxx // Author : Sergey RUIN // Module : SALOME #ifndef _GENERICCLIENT_ATTRIBUTE_HXX_ #define _GENERICCLIENT_ATTRIBUTE_HXX_ -#include #include //SALOMEDSClient headers #include "SALOMEDSClient_SObject.hxx" -class LockProtection : exception -{}; - - -class SALOMEDS_GenericAttribute: +class SALOMEDSClient_GenericAttribute { public: - void CheckLocked() throw (LockProtection) = 0; - string Store() = 0; - void Restore(const strin&) = 0; - string Type() = 0; - SALOMEDSClient_SObject* GetSObject() = 0; + virtual void CheckLocked() = 0; + virtual char* Type() = 0; + virtual char* GetClassType() = 0; + virtual SALOMEDSClient_SObject* GetSObject() = 0; }; #endif diff --git a/src/SALOMEDSClient/SALOMEDSClient_SComponent.hxx b/src/SALOMEDSClient/SALOMEDSClient_SComponent.hxx index 822bed6d5..f5615f3b7 100644 --- a/src/SALOMEDSClient/SALOMEDSClient_SComponent.hxx +++ b/src/SALOMEDSClient/SALOMEDSClient_SComponent.hxx @@ -1,26 +1,3 @@ -// SALOME SALOMEDS : data structure of SALOME and sources of Salome data server -// -// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org -// -// -// // File : SALOMEDSClient_SComponent.hxx // Author : Sergey RUIN // Module : SALOME @@ -28,19 +5,15 @@ #ifndef __SALOMEDSCLIENT_SCOMPONENT_H__ #define __SALOMEDSCLIENT_SCOMPONENT_H__ -// std C++ headers -#include - //SALOMEDSClient headers -#include "SALOMEDS_SObject_i.hxx" - +#include "SALOMEDSClient_SObject.hxx" -class SALOMEDSClient_SComponent: public SALOMEDSClient_SObject +class SALOMEDSClient_SComponent: public virtual SALOMEDSClient_SObject { public: - virtual string ComponentDataType(); - virtual bool ComponentIOR(srting& theID); + virtual char* ComponentDataType() = 0; + virtual bool ComponentIOR(char* theID) = 0; }; #endif diff --git a/src/SALOMEDSClient/SALOMEDSClient_SComponentIterator.hxx b/src/SALOMEDSClient/SALOMEDSClient_SComponentIterator.hxx new file mode 100644 index 000000000..661527ae5 --- /dev/null +++ b/src/SALOMEDSClient/SALOMEDSClient_SComponentIterator.hxx @@ -0,0 +1,18 @@ +// File : SALOMEDSClient_SComponentIterator.hxx +// Author : Sergey RUIN +// Module : SALOME + +#ifndef __SALOMEDSClient_SCOMPONENTITERATOR_H__ +#define __SALOMEDSClient_SCOMPONENTITERATOR_H__ + +#include "SALOMEDSClient_SComponent.hxx" + +class SALOMEDSClient_SComponentIterator +{ +public: + virtual void Init() = 0; + virtual bool More() = 0; + virtual void Next() = 0; + virtual SALOMEDSClient_SComponent* Value() = 0; +}; +#endif diff --git a/src/SALOMEDSClient/SALOMEDSClient_SObject.hxx b/src/SALOMEDSClient/SALOMEDSClient_SObject.hxx index 44dc0ce55..35914f7c8 100644 --- a/src/SALOMEDSClient/SALOMEDSClient_SObject.hxx +++ b/src/SALOMEDSClient/SALOMEDSClient_SObject.hxx @@ -1,61 +1,34 @@ -// SALOME SALOMEDS : data structure of SALOME and sources of Salome data server -// -// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org -// -// -// // File : SALOMEDSClient_SObject.hxx // Author : Sergey RUIN // Module : SALOME -#ifndef __SALOMEDSCLIENT_SOBJECT_I_H__ -#define __SALOMEDSCLIENT_SOBJECT_I_H__ +#ifndef __SALOMEDSCLIENT_SOBJECT_H__ +#define __SALOMEDSCLIENT_SOBJECT_H__ // std C++ headers #include -#include -//SALOMEDSClient headers -#include -#include -//#include +class SALOMEDSClient_Study; +class SALOMEDSClient_SComponent; +class SALOMEDSClient_GenericAttribute; class SALOMEDSClient_SObject { - public: - - virtual string GetID() = 0; + virtual char* GetID() = 0; virtual SALOMEDSClient_SComponent* GetFatherComponent() = 0; virtual SALOMEDSClient_SObject* GetFather() = 0; - virtual bool FindAttribute(SALOMEDSClient_GenericAttribute* anAttribute, const strin& aTypeOfAttribute) = 0; + virtual bool FindAttribute(SALOMEDSClient_GenericAttribute* anAttribute, const char* aTypeOfAttribute) = 0; virtual bool ReferencedObject(SALOMEDSClient_SObject* theObject) = 0; - virtual bool FindSubObject(long theTag, SALOMEDSClient_SObject* theObject) = 0; - //virtual SALOMEDSClient_Study* GetStudy() = 0; - virtual string Name() = 0; - virtual void Name(const string& theName) = 0; - virtual vector GetAllAttributes() = 0; - virtual string GetName() = 0; - virtual string GetComment() = 0; - virtual string GetIOR() = 0; - virtual short Tag() = 0; - virtual short Depth() = 0; + virtual bool FindSubObject(int theTag, SALOMEDSClient_SObject* theObject) = 0; + virtual SALOMEDSClient_Study* GetStudy() = 0; + virtual char* Name() = 0; + virtual void Name(const char* theName) = 0; + virtual std::vector GetAllAttributes() = 0; + virtual char* GetName() = 0; + virtual char* GetComment() = 0; + virtual char* GetIOR() = 0; + virtual int Tag() = 0; + virtual int Depth() = 0; }; #endif diff --git a/src/SALOMEDSClient/SALOMEDSClient_Study.hxx b/src/SALOMEDSClient/SALOMEDSClient_Study.hxx new file mode 100644 index 000000000..92d68a33c --- /dev/null +++ b/src/SALOMEDSClient/SALOMEDSClient_Study.hxx @@ -0,0 +1,63 @@ +// File : SALOMEDSClient_Study.hxx +// Author : Sergey RUIN +// Module : SALOME + +#ifndef __SALOMEDSClient_STUDY_H__ +#define __SALOMEDSClient_STUDY_H__ + +#include +#include + +#include "SALOMEDSClient_SComponentIterator.hxx" +#include "SALOMEDSClient_StudyBuilder.hxx" +#include "SALOMEDSClient_SObject.hxx" +#include "SALOMEDSClient_SComponent.hxx" +#include "SALOMEDSClient_UseCaseBuilder.hxx" +#include "SALOMEDSClient_AttributeStudyProperties.hxx" +#include "SALOMEDSClient_ChildIterator.hxx" + +class SALOMEDSClient_Study +{ + +public: + + virtual char* GetPersistentReference() = 0; + virtual char* GetTransientReference() = 0; + virtual bool IsEmpty() = 0; + virtual SALOMEDSClient_SComponent* FindComponent (const char* aComponentName) = 0; + virtual SALOMEDSClient_SComponent* FindComponentID(const char* aComponentID) = 0; + virtual SALOMEDSClient_SObject* FindObject(const char* anObjectName) = 0; + virtual std::vector FindObjectByName( const char* anObjectName, const char* aComponentName ) = 0; + virtual SALOMEDSClient_SObject* FindObjectID(const char* anObjectID) = 0; + virtual SALOMEDSClient_SObject* CreateObjectID(const char* anObjectID) = 0; + virtual SALOMEDSClient_SObject* FindObjectIOR(const char* anObjectIOR) = 0; + virtual SALOMEDSClient_SObject* FindObjectByPath(const char* thePath) = 0; + virtual char* GetObjectPath(SALOMEDSClient_SObject* theSO) = 0; + virtual void SetContext(const char* thePath) = 0; + virtual char* GetContext() = 0; + virtual std::vector GetObjectNames(const char* theContext) = 0; + virtual std::vector GetDirectoryNames(const char* theContext) = 0; + virtual std::vector GetFileNames(const char* theContext) = 0; + virtual std::vector GetComponentNames(const char* theContext) = 0; + virtual SALOMEDSClient_ChildIterator* NewChildIterator(SALOMEDSClient_SObject* theSO) = 0; + virtual SALOMEDSClient_SComponentIterator* NewComponentIterator() = 0; + virtual SALOMEDSClient_StudyBuilder* NewBuilder() = 0; + virtual char* Name() = 0; + virtual void Name(const char* name) = 0; + virtual bool IsSaved() = 0; + virtual void IsSaved(bool save) = 0; + virtual bool IsModified() = 0; + virtual char* URL() = 0; + virtual void URL(const char* url) = 0; + virtual int StudyId() = 0; + virtual void StudyId(int id) = 0; + virtual std::vector FindDependances(SALOMEDSClient_SObject* theSO) = 0; + virtual SALOMEDSClient_AttributeStudyProperties* GetProperties() = 0; + virtual char* GetLastModificationDate() = 0; + virtual std::vector GetModificationsDate() = 0; + virtual SALOMEDSClient_UseCaseBuilder* GetUseCaseBuilder() = 0; + virtual void Close() = 0; + virtual void EnableUseCaseAutoFilling(bool isEnabled) = 0; + virtual bool DumpStudy(const char* thePath, const char* theBaseName, bool isPublished) = 0; +}; +#endif diff --git a/src/SALOMEDSClient/SALOMEDSClient_StudyBuilder.hxx b/src/SALOMEDSClient/SALOMEDSClient_StudyBuilder.hxx new file mode 100644 index 000000000..adea93673 --- /dev/null +++ b/src/SALOMEDSClient/SALOMEDSClient_StudyBuilder.hxx @@ -0,0 +1,48 @@ +// File : SALOMEDSClient_StudyBuilder.hxx +// Author : Sergey RUIN +// Module : SALOME + +#ifndef __SALOMEDSClient_STUDYBUILDER_H__ +#define __SALOMEDSClient_STUDYBUILDER_H__ + +#include "SALOMEDSClient_SObject.hxx" +#include "SALOMEDSClient_SComponent.hxx" +#include "SALOMEDSClient_GenericAttribute.hxx" + +class SALOMEDSClient_StudyBuilder +{ +public: + virtual SALOMEDSClient_SComponent* NewComponent(const char* ComponentDataType) = 0; + virtual void DefineComponentInstance (SALOMEDSClient_SComponent*, const char* ComponentIOR) = 0; + virtual void RemoveComponent(SALOMEDSClient_SComponent* theSCO) = 0; + virtual SALOMEDSClient_SObject* NewObject(SALOMEDSClient_SObject* theFatherObject) = 0; + virtual SALOMEDSClient_SObject* NewObjectToTag(SALOMEDSClient_SObject* theFatherObject, int theTag) = 0; + virtual void AddDirectory(const char* thePath) = 0; + virtual void LoadWith(SALOMEDSClient_SComponent* theSCO, const char* theIOR) = 0; + virtual void Load(SALOMEDSClient_SObject* theSCO) = 0; + virtual void RemoveObject(SALOMEDSClient_SObject* theSO) = 0; + virtual void RemoveObjectWithChildren(SALOMEDSClient_SObject* theSO) = 0; + virtual SALOMEDSClient_GenericAttribute* FindOrCreateAttribute(SALOMEDSClient_SObject* theSO, const char* aTypeOfAttribute) = 0; + virtual bool FindAttribute(SALOMEDSClient_SObject* theSO, + SALOMEDSClient_GenericAttribute* theAttribute, + const char* aTypeOfAttribute) = 0; + virtual void RemoveAttribute(SALOMEDSClient_SObject* theSO, const char* aTypeOfAttribute) = 0; + virtual void Addreference(SALOMEDSClient_SObject* me, SALOMEDSClient_SObject* thereferencedObject) = 0; + virtual void RemoveReference(SALOMEDSClient_SObject* me) = 0; + virtual void SetGUID(SALOMEDSClient_SObject* theSO, const char* theGUID) = 0; + virtual bool IsGUID(SALOMEDSClient_SObject* theSO, const char* theGUID) = 0; + virtual void NewCommand() = 0; + virtual void CommitCommand()= 0; + virtual bool HasOpenCommand() = 0; + virtual void AbortCommand() = 0; + virtual void Undo() = 0; + virtual void Redo() = 0; + virtual bool GetAvailableUndos() = 0; + virtual bool GetAvailableRedos() = 0; + virtual int UndoLimit() = 0; + virtual void UndoLimit(int theLimit) = 0; + virtual void SetName(SALOMEDSClient_SObject* theSO, const char* theValue) = 0; + virtual void SetComment(SALOMEDSClient_SObject* theSO, const char* theValue) = 0; + virtual void SetIOR(SALOMEDSClient_SObject* theSO, const char* theValue) = 0; +}; +#endif diff --git a/src/SALOMEDSClient/SALOMEDSClient_StudyManager.hxx b/src/SALOMEDSClient/SALOMEDSClient_StudyManager.hxx new file mode 100644 index 000000000..43c6fcd37 --- /dev/null +++ b/src/SALOMEDSClient/SALOMEDSClient_StudyManager.hxx @@ -0,0 +1,34 @@ +// File : SALOMEDSClient_StudyManager.hxx +// Author : Sergey RUIN +// Module : SALOME + +#ifndef __SALOMEDSClient_STUDYMANAGER_H__ +#define __SALOMEDSClient_STUDYMANAGER_H__ + +#include +#include + +#include "SALOMEDSClient_Study.hxx" + +class SALOMEDSClient_StudyManager +{ +public: + + virtual SALOMEDSClient_Study* NewStudy(const char* study_name) = 0; + virtual SALOMEDSClient_Study* Open(const char* theStudyUrl) = 0; + virtual void Close( SALOMEDSClient_Study* theStudy) = 0; + virtual void Save( SALOMEDSClient_Study* theStudy, bool theMultiFile) = 0; + virtual void SaveASCII( SALOMEDSClient_Study* theStudy, bool theMultiFile) = 0; + virtual void SaveAs(const char* theUrl, SALOMEDSClient_Study* theStudy, bool theMultiFile) = 0; + virtual void SaveAsASCII(const char* theUrl, SALOMEDSClient_Study* theStudy, bool theMultiFile) = 0; + virtual std::vector GetOpenStudies() = 0; + virtual SALOMEDSClient_Study* GetStudyByName(const char* theStudyName) = 0; + virtual SALOMEDSClient_Study* GetStudyByID(int theStudyID) = 0; + virtual bool CanCopy(SALOMEDSClient_SObject* theSO) = 0; + virtual bool Copy(SALOMEDSClient_SObject* theSO) = 0; + virtual bool CanPaste(SALOMEDSClient_SObject* theSO) = 0; + virtual SALOMEDSClient_SObject* Paste(SALOMEDSClient_SObject* theSO) = 0; + +}; + +#endif diff --git a/src/SALOMEDSClient/SALOMEDSClient_UseCaseBuilder.hxx b/src/SALOMEDSClient/SALOMEDSClient_UseCaseBuilder.hxx new file mode 100644 index 000000000..08c3d1f4c --- /dev/null +++ b/src/SALOMEDSClient/SALOMEDSClient_UseCaseBuilder.hxx @@ -0,0 +1,30 @@ +// File : SALOMEDSClient_UseCaseBuilder.hxx +// Author : Sergey RUIN +// Module : SALOME + +#ifndef __SALOMEDSClient_USECaseBuilder_H__ +#define __SALOMEDSClient_USECaseBuilder_H__ + +#include "SALOMEDSClient_UseCaseIterator.hxx" +#include "SALOMEDSClient_SObject.hxx" + +class SALOMEDSClient_UseCaseBuilder +{ +public: + + virtual bool Append(SALOMEDSClient_SObject* theObject) = 0; + virtual bool Remove(SALOMEDSClient_SObject* theObject) = 0; + virtual bool AppendTo(SALOMEDSClient_SObject* theFather, SALOMEDSClient_SObject* theObject) = 0; + virtual bool InsertBefore(SALOMEDSClient_SObject* theFirst, SALOMEDSClient_SObject* theNext) = 0; + virtual bool SetCurrentObject(SALOMEDSClient_SObject* theObject) = 0; + virtual bool SetRootCurrent() = 0; + virtual bool HasChildren(SALOMEDSClient_SObject* theObject) = 0; + virtual bool IsUseCase(SALOMEDSClient_SObject* theObject) = 0; + virtual bool SetName(const char* theName) = 0; + virtual SALOMEDSClient_SObject* GetCurrentObject() = 0; + virtual char* GetName() = 0; + virtual SALOMEDSClient_SObject* AddUseCase(const char* theName) = 0; + virtual SALOMEDSClient_UseCaseIterator* GetUseCaseIterator(SALOMEDSClient_SObject* anObject) = 0; + +}; +#endif diff --git a/src/SALOMEDSClient/SALOMEDSClient_UseCaseIterator.hxx b/src/SALOMEDSClient/SALOMEDSClient_UseCaseIterator.hxx new file mode 100644 index 000000000..13496872f --- /dev/null +++ b/src/SALOMEDSClient/SALOMEDSClient_UseCaseIterator.hxx @@ -0,0 +1,19 @@ +// File : SALOMEDSClient_UseCaseIterator.hxx +// Author : Sergey RUIN +// Module : SALOME + +#ifndef __SALOMEDSClient_USECASEITERATOR_H__ +#define __SALOMEDSClient_USECASEITERATOR_H__ + +#include "SALOMEDSClient_SObject.hxx" + +class SALOMEDSClient_UseCaseIterator +{ + +public: + virtual void Init(bool) = 0; + virtual bool More() = 0; + virtual void Next() = 0; + virtual SALOMEDSClient_SObject* Value() = 0; +}; +#endif