Nemo  2.3.46
FileHandler Class Referenceabstract

Interface to handle file input/output for any SimComponent. More...

#include <filehandler.h>

+ Inheritance diagram for FileHandler:
+ Collaboration diagram for FileHandler:

Public Member Functions

 FileHandler (const char *ext)
 
virtual ~FileHandler ()
 
virtual void init ()
 Called by notifier during simulation setup, performs file checking. More...
 
virtual bool ifExist ()
 Checks if any file associated with the current file name already exists on disk. More...
 
virtual void set (bool rpl_per, bool gen_per, int rpl_occ, int gen_occ, int rank, string path)
 Sets the hanlder parameters. More...
 
virtual void set_multi (bool rpl_per, bool gen_per, int rpl_occ, TMatrix *Occ, string path)
 
virtual void FHwrite ()=0
 Default behavior of the class, called by Handler::update(). More...
 
virtual void FHread (string &filename)=0
 Default input function. More...
 
virtual void update ()
 Updates the inner replicate and generation counters and calls FHwrite if needed by the the periodicity of the file. More...
 
Accessors
Metapopget_pop_ptr ()
 Returns the pointer to the current metapop through the FileServices interface. More...
 
void set_pop_ptr (Metapop *pop_ptr)
 
FileServicesget_service ()
 Returns pointer to the FileServices. More...
 
void set_service (FileServices *srv)
 
std::string & get_path ()
 
void set_path ()
 
std::string & get_extension ()
 
void set_extension (const char *ext)
 
std::string & get_filename ()
 Builds and returns the current file name depending on the periodicity of the file. More...
 
bool get_isInputHandler ()
 
void set_isInputHandler (bool val)
 
bool get_isReplicatePeriodic ()
 
void set_isReplicatePeriodic (bool val)
 
unsigned int get_ReplicateOccurrence ()
 
void set_ReplicateOccurrence (unsigned int val)
 
bool get_isGenerationPeriodic ()
 
void set_isGenerationPeriodic (bool val)
 
unsigned int get_GenerationOccurrence ()
 
void set_GenerationOccurrence (unsigned int val)
 
unsigned int get_ExecRank ()
 unused yet... More...
 
void set_ExecRank (int val)
 
TMatrixget_OccMatrix ()
 
void set_OccMatrix (TMatrix *occ)
 
bool get_isMasterExec ()
 
void set_isMasterExec (bool is)
 
- Public Member Functions inherited from Handler
virtual ~Handler ()
 

Protected Attributes

Metapop_pop
 Pointer to the current metapop, set during initialization within the init function. More...
 

Private Attributes

FileServices_service
 Link to the files manager. More...
 
bool _isMasterExec
 Flag telling if the file must be written by the master or the slave node. More...
 
bool _isInputHandler
 Writing mode flag. More...
 
bool _isReplicatePeriodic
 Flag telling if the file should be written each replicate. More...
 
bool _isGenerationPeriodic
 Flag setting the per generation periodicity behaviour of the file. More...
 
unsigned int _ReplicateOccurrence
 Tells every what replicate the file should be written. More...
 
unsigned int _GenerationOccurrence
 Tells every what generation the file should be written. More...
 
unsigned int _current_replicate
 The current replicate number of the simulation. More...
 
unsigned int _current_generation
 The current generation number of the simulation. More...
 
TMatrix _multipleOccurences
 Multiple occurences. More...
 
list< int >::const_iterator _genITER
 
list< int_generations
 
unsigned int _ExecRank
 unused... More...
 
std::string _path
 File path as set during initialization. More...
 
std::string _extension
 File extension, should be specific to the implementation. More...
 
std::string _current_filename
 The current filename as set by FileHandler::get_filename(). More...
 

Detailed Description

Interface to handle file input/output for any SimComponent.

Stores the periodicity parameters and the file path and extension. The replicate file name is given by the FileServices. A file handler might be set to write output at a specific generation of a specific replicate or at some periodic time during the simulation. The default writing mode of a FileHandler is in output and is added as a 'writer' to the File Services as such using the FileServices::attach mode. The _isInputHandler flag is thus set to FALSE by default. To set a FileHandler as a reader instead of a writer, the method FileHandler::set_isInputHandler(TRUE) must be called prior to attaching it to the FileServices using the FileServices::attach_reader method. Furthermore, a single instance of a FileHandler can be attached as both a writer and a reader by setting the _isInputHandler flag to TRUE and then using the FileServices::attach method to add it to the list of both the reader and writers. Note on memory management: the FileServices class only deals with its lists of FileHandlers pointers and will never try to delete any one of those. All memory management must thus be taken care of by the user class (typically the TraitPrototype...).

