www.mooseframework.org
FileRangeBuilder.h
Go to the documentation of this file.
1 /****************************************************************/
2 /* MOOSE - Multiphysics Object Oriented Simulation Environment */
3 /* */
4 /* All contents are licensed under LGPL V2.1 */
5 /* See LICENSE for full restrictions */
6 /****************************************************************/
7 
8 #ifndef FILERANGEBUILDER_H
9 #define FILERANGEBUILDER_H
10 
11 // MOOSE includes
12 #include "Moose.h"
13 
14 // Forward declarations
15 class FileRangeBuilder;
16 class InputParameters;
17 
18 template <typename T>
20 
26 template <>
28 
38 {
39 public:
40  FileRangeBuilder(const InputParameters & params);
41  virtual ~FileRangeBuilder() = default;
42 
43  std::string fileSuffix() { return _file_suffix; }
44  const std::vector<std::string> & filenames() { return _filenames; }
45 
46 protected:
47  // int status(){ return _status; }
48  void errorCheck();
49 
50  int _status;
51  std::string _file_suffix;
52  std::vector<std::string> _filenames;
53 };
54 
55 #endif // FILERANGEBUILDER_H
virtual ~FileRangeBuilder()=default
InputParameters validParams()
const std::vector< std::string > & filenames()
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
std::string fileSuffix()
InputParameters validParams< FileRangeBuilder >()
To be called in the validParams functions of classes that need to operate on ranges of files...
Augments an InputParameters object with file range information.
FileRangeBuilder(const InputParameters &params)
std::string _file_suffix
std::vector< std::string > _filenames