Typedefs | Functions
filetools.hh File Reference
#include <string>
#include <vector>
#include <mia/core/defines.hh>
#include <boost/filesystem/path.hpp>

Go to the source code of this file.

Typedefs

typedef std::vector
< boost::filesystem::path > 
CPathNameArray
 

Functions

EXPORT_CORE std::string create_filename (const char *cformat, size_t num)
 
CPathNameArray find_files (const CPathNameArray &searchpath, const std::string &pattern)
 
EXPORT_CORE size_t fname_to_cformat (const char *fname, std::string &base, bool wildcard)
 
EXPORT_CORE std::vector
< std::string > 
get_consecutive_numbered_files (std::string const &in_filename)
 
EXPORT_CORE std::vector
< std::string > 
get_consecutive_numbered_files_from_pattern (std::string const &in_filename, int start, int end)
 
EXPORT_CORE size_t get_filename_number_pattern (std::string const &infilename, std::string &base, std::string &suffix)
 
EXPORT_CORE size_t get_filename_number_pattern_width (std::string const &in_filename)
 
EXPORT_CORE const std::string get_filename_pattern_and_range (std::string const &in_filename, size_t &min, size_t &max, size_t &format_width)
 
EXPORT_CORE void split_dir_fname (const char *in_name, std::string &dir, std::string &sname)
 
EXPORT_CORE void split_filename_number_pattern (std::string const &in_filename, std::string &base, std::string &suffix, std::string &number)
 

Typedef Documentation

typedef std::vector<boost::filesystem::path> CPathNameArray

Definition at line 32 of file filetools.hh.

Function Documentation

CPathNameArray find_files ( const CPathNameArray searchpath,
const std::string &  pattern 
)