Constructor & Destructor Documentation

FileHandler::FileHandler ( const char *  ext)
inline
108  : _service(0),
109 #ifdef USE_MPI
110  _isMasterExec(false),
111 #else
112  _isMasterExec(true),
113 #endif
114  _isInputHandler(0),
118  _path(), _extension(ext), _current_filename(), _pop(0)
119  {}
bool _isMasterExec
Flag telling if the file must be written by the master or the slave node.
Definition: filehandler.h:65
unsigned int _current_generation
The current generation number of the simulation.
Definition: filehandler.h:79
std::string _path
File path as set during initialization.
Definition: filehandler.h:90
unsigned int _ReplicateOccurrence
Tells every what replicate the file should be written.
Definition: filehandler.h:73
std::string _extension
File extension, should be specific to the implementation.
Definition: filehandler.h:93
unsigned int _current_replicate
The current replicate number of the simulation.
Definition: filehandler.h:77
bool _isGenerationPeriodic
Flag setting the per generation periodicity behaviour of the file.
Definition: filehandler.h:71
std::string _current_filename
The current filename as set by FileHandler::get_filename().
Definition: filehandler.h:99
unsigned int _ExecRank
unused...
Definition: filehandler.h:88
FileServices * _service
Link to the files manager.
Definition: filehandler.h:57
bool _isInputHandler
Writing mode flag.
Definition: filehandler.h:67
unsigned int _GenerationOccurrence
Tells every what generation the file should be written.
Definition: filehandler.h:75
Metapop * _pop
Pointer to the current metapop, set during initialization within the init function.
Definition: filehandler.h:103
bool _isReplicatePeriodic
Flag telling if the file should be written each replicate.
Definition: filehandler.h:69
virtual FileHandler::~FileHandler ( )
inlinevirtual
121 { }

Member Function Documentation

unsigned int FileHandler::get_ExecRank ( )
inline

unused yet...

References _ExecRank.

165 {return _ExecRank;}
unsigned int _ExecRank
unused...
Definition: filehandler.h:88
std::string& FileHandler::get_extension ( )
inline
string & FileHandler::get_filename ( )

Builds and returns the current file name depending on the periodicity of the file.

Referenced by TTBDMI_FH::FHwrite(), TTWolbachiaFH::FHwrite(), TTQuantiFH::FHwrite(), LCE_SelectionFH::FHwrite(), MPFileHandler::FHwrite(), BinaryDataSaver::finish(), BinaryDataSaver::printData(), and BinaryDataSaver::printHeader().

149 {
153  else
155  else
157 
158  return _current_filename;
159 }
string getGenerationReplicateFileName()
Accessor to the current file name with generation and replicate counters added.
Definition: fileservices.cc:218
std::string _path
File path as set during initialization.
Definition: filehandler.h:90
std::string _extension
File extension, should be specific to the implementation.
Definition: filehandler.h:93
string & getReplicateFileName()
Accessor to the current replicate file name.
Definition: fileservices.cc:209
bool _isGenerationPeriodic
Flag setting the per generation periodicity behaviour of the file.
Definition: filehandler.h:71
std::string _current_filename
The current filename as set by FileHandler::get_filename().
Definition: filehandler.h:99
string & getBaseFileName()
Accessor to the base file name of the simulation.
Definition: fileservices.cc:226
FileServices * _service
Link to the files manager.
Definition: filehandler.h:57
bool _isReplicatePeriodic
Flag telling if the file should be written each replicate.
Definition: filehandler.h:69
unsigned int FileHandler::get_GenerationOccurrence ( )
inline

References _GenerationOccurrence.

Referenced by TTQFreqExtractor::FHwrite().

162 {return _GenerationOccurrence;}
unsigned int _GenerationOccurrence
Tells every what generation the file should be written.
Definition: filehandler.h:75
bool FileHandler::get_isGenerationPeriodic ( )
inline

References _isGenerationPeriodic.

159 {return _isGenerationPeriodic;}
bool _isGenerationPeriodic
Flag setting the per generation periodicity behaviour of the file.
Definition: filehandler.h:71
bool FileHandler::get_isInputHandler ( )
inline

References _isInputHandler.

Referenced by FileServices::attach().

