]> SALOME platform Git repositories - modules/yacs.git/blobdiff - src/py2yacs/py2yacs.hxx
Salome HOME
New Py2YacsDialog using PyEditor_Window.
[modules/yacs.git] / src / py2yacs / py2yacs.hxx
index ee052cdf31e8d86102538d43b4dd7686059e84da..76d82dede7773f666b27f937b2d260bbfef56059 100644 (file)
@@ -104,9 +104,29 @@ class PY2YACSLIB_EXPORT Py2yacs
      */
     YACS::ENGINE::Proc* createProc(const std::string& python_function)const;
     
+    /*!
+     * Syntax errors when parsing python and py2yacs global errors.
+     * \return a list of errors.
+     */
     const std::list<std::string>& getGlobalErrors() const;
+
     const std::list<FunctionProperties>& getFunctionProperties()const;
 
+    /*!
+     * Get a string containing global errors and errors specific to py2yacs for
+     * every function in python script.
+     * An empty string means there is no error.
+     */
+    std::string getAllErrors()const;
+
+    /*!
+     * Same as getAllErrors but only for one function.
+     * py2yacs errors for other functions are ignored.
+     * If the function name is not found, you get an error message in the
+     * returned string.
+     */
+    std::string getFunctionErrors(const std::string& functionName)const;
+
   private:
     std::string _python_parser_module;
     std::string _python_parser_function;