20 std::string
searchProjectAndExtractData(
const std::string& fileName,
const std::string& projectRoot,
bool includeResults,
bool includeParametricResults);
22 std::string
openProject(
const std::string& fileName);
25 void startSubprocess();
26 std::string findSubprocessPath();
27 void initiateProcess();
30 void connectWithSubprocess();
33 bool checkSubprocessResponsive(std::string& errorMessage);
34 void closeSubprocess();
35 bool waitForResponse();
36 void getProcessErrorOccured(std::string& message);
37 void getSocketErrorOccured(std::string& message);
39 void determineStudioSuiteInstallation(
int& version, std::string& studioPath);
40 std::list<long long> getRunningDesignEnvironmentProcesses();
41 std::string generateExtractScript(
const std::string& studioPath, std::string fileName, std::string exportFolder, std::list<long long> studioPidList,
bool includeResults,
bool includeParametricResults);
42 std::string generateOpenScript(
const std::string& studioPath, std::string fileName);
43 std::string generateCloseScript(
const std::string& studioPath, std::string fileName, std::list<long long> studioPidList);
45 bool m_subProcessRunning =
false;
46 std::string m_serverName;
47 const std::string m_executableName =
"PythonExecution.exe";
48 std::string m_subprocessPath;
49 std::string m_pythonModulePath;
51 const int m_numberOfRetries = 3;
52 const int m_timeoutSubprocessStart = 50000;
53 const int m_timeoutServerConnect = m_timeoutSubprocessStart;
54 const int m_timeoutSendingMessage = m_timeoutSubprocessStart;
55 const int m_heartBeat = m_timeoutSubprocessStart;
57 QProcess m_subProcess;
58 QLocalServer m_server;
59 QLocalSocket* m_socket =
nullptr;
std::string searchProjectAndExtractData(const std::string &fileName, const std::string &projectRoot, bool includeResults, bool includeParametricResults)
Definition StudioConnector.cpp:22