Vespucci  1.0.0
fileinterprocess.h
Go to the documentation of this file.
1 #ifndef FILEINTERPROCESS_H
2 #define FILEINTERPROCESS_H
3 #include <mlpack/core.hpp>
4 #include <QProcess>
5 namespace Vespucci{
6  namespace External{
8  {
9  public:
10  FileInterprocess(const arma::field<std::string> invar_names,
11  const arma::field<arma::mat> invars,
12  const arma::field<std::string> outvar_names);
14  arma::field<arma::mat> outvars();
15  int RunR(const std::string &script, const QString &R_HOME);
16  int RunOctave(const std::string &script);
17  public slots:
18  void ProcessFinished();
19  private:
20  arma::field<std::string> invar_names_;
21  arma::field<arma::mat> invars_;
22  arma::field<std::string> outvar_names_;
23  arma::field<arma::mat> outvars_;
24  void GetOutvars();
25  void DeleteTemporaryFiles();
26  };
27  }
28 }
29 
30 
31 #endif // FILEINTERPROCESS_H
arma::field< arma::mat > outvars()
int RunOctave(const std::string &script)
FileInterprocess(const arma::field< std::string > invar_names, const arma::field< arma::mat > invars, const arma::field< std::string > outvar_names)
int RunR(const std::string &script, const QString &R_HOME)
A namespace for "global" functions, including math functions.