1
0
mirror of https://github.com/aportelli/LatAnalyze.git synced 2024-11-10 00:45:36 +00:00

public access to gnuplot path

This commit is contained in:
Antonin Portelli 2020-01-10 15:15:46 +00:00
parent 4b5ad9014c
commit d43197ccc7
2 changed files with 5 additions and 3 deletions

View File

@ -580,7 +580,7 @@ Plot & Plot::operator<<(PlotModifier &&modifier)
} }
// find gnuplot //////////////////////////////////////////////////////////////// // find gnuplot ////////////////////////////////////////////////////////////////
void Plot::getProgramPath(void) std::string Plot::getProgramPath(void)
{ {
int i, j, lg; int i, j, lg;
char *path; char *path;
@ -640,6 +640,8 @@ void Plot::getProgramPath(void)
buf[lg] = 0; buf[lg] = 0;
gnuplotPath_ = buf; gnuplotPath_ = buf;
} }
return gnuplotPath_;
} }
// plot parsing and output ///////////////////////////////////////////////////// // plot parsing and output /////////////////////////////////////////////////////

View File

@ -381,9 +381,9 @@ public:
friend std::ostream & operator<<(std::ostream &out, const Plot &plot); friend std::ostream & operator<<(std::ostream &out, const Plot &plot);
// plot reset // plot reset
void reset(void); void reset(void);
private:
// find gnuplot // find gnuplot
void getProgramPath(void); std::string getProgramPath(void);
private:
// default options // default options
void initOptions(void); void initOptions(void);
private: private: