]> SALOME platform Git repositories - modules/hydro.git/blobdiff - src/HYDROData/HYDROData_Iterator.h
Salome HOME
Image positioning by two points.
[modules/hydro.git] / src / HYDROData / HYDROData_Iterator.h
index 617d54d4a94ab5390315ea021e2c883997bb62b8..409787fc600db769b7da61cbbc4a01f28c9b306c 100644 (file)
@@ -1,8 +1,8 @@
+
 #ifndef HYDROData_Iterator_HeaderFile
 #define HYDROData_Iterator_HeaderFile
 
-#include <HYDROData_Object.h>
-#include <HYDROData_Document.h>
+#include "HYDROData_Document.h"
 
 #include <TDF_ChildIDIterator.hxx>
 
@@ -37,12 +37,22 @@ public:
   /**
    * Returns the current object of the iterator.
    */
-  HYDRODATA_EXPORT Handle(HYDROData_Object) Current();
+  HYDRODATA_EXPORT Handle(HYDROData_Entity) Current();
+
+public:
+
+  /**
+   * Creates object in the document on the given label
+   * \param theDoc document where object will be located
+   * \param theKind kind of the new object, can not be UNKNOWN
+   */
+  static Handle(HYDROData_Entity) CreateObject( TDF_Label&        theNewLabel, 
+                                                const ObjectKind& theObjectKind );
 
 protected:
 
   friend class HYDROData_Document;
-  friend class HYDROData_Image;
+  friend class HYDROData_Entity;
 
   /**
    * Creates object in the document, call HYDROData_Document method to create 
@@ -50,13 +60,14 @@ protected:
    * \param theDoc document where object will be located
    * \param theKind kind of the new object, can not be UNKNOWN
    */
-  static Handle_HYDROData_Object CreateObject(
-    Handle_HYDROData_Document theDoc, ObjectKind theKind);
+  static Handle(HYDROData_Entity) CreateObject(
+    const Handle(HYDROData_Document)& theDoc,
+    const ObjectKind&                 theObjectKind );
 
   /**
    * Returns object associated to the given label.
    */
-  static Handle_HYDROData_Object Object(const TDF_Label theLabel);
+  static Handle(HYDROData_Entity) Object( const TDF_Label& theLabel );
 
   TDF_ChildIDIterator myIter; ///< iterator by the objects in the document
 };