150 {return _isInputHandler;}
bool _isInputHandler
Writing mode flag.
Definition: filehandler.h:67
bool FileHandler::get_isMasterExec ( )
inline

References _isMasterExec.

178 {return _isMasterExec;}
bool _isMasterExec
Flag telling if the file must be written by the master or the slave node.
Definition: filehandler.h:65
bool FileHandler::get_isReplicatePeriodic ( )
inline

References _isReplicatePeriodic.

153 {return _isReplicatePeriodic;}
bool _isReplicatePeriodic
Flag telling if the file should be written each replicate.
Definition: filehandler.h:69
TMatrix* FileHandler::get_OccMatrix ( )
inline

References _multipleOccurences.

168 {return &_multipleOccurences;}
TMatrix _multipleOccurences
Multiple occurences.
Definition: filehandler.h:82
Metapop* FileHandler::get_pop_ptr ( )
inline

Returns the pointer to the current metapop through the FileServices interface.

References _pop.

Referenced by TTBDMI_FH::FHwrite(), TTQuantiFH::FHwrite(), TTDeletMutBitstrFH::FHwrite(), TTQFreqExtractor::FHwrite(), and TTQuantiFH::print().

131 {return _pop;}
Metapop * _pop
Pointer to the current metapop, set during initialization within the init function.
Definition: filehandler.h:103
unsigned int FileHandler::get_ReplicateOccurrence ( )
inline

References _ReplicateOccurrence.

156 {return _ReplicateOccurrence;}
unsigned int _ReplicateOccurrence
Tells every what replicate the file should be written.
Definition: filehandler.h:73
bool FileHandler::ifExist ( )
virtual

Checks if any file associated with the current file name already exists on disk.

Only checks wether the first replicate file is present.

Returns
false if filename already exists on disk, true otherwise.

Reimplemented in LCE_StatFH.

References warning().

71 {
72  //check if the basefilename is already used on disk:
73  string filename = _path + _service->getBaseFileName();
74 
75  ostringstream rpl, gen;
76 
77  gen.fill('0');
78  gen.width( (int)log10((double)_pop->getGenerations()) + 1);
80 
81  rpl.fill('0');
82  rpl.width( (int)log10((double)_pop->getReplicates()) + 1);
84 
86  filename += _extension;
87  else if(!_isGenerationPeriodic)
88  filename += "_" + rpl.str() + _extension;
89  else
90  filename += "_" + gen.str() + "_" + rpl.str() + _extension;
91 
92  ifstream ifXist;
93  ifXist.setstate(ios::failbit);
94 
95  ifXist.open(filename.c_str(),ios::in);
96 
97  if(ifXist.is_open()) {
98  warning("filename \"%s\" used by \"%s\"\n",_service->getBaseFileName().c_str(),filename.c_str());
99  ifXist.close();
100  return false;
101  }
102  ifXist.close();
103 
104  return true;
105 }
std::string _path
File path as set during initialization.
Definition: filehandler.h:90
unsigned int _ReplicateOccurrence
Tells every what replicate the file should be written.
Definition: filehandler.h:73
std::string _extension
File extension, should be specific to the implementation.
Definition: filehandler.h:93
bool _isGenerationPeriodic
Flag setting the per generation periodicity behaviour of the file.
Definition: filehandler.h:71
void warning(const char *str,...)
Definition: output.cc:56
string & getBaseFileName()
Accessor to the base file name of the simulation.
Definition: fileservices.cc:226
FileServices * _service
Link to the files manager.
Definition: filehandler.h:57
unsigned int getReplicates()
Definition: metapop.h:269
unsigned int getGenerations()
Definition: metapop.h:267
unsigned int _GenerationOccurrence
Tells every what generation the file should be written.
Definition: filehandler.h:75
Metapop * _pop
Pointer to the current metapop, set during initialization within the init function.
Definition: filehandler.h:103
bool _isReplicatePeriodic
Flag telling if the file should be written each replicate.
Definition: filehandler.h:69
void FileHandler::init ( )
virtual

Called by notifier during simulation setup, performs file checking.

Implements Handler.

