50 size_t ndx = format.find(
"XXXXXX");
51 if (ndx != string::npos && ndx + 6 == format.length()) {
52 ostringstream ostr(format.substr(0,ndx));
54 for (
unsigned i = 0; i <= 0xffffff; ++i,ostr.seekp(ndx)) {
55 ostr << setw(6) << setfill(
'0') << hex << i;
74 return cwd_path.str();
unsigned obj_type_t
Abstract type of filesystem object types.
bool is_absolute(std::string pathname)
Say whether a filename is absolute or relative.
std::string cwd()
Get the absolute real pathname of the current working directory.
std::string abs_path(std::string const &filename)
Get the absolute pathname for a filename.
std::string real_path(std::string const &relname)
Get the absolute real pathname of a file or directory name.
obj_type_t obj_type(std::string const &name)
Get the type of the object putatively designated by a filename.
std::string tempname(std::string const &format)
Create a tempory filename from a template.