index2filename.hpp
1 
6 #ifndef INDEX2FILENAME_HPP
7 #define INDEX2FILENAME_HPP 1
8 
9 #include <string>
10 
11 using std::string;
12 
15 {
16 public:
17 
22  virtual string operator()(int index) = 0;
23 
25  virtual ~Index2FileName(void);
26 };
27 
29 class Rubric: public Index2FileName
30 {
31 public:
32 
37  Rubric(const string& prefix,
38  const string& postfix);
39 
44  string operator()(int index);
45 
46 private:
47  const string prefix_;
48  const string postfix_;
49 };
50 
51 #endif // INDEX2FILENAME_HPP
virtual ~Index2FileName(void)
class destructor
virtual string operator()(int index)=0
Generate a file name.
Class for creating files names using the pattern prefix+index+postfix.
Class for generating sequential file names.