Changeset View
Changeset View
Standalone View
Standalone View
src/backends/julia/juliaserver/juliaserver.h
Show First 20 Lines • Show All 69 Lines • ▼ Show 20 Line(s) | 44 | public Q_SLOTS: | |||
---|---|---|---|---|---|
70 | /** | 70 | /** | ||
71 | * @return indicator that exception was triggered during last command | 71 | * @return indicator that exception was triggered during last command | ||
72 | * execution | 72 | * execution | ||
73 | */ | 73 | */ | ||
74 | Q_SCRIPTABLE bool getWasException() const; | 74 | Q_SCRIPTABLE bool getWasException() const; | ||
75 | 75 | | |||
76 | /** | 76 | /** | ||
77 | * Reparse internal julia module and update list of variables and functions | 77 | * Reparse internal julia module and update list of variables and functions | ||
78 | * | ||||
79 | * @param variableManagement true, if Variable Management enabled for this session | ||||
78 | */ | 80 | */ | ||
79 | Q_SCRIPTABLE void parseModules(); | 81 | Q_SCRIPTABLE void parseModules(bool variableManagement); | ||
80 | 82 | | |||
81 | /** | 83 | /** | ||
82 | * @return list of variables in internal Julia's module | 84 | * @return list of variables in internal Julia's module | ||
83 | */ | 85 | */ | ||
84 | Q_SCRIPTABLE QStringList variablesList(); | 86 | Q_SCRIPTABLE QStringList variablesList(); | ||
85 | 87 | | |||
86 | /** | 88 | /** | ||
87 | * @return corresponding list of values for variables from variablesList. | 89 | * @return corresponding list of values for variables from variablesList. | ||
88 | */ | 90 | */ | ||
89 | Q_SCRIPTABLE QStringList variableValuesList(); | 91 | Q_SCRIPTABLE QStringList variableValuesList(); | ||
90 | 92 | | |||
91 | /** | 93 | /** | ||
92 | * @return list of function in internal Julia's module | 94 | * @return list of function in internal Julia's module | ||
93 | */ | 95 | */ | ||
94 | Q_SCRIPTABLE QStringList functionsList(); | 96 | Q_SCRIPTABLE QStringList functionsList(); | ||
95 | 97 | | |||
96 | private: | 98 | private: | ||
97 | void parseJlModule(jl_module_t* module); | 99 | void parseJlModule(jl_module_t* module, bool parseValue); | ||
98 | 100 | | |||
99 | QString fromJuliaString(const jl_value_t* value); | 101 | QString fromJuliaString(const jl_value_t* value); | ||
100 | private: | 102 | private: | ||
101 | QString m_error; //< Stores last stderr output | 103 | QString m_error; //< Stores last stderr output | ||
102 | QString m_output; //< Stores last stdout output | 104 | QString m_output; //< Stores last stdout output | ||
103 | bool m_was_exception; //< Stores indicator of exception | 105 | bool m_was_exception; //< Stores indicator of exception | ||
104 | QStringList parsedModules; | 106 | QStringList parsedModules; | ||
105 | QStringList m_variables; | 107 | QStringList m_variables; | ||
106 | QStringList m_variableValues; | 108 | QStringList m_variableValues; | ||
107 | QStringList m_functions; | 109 | QStringList m_functions; | ||
108 | static QStringList INTERNAL_VARIABLES; | 110 | static QStringList INTERNAL_VARIABLES; | ||
109 | }; | 111 | }; |