52 {
54  //check if the occurrences exceed the pop parameters:
57 
60 
61  set_path();
62 
63 // if ( _myenv->isMaster() != _isMasterExec ) return;
64 
65 // message(" %s*%s\n",get_path().c_str(),get_extension().c_str());
66 }
void set_path()
Definition: filehandler.cc:109
unsigned int _ReplicateOccurrence
Tells every what replicate the file should be written.
Definition: filehandler.h:73
FileServices * _service
Link to the files manager.
Definition: filehandler.h:57
unsigned int getReplicates()
Definition: metapop.h:269
unsigned int getGenerations()
Definition: metapop.h:267
virtual Metapop * get_pop_ptr()
Accessor to the pointer to the main population.
Definition: fileservices.h:101
unsigned int _GenerationOccurrence
Tells every what generation the file should be written.
Definition: filehandler.h:75
Metapop * _pop
Pointer to the current metapop, set during initialization within the init function.
Definition: filehandler.h:103
virtual void FileHandler::set ( bool  rpl_per,
bool  gen_per,
int  rpl_occ,
int  gen_occ,
int  rank,
string  path 
)
inlinevirtual

Sets the hanlder parameters.

Parameters
rpl_perreplicate periodicity
gen_pergeneration periodicity
rpl_occreplicate occurence
gen_occgeneration occurence
rankthe rank in the life cycle, actualy unused...
paththe file path

References set_ExecRank(), set_GenerationOccurrence(), set_isGenerationPeriodic(), set_isReplicatePeriodic(), and set_ReplicateOccurrence().

Referenced by FileServices::init(), LCE_StatFH::LCE_StatFH(), Metapop::loadFileServices(), TraitFileHandler< TP >::set(), EventFileHandler< LCE >::set(), BinaryDataSaver::setParameters(), and LCE_StatServiceNotifier::setParameters().

193  {
195  set_GenerationOccurrence(gen_occ); set_ExecRank(rank); _path = path;}
void set_isReplicatePeriodic(bool val)
Definition: filehandler.h:154
void set_GenerationOccurrence(unsigned int val)
Definition: filehandler.h:163
void set_isGenerationPeriodic(bool val)
Definition: filehandler.h:160
void set_ReplicateOccurrence(unsigned int val)
Definition: filehandler.h:157
std::string _path
File path as set during initialization.
Definition: filehandler.h:90
void set_ExecRank(int val)
Definition: filehandler.h:166
void FileHandler::set_ExecRank ( int  val)
inline

Referenced by set().

166 {_ExecRank = val;}
unsigned int _ExecRank
unused...
Definition: filehandler.h:88
void FileHandler::set_extension ( const char *  ext)
inline

Referenced by TProtoNeutralGenes::loadFileServices().

145 {_extension = ext;}
std::string _extension
File extension, should be specific to the implementation.
Definition: filehandler.h:93
void FileHandler::set_GenerationOccurrence ( unsigned int  val)
inline

Referenced by set(), and set_multi().

163 {_GenerationOccurrence = val;}
unsigned int _GenerationOccurrence
Tells every what generation the file should be written.
Definition: filehandler.h:75
void FileHandler::set_isGenerationPeriodic ( bool  val)
inline

Referenced by set(), and set_multi().

160 {_isGenerationPeriodic = val;}
bool _isGenerationPeriodic
Flag setting the per generation periodicity behaviour of the file.
Definition: filehandler.h:71
void FileHandler::set_isInputHandler ( bool  val)
inline

Referenced by LCE_Cross::loadFileServices(), TProtoNeutralGenes::loadFileServices(), and TProtoDeletMutations_bitstring::loadFileServices().

151 {_isInputHandler = val;}
bool _isInputHandler
Writing mode flag.
Definition: filehandler.h:67
void FileHandler::set_isMasterExec ( bool  is)
inline

Referenced by LCE_StatFH::LCE_StatFH().

182 {_isMasterExec = true;}
bool _isMasterExec
Flag telling if the file must be written by the master or the slave node.
Definition: filehandler.h:65
void FileHandler::set_isReplicatePeriodic ( bool  val)
inline

Referenced by set(), and set_multi().

154 {_isReplicatePeriodic = val;}
bool _isReplicatePeriodic
Flag telling if the file should be written each replicate.
Definition: filehandler.h:69
virtual void FileHandler::set_multi ( bool  rpl_per,
bool  gen_per,
int  rpl_occ,
TMatrix Occ,
string  path 
)
inlinevirtual

References set_GenerationOccurrence(), set_isGenerationPeriodic(), set_isReplicatePeriodic(), set_OccMatrix(), and set_ReplicateOccurrence().

