Salome HOME
refs #417: showing new objects
[modules/hydro.git] / src / HYDROData / HYDROData_Iterator.h
index 409787fc600db769b7da61cbbc4a01f28c9b306c..d09d360dab383eab5be0733c3e18127c86773ea0 100644 (file)
@@ -21,8 +21,8 @@ public:
    * \param theDoc document to iterate
    * \param theKind kind of the iterated object, can be UNKNOWN: to iterate all objects
    */
-  HYDRODATA_EXPORT HYDROData_Iterator(Handle(HYDROData_Document) theDoc,
-                                      ObjectKind theKind = KIND_UNKNOWN);
+  HYDRODATA_EXPORT HYDROData_Iterator( const Handle(HYDROData_Document)& theDoc,
+                                       const ObjectKind theKind = KIND_UNKNOWN);
 
   /**
    * Iterates to the next object
@@ -46,8 +46,15 @@ public:
    * \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 );
+  static HYDRODATA_EXPORT Handle(HYDROData_Entity) CreateObject(
+    TDF_Label&        theNewLabel, 
+    const ObjectKind& theObjectKind );
+
+  /**
+   * Returns object associated to the given label.
+   */
+  static HYDRODATA_EXPORT Handle(HYDROData_Entity) Object( 
+    const TDF_Label& theLabel );
 
 protected:
 
@@ -64,11 +71,6 @@ protected:
     const Handle(HYDROData_Document)& theDoc,
     const ObjectKind&                 theObjectKind );
 
-  /**
-   * Returns object associated to the given label.
-   */
-  static Handle(HYDROData_Entity) Object( const TDF_Label& theLabel );
-
   TDF_ChildIDIterator myIter; ///< iterator by the objects in the document
 };