Salome HOME
First stable version after merging with V3_2_2
[modules/kernel.git] / src / ModuleCatalog / SALOME_ModuleCatalog_Handler.cxx
index 19275eec58bed30a1e24959ca66b44faaaf88dd8..82f1710b81e4f3892d811108114a90eb34d85da0 100644 (file)
@@ -17,7 +17,7 @@
 //  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 
+// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 //
 //
 //
@@ -33,6 +33,7 @@
 #include "utilities.h"
 
 #include <sstream>
+using namespace std;
 
 #ifdef _DEBUG_
 static int MYDEBUG = 0;
@@ -60,6 +61,8 @@ SALOME_ModuleCatalog_Handler::SALOME_ModuleCatalog_Handler()
   test_component_multistudy = "component-multistudy";
   test_component_icon       = "component-icone" ;
   test_component_impltype   = "component-impltype";
+  test_component_version    = "component-version";
+  test_component_comment    = "component-comment";
 
   test_interface_name       = "component-interface-name" ;
   
@@ -255,6 +258,18 @@ bool SALOME_ModuleCatalog_Handler::endElement(const QString&,
      return true;
    }
 
+  // tag test_component_version
+   if((qName.compare(test_component_version)==0)) {
+     _aModule.version = content ;
+     return true;
+   }
+
+  // tag test_component_comment
+   if((qName.compare(test_component_comment)==0)) {
+     _aModule.comment = content ;
+     return true;
+   }
+
    // interface identification
 
    // tag test_interface_name