Referenced by TProtoBDMI::loadFileServices(), TProtoQuanti::loadFileServices(), TProtoNeutralGenes::loadFileServices(), TProtoDeletMutations_bitstring::loadFileServices(), Metapop::loadFileServices(), and LCE_Selection_base::loadFileServices().

197  {
199  set_GenerationOccurrence(0); set_OccMatrix(Occ); _path = path;}
void set_isReplicatePeriodic(bool val)
Definition: filehandler.h:154
void set_GenerationOccurrence(unsigned int val)
Definition: filehandler.h:163
void set_isGenerationPeriodic(bool val)
Definition: filehandler.h:160
void set_ReplicateOccurrence(unsigned int val)
Definition: filehandler.h:157
std::string _path
File path as set during initialization.
Definition: filehandler.h:90
void set_OccMatrix(TMatrix *occ)
Definition: filehandler.h:170
void FileHandler::set_OccMatrix ( TMatrix occ)
inline

References TMatrix::get(), TMatrix::getValArray(), TMatrix::ncols(), TMatrix::nrows(), and TMatrix::reset().

Referenced by set_multi().

170  {
171  _multipleOccurences.reset(occ->nrows(), occ->ncols(), occ->getValArray());
172  _generations.clear();
173  for(unsigned int i = 0; i < _multipleOccurences.ncols(); i++)
174  _generations.push_back((int)_multipleOccurences.get(0, i));
175  _genITER = _generations.begin();
176  }
TMatrix _multipleOccurences
Multiple occurences.
Definition: filehandler.h:82
unsigned int ncols()
Definition: tmatrix.h:143
list< int > _generations
Definition: filehandler.h:85
list< int >::const_iterator _genITER
Definition: filehandler.h:84
double get(unsigned int i, unsigned int j)
Accessor to element at row i and column j.
Definition: tmatrix.h:120
void reset(unsigned int rows, unsigned int cols)
Re-allocate the existing matrix with assigned rows and cols dimensions.
Definition: tmatrix.h:97
unsigned int nrows()
Definition: tmatrix.h:140
double * getValArray() const
Definition: tmatrix.h:129
void FileHandler::set_path ( )

References error(), and warning().

110 {
111  string root_dir;
112 
113  root_dir = _service->getRootDir();
114 
115  if(_path.size() != 0 && _path[_path.length()-1] != '/')
116  _path += "/";
117 
118  if(root_dir.size() != 0)
119  _path = root_dir + _path;
120 
121  if(_path.size() != 0) {
122 
123  DIR *dir = opendir(_path.c_str());
124 
125  //check if we have to create the directory:
126  if(_path.size() != 0 && dir == 0) {
127 
128 #ifdef _WINDOWS_
129  mode_t mode = S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH;
130  if((mkdir(_path.c_str(), mode)) == -1)
131 #else
132  string cmd = "mkdir -p " + _path;
133  if ( system( cmd.c_str() ) < 0 )
134 #endif
135  {
136  error("could not create directory \"%s\", saving in current directory.\n",_path.c_str());
137  _path = "";
138  }
139  } else {
140  if(closedir(dir) == -1)
141  warning("FileHandler::set_path::closedir: %s\n",strerror(errno));
142  }
143  }
144 }
std::string _path
File path as set during initialization.
Definition: filehandler.h:90
int error(const char *str,...)
Definition: output.cc:73
void warning(const char *str,...)
Definition: output.cc:56
FileServices * _service
Link to the files manager.
Definition: filehandler.h:57
string & getRootDir()
Accessor to the name of the simulation's root output directory.
Definition: fileservices.cc:233
void FileHandler::set_pop_ptr ( Metapop pop_ptr)
inline

Referenced by Metapop::loadPopFromTraitFile().

133 { _pop = pop_ptr;}
Metapop * _pop
Pointer to the current metapop, set during initialization within the init function.
Definition: filehandler.h:103
void FileHandler::set_ReplicateOccurrence ( unsigned int  val)
inline

Referenced by set(), and set_multi().

157 {_ReplicateOccurrence = val;}
unsigned int _ReplicateOccurrence
Tells every what replicate the file should be written.
Definition: filehandler.h:73
void FileHandler::set_service ( FileServices srv)
inline

Referenced by FileServices::attach(), and FileServices::attach_reader().

137 {_service = srv;}
FileServices * _service
Link to the files manager.
Definition: filehandler.h:57
void FileHandler::update ( )
virtual

Updates the inner replicate and generation counters and calls FHwrite if needed by the the periodicity of the file.

Implements Handler.

