Salome HOME
0021308: Remove hard-coded dependency of the external mesh plugins from the SMESH...
authoreap <eap@opencascade.com>
Wed, 7 Mar 2012 14:58:06 +0000 (14:58 +0000)
committereap <eap@opencascade.com>
Wed, 7 Mar 2012 14:58:06 +0000 (14:58 +0000)
commitb0d8fa70d6b49c7e68d172ae6c44aad8300852f6
tree51face1c4ecc60b363c16e6c66ff1fc361ae4e11
parentf5efe8066bf950115dc8e92201c0d4e35b7040b2
0021308: Remove hard-coded dependency of the external mesh plugins from the SMESH module

  Map names of variables set via SetVarParameter() to the method name setting them

+  void SetVarParameter (const char* parameter, const char* method);
+  char* GetVarParameter (const char* methodName);

+  std::map< std::string, std::string > myMethod2VarParams; // variable parameters
+
+ public:
+  // Methods for backward compatibility of notebook variables
+  virtual void setOldParameters (const char* theParameters);
+  virtual std::string getMethodOfParameter(const int paramIndex, int nbVars) const { return ""; }
+  virtual int getParamIndex(const TCollection_AsciiString& method, int nbVars) const { return -1; }
 };

 // ======================================================
src/SMESH_I/SMESH_Hypothesis_i.cxx
src/SMESH_I/SMESH_Hypothesis_i.hxx