00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016 #ifndef NAME_UTILS_H
00017 #define NAME_UTILS_H
00018
00019 #include <string>
00020 #include <vector>
00021
00022 using std::string;
00023 using std::vector;
00024
00025 namespace nameutils {
00026
00027 string parse_format (const string& prefix_, vector<string>& vs_);
00028 string parse_seq_number (const string& name_, const string& prefix_);
00029 string format_seqnum (int seqnum_, const string& fmt_);
00030 string make_name_with_offset (const string& name_, const string& fmt_,
00031 const string& prefix_,
00032 const string& dirpath_,
00033 int offset_);
00034 string make_prev_name (const string& name_, const string& fmt_,
00035 const string& prefix_, const string& dirpath_);
00036 string make_next_name (const string& name_, const string& fmt_,
00037 const string& prefix_, const string& dirpath_);
00038
00039 int fast_copy (const string& src_, const string& dest_);
00040 };
00041
00042 #endif // NAME_UTILS_H