References MPIenv::isMaster().

164 {
166 
168 
169  // reset the generation iterator to the first in the list for new replicates
170  if(_genITER == _generations.end() && _current_generation == 1)
171  _genITER = _generations.begin();
172 
174  || (_current_replicate == _ReplicateOccurrence) ) ) {
176  if(_GenerationOccurrence != 0) {
178  FHwrite();
179  } else if(_current_generation == (unsigned)(*_genITER) && _myenv->isMaster() == _isMasterExec) {
180  FHwrite();_genITER++;
181  }
182  } else if(_current_generation == _GenerationOccurrence && _myenv->isMaster() == _isMasterExec)
183  FHwrite();
184  }
185 }
list< int > _generations
Definition: filehandler.h:85
bool _isMasterExec
Flag telling if the file must be written by the master or the slave node.
Definition: filehandler.h:65
unsigned int _current_generation
The current generation number of the simulation.
Definition: filehandler.h:79
list< int >::const_iterator _genITER
Definition: filehandler.h:84
unsigned int getCurrentGeneration()
Definition: metapop.h:286
unsigned int _ReplicateOccurrence
Tells every what replicate the file should be written.
Definition: filehandler.h:73
unsigned int getCurrentReplicate()
Definition: metapop.h:285
unsigned int _current_replicate
The current replicate number of the simulation.
Definition: filehandler.h:77
bool _isGenerationPeriodic
Flag setting the per generation periodicity behaviour of the file.
Definition: filehandler.h:71
virtual void FHwrite()=0
Default behavior of the class, called by Handler::update().
MPIenv * _myenv
Definition: simulation.cc:47
bool isMaster() const
Definition: MPImanager.h:127
unsigned int _GenerationOccurrence
Tells every what generation the file should be written.
Definition: filehandler.h:75
Metapop * _pop
Pointer to the current metapop, set during initialization within the init function.
Definition: filehandler.h:103
bool _isReplicatePeriodic
Flag telling if the file should be written each replicate.
Definition: filehandler.h:69

Member Data Documentation

std::string FileHandler::_current_filename
private

The current filename as set by FileHandler::get_filename().

Is composed by putting together the following strings: FileHandler::_path, FileServices::_basename (+ replicate and generation counters if needed), and FileHandler::_extension.

unsigned int FileHandler::_current_generation
private

The current generation number of the simulation.

Set by FileHandler::update().

unsigned int FileHandler::_current_replicate
private

The current replicate number of the simulation.

Set by FileHandler::update().

unsigned int FileHandler::_ExecRank
private

unused...

yet

Referenced by get_ExecRank().

std::string FileHandler::_extension
private

File extension, should be specific to the implementation.

Is set during construction.

Referenced by get_extension().

unsigned int FileHandler::_GenerationOccurrence
private

Tells every what generation the file should be written.

Set by the set() method below.

Referenced by get_GenerationOccurrence().

list< int > FileHandler::_generations
private
list< int >::const_iterator FileHandler::_genITER
private
bool FileHandler::_isGenerationPeriodic
private

Flag setting the per generation periodicity behaviour of the file.

Referenced by get_isGenerationPeriodic().

bool FileHandler::_isInputHandler
private

Writing mode flag.

Must be true

Referenced by get_isInputHandler().

bool FileHandler::_isMasterExec
private

Flag telling if the file must be written by the master or the slave node.

An example of master-only file is the stats files (.txt and _bygen.txt) that aggregate the stats from each node. Binary files or FSTAT files are written by the slave nodes, each file beeing written for one replicate only. The default behaviour is to be TRUE in the non-MPI version and FALSE in the MPI version.

Referenced by get_isMasterExec().

bool FileHandler::_isReplicatePeriodic
private

Flag telling if the file should be written each replicate.

Referenced by get_isReplicatePeriodic().

TMatrix FileHandler::_multipleOccurences
private

Multiple occurences.

Referenced by get_OccMatrix().

std::string FileHandler::_path
private

File path as set during initialization.

Usually user-defined.

Referenced by get_path().

unsigned int FileHandler::_ReplicateOccurrence
private

Tells every what replicate the file should be written.

Set by the set() method below.

Referenced by get_ReplicateOccurrence().

FileServices* FileHandler::_service
private

Link to the files manager.

Referenced by get_service().


The documentation for this class was generated from the following files:

Generated for Nemo v2.3.0 by  doxygen 1.8.8 --
Catalogued on GSR