Salome HOME
Implement Shutdown() method for the SALOME Session server
[modules/kernel.git] / src / SALOMEDSImpl / SALOMEDSImpl_SObject.hxx
index 80d797e412722e389a5ae61c4f64d15040d6b0b1..950333ca84cb60b63e31ad65e1df93c5bc575488 100644 (file)
@@ -1,29 +1,34 @@
-// Copyright (C) 2005  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+// Copyright (C) 2007-2011  CEA/DEN, EDF R&D, OPEN CASCADE
+//
+// Copyright (C) 2003-2007  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 
+// 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 
+//
+// 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 
+// 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.salome-platform.org/ or email : webmaster.salome@opencascade.com
 //
+
 //  File   : SALOMEDSImpl_SObject.hxx
 //  Author : Sergey RUIN
 //  Module : SALOME
-
+//
 #ifndef __SALOMEDSIMPL_SOBJECT_H__
 #define __SALOMEDSIMPL_SOBJECT_H__
 
+#include "SALOMEDSImpl_Defines.hxx"
+
 #include "DF_Label.hxx"
 #include "DF_Attribute.hxx"
 #include <string>
@@ -32,7 +37,7 @@
 class SALOMEDSImpl_SComponent;
 class SALOMEDSImpl_Study;
 
-class SALOMEDSImpl_SObject
+class SALOMEDSIMPL_EXPORT SALOMEDSImpl_SObject
 {
 protected:
   DF_Label     _lab;
@@ -41,45 +46,46 @@ protected:
   std::string  _type;
 
 public:
-  
-  Standard_EXPORT SALOMEDSImpl_SObject();
-  Standard_EXPORT SALOMEDSImpl_SObject(const DF_Label& theLabel);
-  Standard_EXPORT SALOMEDSImpl_SObject(const SALOMEDSImpl_SObject& theSObject);
-  Standard_EXPORT virtual ~SALOMEDSImpl_SObject();
-  
-  Standard_EXPORT virtual std::string GetID() const;
-  Standard_EXPORT virtual SALOMEDSImpl_SComponent GetFatherComponent() const;
-  Standard_EXPORT virtual SALOMEDSImpl_SObject GetFather() const ;
-  Standard_EXPORT virtual bool FindAttribute(DF_Attribute*& theAttribute, const std::string& theTypeOfAttribute) const;
-  Standard_EXPORT virtual bool ReferencedObject(SALOMEDSImpl_SObject& theObject) const ;
-  Standard_EXPORT virtual bool FindSubObject(int theTag, SALOMEDSImpl_SObject& theObject);
 
-  Standard_EXPORT virtual SALOMEDSImpl_Study*  GetStudy() const;
-  Standard_EXPORT virtual std::string Name() const { return _name; }
-  Standard_EXPORT virtual void Name(const std::string& theName) { _name = theName; }
-  Standard_EXPORT virtual std::vector<DF_Attribute*> GetAllAttributes() const; 
+  SALOMEDSImpl_SObject();
+  SALOMEDSImpl_SObject(const DF_Label& theLabel);
+  SALOMEDSImpl_SObject(const SALOMEDSImpl_SObject& theSObject);
+  virtual ~SALOMEDSImpl_SObject();
+
+  virtual std::string GetID() const;
+  virtual SALOMEDSImpl_SComponent GetFatherComponent() const;
+  virtual SALOMEDSImpl_SObject GetFather() const ;
+  virtual bool FindAttribute(DF_Attribute*& theAttribute, const std::string& theTypeOfAttribute) const;
+  virtual bool ReferencedObject(SALOMEDSImpl_SObject& theObject) const ;
+  virtual bool FindSubObject(int theTag, SALOMEDSImpl_SObject& theObject);
+
+  virtual SALOMEDSImpl_Study*  GetStudy() const;
+  virtual std::string Name() const { return _name; }
+  virtual void Name(const std::string& theName) { _name = theName; }
+  virtual std::vector<DF_Attribute*> GetAllAttributes() const; 
+
+  virtual std::string GetName() const ;
+  virtual std::string GetComment() const;
+  virtual std::string GetIOR() const;
+  virtual void SetAttrString(const std::string& name,const std::string& value);
+
+  virtual int Tag() const { return _lab.Tag(); }
+  virtual int Depth() const { return _lab.Depth(); }
 
-  Standard_EXPORT virtual std::string GetName() const ;
-  Standard_EXPORT virtual std::string GetComment() const;
-  Standard_EXPORT virtual std::string GetIOR() const;
+  virtual DF_Label GetLabel() const { return _lab; }   
 
-  Standard_EXPORT virtual int Tag() const { return _lab.Tag(); }
-  Standard_EXPORT virtual int Depth() const { return _lab.Depth(); }
+  bool IsNull() const { return _lab.IsNull(); }
 
-  Standard_EXPORT virtual DF_Label GetLabel() const { return _lab; }   
+  bool IsComponent() const;
 
-  Standard_EXPORT bool IsNull() const { return _lab.IsNull(); }
+  operator SALOMEDSImpl_SComponent() const; 
 
-  Standard_EXPORT bool IsComponent() const;
+  operator bool () const { return !IsNull(); }
 
-  Standard_EXPORT operator SALOMEDSImpl_SComponent() const; 
+  SALOMEDSImpl_SObject* GetPersistentCopy() const;
 
-  Standard_EXPORT operator bool () const { return !IsNull(); }
-  
-  Standard_EXPORT SALOMEDSImpl_SObject* GetPersistentCopy() const;
+  static std::string GetGUID(const std::string& theTypeOfAttribute);
 
-  Standard_EXPORT static std::string GetGUID(const std::string& theTypeOfAttribute);
 
-  
 };
 #endif