28 #ifndef DATATOOLS_SMART_FILENAME_H 29 #define DATATOOLS_SMART_FILENAME_H 38 #include <boost/cstdint.hpp> 124 const std::string &
operator[](
int index_)
const;
130 bool has_filename(
const std::string & name_,
bool expand_ =
true)
const;
133 void set(
const std::string & filename_);
136 void set_single(
const std::string & filename_);
139 void add(
const std::string & filename_);
149 std::string & filename_)
const;
152 void dump(std::ostream & out_ = std::clog)
const;
162 bool append_ =
true)
const;
166 const std::string & filename_,
167 bool expand_path_ =
true);
171 bool allow_duplication_ =
false,
172 bool expand_path_ =
true);
176 const std::string & list_file_,
177 bool allow_duplication_ =
false,
178 bool expand_path_ =
true);
182 const std::string & path_,
183 const std::string & prefix_,
184 const std::string & extension_,
186 int starting_index_ = 0,
187 int increment_index_ = 1,
188 const std::string & suffix_ =
"",
189 int incremental_index_ndigit_ = 0,
190 bool expand_path_ =
true);
194 const std::string & path_,
195 const std::string & prefix_,
196 const std::string & extension_,
197 int starting_index_ = 0,
198 int increment_index_ = 1,
199 const std::string & suffix_ =
"",
200 int incremental_index_ndigit_ = 0,
201 bool expand_path_ =
true);
209 void add_list(
const std::string & filename_);
223 bool _list_allow_duplication_;
225 std::string _incremental_path_;
226 std::string _incremental_prefix_;
227 std::string _incremental_suffix_;
228 std::string _incremental_extension_;
229 int32_t _incremental_starting_index_;
230 int32_t _incremental_stopping_index_;
231 int32_t _incremental_increment_;
232 uint32_t _incremental_index_ndigit_;
243 #endif // DATATOOLS_SMART_FILENAME_H
DOCD_CLASS_DECLARATION(my::algo)
Declaration of the OCD support for the my::algo class.
Utilities for logging information.