|  | 
#include <utils/ExternalProgram.hpp>
| Public Types | |
| enum | RegisteredPrograms { CMakeProgram, ZipProgram, SevenZipProgram, GnuplotProgram, GoogleEarthProgram, GccProgram, PdfLatexProgram, BibTexProgram, Latex2HTMLProgram, GitProgram, GrassGisProgram } | 
| Public Member Functions | |
| ExternalProgram ()=delete | |
| ExternalProgram (const QStringList &ProgramNames, const QStringList &SearchPaths=QStringList(), bool UsePathEnv=true) | |
| ExternalProgram (const QString &ProgramName, const QStringList &SearchPaths=QStringList(), bool UsePathEnv=true) | |
| ~ExternalProgram () | |
| bool | isFound () const | 
| void | searchForProgram () | 
| QString | getFullProgramPath () const | 
| Static Public Member Functions | |
| static ExternalProgram | getRegisteredProgram (RegisteredPrograms Prog, const QStringList &SearchPaths=QStringList(), bool UsePathEnv=true) | 
| static QString | findUsingPATHEnvVar (const QStringList &ProgramNames) | 
| static QString | findUsingPathsList (const QStringList &ProgramNames, const QStringList &PathsList) | 
Management of external programs
| 
 | delete | 
| openfluid::utils::ExternalProgram::ExternalProgram | ( | const QStringList & | ProgramNames, | 
| const QStringList & | SearchPaths = QStringList(), | ||
| bool | UsePathEnv = true | ||
| ) | 
Constructor for a given external programs. Automatically searches for the program at construction
| [in] | ProgramNames | The possible names of the program to find | 
| [in] | SearchPaths | The list of paths to search. Default value is an empty list | 
| [in] | UsePathEnv | Enable the use of PATH environment variable to search for the program. Default value is true. | 
| openfluid::utils::ExternalProgram::ExternalProgram | ( | const QString & | ProgramName, | 
| const QStringList & | SearchPaths = QStringList(), | ||
| bool | UsePathEnv = true | ||
| ) | 
Constructor for a given external programs. Automatically searches for the program at construction
| [in] | ProgramName | The name of the program to find | 
| [in] | SearchPaths | The list of paths to search. Default value is an empty list | 
| [in] | UsePathEnv | Enable the use of PATH environment variable to search for the program. Default value is true. | 
| openfluid::utils::ExternalProgram::~ExternalProgram | ( | ) | 
| 
 | static | 
Finds a program using the PATH environment variable
| [in] | ProgramNames | The list of the potential program names of the program to find | 
| 
 | static | 
Finds a program using a given paths list
| [in] | ProgramNames | The list of the potential program names of the program to find | 
| [in] | PathsList | The list of paths to search | 
| 
 | inline | 
Returns the full path of the program
| 
 | static | 
Returns an ExternalProgram object initialized with the registered program to find
| [in] | Prog | The registered program to find | 
| [in] | SearchPaths | The list of paths to search. Default value is an empty list | 
| [in] | UsePathEnv | Enable the use of PATH environment variable to search for the registered program. Default value is true. | 
| 
 | inline | 
Returns true if the current program has been found
| void openfluid::utils::ExternalProgram::searchForProgram | ( | ) | 
Searches for the program
 1.8.13
 1.8.13