Image Component Library (ICL)
FilenameGenerator.h
Go to the documentation of this file.
1 /********************************************************************
2 ** Image Component Library (ICL) **
3 ** **
4 ** Copyright (C) 2006-2013 CITEC, University of Bielefeld **
5 ** Neuroinformatics Group **
6 ** Website: www.iclcv.org and **
7 ** http://opensource.cit-ec.de/projects/icl **
8 ** **
9 ** File : ICLIO/src/ICLIO/FilenameGenerator.h **
10 ** Module : ICLIO **
11 ** Authors: Christof Elbrechter **
12 ** **
13 ** **
14 ** GNU LESSER GENERAL PUBLIC LICENSE **
15 ** This file may be used under the terms of the GNU Lesser General **
16 ** Public License version 3.0 as published by the **
17 ** **
18 ** Free Software Foundation and appearing in the file LICENSE.LGPL **
19 ** included in the packaging of this file. Please review the **
20 ** following information to ensure the license requirements will **
21 ** be met: http://www.gnu.org/licenses/lgpl-3.0.txt **
22 ** **
23 ** The development of this software was supported by the **
24 ** Excellence Cluster EXC 277 Cognitive Interaction Technology. **
25 ** The Excellence Cluster EXC 277 is a grant of the Deutsche **
26 ** Forschungsgemeinschaft (DFG) in the context of the German **
27 ** Excellence Initiative. **
28 ** **
29 ********************************************************************/
30 
31 #pragma once
32 
33 #include <ICLUtils/CompatMacros.h>
35 #include <string>
36 #include <vector>
37 
38 namespace icl{
39  namespace io{
41  class FilenameGeneratorImpl;
42  struct FilenameGeneratorImplDelOp { static void delete_func(FilenameGeneratorImpl *i); };
45 
52  class ICLIO_API FilenameGenerator : public utils::ShallowCopyable<FilenameGeneratorImpl, FilenameGeneratorImplDelOp>{
53  public:
54  static const int INFINITE_FILE_COUNT;
57 
61 
79  FilenameGenerator(const std::string &pattern, int maxFiles=-1);
80 
82 
97  FilenameGenerator(const std::string& prefix,
98  const std::string& postfix,
99  int objectStart, int objectEnd,
100  int imageStart, int imageEnd);
101 
103  std::string next();
104 
106  std::string showNext() const;
107 
109  int filesLeft() const;
110 
112  void reset();
113 
115  std::vector<std::string> getList();
116 
118  void show();
119 
120 
121 
122  };
123  } // namespace io
124 }
125 
static const int INFINITE_FILE_COUNT
Definition: FilenameGenerator.h:54
undocument this line if you encounter any issues!
Definition: Any.h:37
Interface class for cheap copyable classes using a smart ptr.
Definition: ShallowCopyable.h:131
#define ICLIO_API
Definition: CompatMacros.h:176
Utility class for generating a stream of filenames.
Definition: FilenameGenerator.h:52
ICLQt_API void show(const icl::core::ImgBase &image)
shows an image using TestImages::show