From 5309c82dafc555524c245bea149439b30ddb3a0b Mon Sep 17 00:00:00 2001 From: ouv Date: Wed, 9 Dec 2009 12:40:25 +0000 Subject: [PATCH] Refactoring --- src/SMESH_I/SMESH_Hypothesis_i.cxx | 40 ++++++++++++++++++++++++++++++ src/SMESH_I/SMESH_Hypothesis_i.hxx | 12 +++++++++ src/SMESH_I/SMESH_Mesh_i.cxx | 39 +++++++++++++++++++++++++++++ 3 files changed, 91 insertions(+) diff --git a/src/SMESH_I/SMESH_Hypothesis_i.cxx b/src/SMESH_I/SMESH_Hypothesis_i.cxx index 5202b4abf..998ca015d 100644 --- a/src/SMESH_I/SMESH_Hypothesis_i.cxx +++ b/src/SMESH_I/SMESH_Hypothesis_i.cxx @@ -138,6 +138,36 @@ bool SMESH_Hypothesis_i::IsPublished(){ return res; } +//============================================================================= +/*! + * SMESH_Hypothesis_i::GetEntry() + */ +//============================================================================= +char* SMESH_Hypothesis_i::GetEntry() +{ + return NULL; +} + +//============================================================================= +/*! + * SMESH_Hypothesis_i::GetComponent() + */ +//============================================================================= +char* SMESH_Hypothesis_i::GetComponent() +{ + return CORBA::string_dup( "SMESH" ); +} + +//============================================================================= +/*! + * SMESH_Hypothesis_i::IsValid() + */ +//============================================================================= +char* SMESH_Hypothesis_i::IsValid() +{ + return true; +} + //============================================================================= /*! * SMESH_Hypothesis_i::SetParameters() @@ -186,6 +216,16 @@ SALOME::StringArray* SMESH_Hypothesis_i::GetParameters() return NULL; } +//============================================================================= +/*! + * SMESH_Hypothesis_i::Update() + * + */ +//============================================================================= +void SMESH_Hypothesis_i::Update( SALOME::Notebook_ptr theNotebook ) +{ +} + //============================================================================= /*! * SMESH_Hypothesis_i::GetImpl diff --git a/src/SMESH_I/SMESH_Hypothesis_i.hxx b/src/SMESH_I/SMESH_Hypothesis_i.hxx index 7f738567e..6add2c263 100644 --- a/src/SMESH_I/SMESH_Hypothesis_i.hxx +++ b/src/SMESH_I/SMESH_Hypothesis_i.hxx @@ -65,12 +65,24 @@ public: // Get unique id of hypothesis CORBA::Long GetId(); + // ... + virtual char* GetEntry(); + + // ... + virtual char* GetComponent(); + + // ... + virtual CORBA::Boolean IsValid(); + // Set list of parameters, used for Hypothesis creation virtual void SetParameters( SALOME::Notebook_ptr theNotebook, const SALOME::StringArray& theParameters ); // Return list of notebook variables used for Hypothesis creation virtual SALOME::StringArray* GetParameters(); + // ... + virtual void Update( SALOME::Notebook_ptr theNotebook ); + //Return true if hypothesis was published in study bool IsPublished(); diff --git a/src/SMESH_I/SMESH_Mesh_i.cxx b/src/SMESH_I/SMESH_Mesh_i.cxx index 09ef926b5..f9818dc36 100644 --- a/src/SMESH_I/SMESH_Mesh_i.cxx +++ b/src/SMESH_I/SMESH_Mesh_i.cxx @@ -3378,6 +3378,36 @@ void SMESH_Mesh_i::checkGroupNames() } } +//============================================================================= +/*! + * \brief ... + */ +//============================================================================= +char* SMESH_Mesh_i::GetEntry() +{ + return NULL; +} + +//============================================================================= +/*! + * \brief ... + */ +//============================================================================= +char* SMESH_Mesh_i::GetComponent() +{ + return CORBA::string_dup( "SMESH" ); +} + +//============================================================================= +/*! + * \brief ... + */ +//============================================================================= +char* SMESH_Mesh_i::IsValid() +{ + return true; +} + //============================================================================= /*! * \brief Sets list of notebook variables used for Mesh operations separated by ":" symbol @@ -3397,6 +3427,15 @@ SALOME::StringArray* SMESH_Mesh_i::GetParameters() return NULL; } +//============================================================================= +/*! + * \brief ... + */ +//============================================================================= +void SMESH_Mesh_i::Update( SALOME::Notebook_ptr theNotebook ) +{ +} + //============================================================================= /*! * \brief Returns statistic of mesh elements