Ajout d'une méthode fileExport à moVectorMonitor. Encore un bout.
git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@1798 331e1502-861f-0410-8da2-ba01fb791d7f
This commit is contained in:
parent
312b213a01
commit
6d55b78321
3 changed files with 39 additions and 1 deletions
|
|
@ -125,7 +125,7 @@ public:
|
|||
}
|
||||
|
||||
/**
|
||||
* to export the vector of values into one file
|
||||
* to export the vectors of values into one file
|
||||
* @param _filename file name
|
||||
* @param _delim delimiter between statistics
|
||||
*/
|
||||
|
|
@ -153,6 +153,20 @@ public:
|
|||
|
||||
}
|
||||
|
||||
/**
|
||||
* to export one vector of values into a file
|
||||
* @param _col number of vector to print into file
|
||||
* @param _filename file name
|
||||
*/
|
||||
void fileExport(unsigned int _col, std::string _filename) {
|
||||
if (_col >= monitorVec.size()) {
|
||||
string str = "moSampling: Could not export into file the vector. The index does not exists (too large)";
|
||||
throw runtime_error(str);
|
||||
}
|
||||
|
||||
monitorVec[_col]->fileExport(_filename);
|
||||
}
|
||||
|
||||
/**
|
||||
* to get one vector of values
|
||||
* @param _numStat number of stattistics to get (in order of creation)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue