Files.hpp File Reference

File containing file system service routines. More...

#include "cgatools/core.hpp"
#include <vector>
#include <boost/filesystem.hpp>
#include <boost/regex.hpp>

Go to the source code of this file.

Namespaces

namespace  cgatools
 

Namespace containing the libcgatools API.


namespace  cgatools::util
 

Namespace for general-purpose utilities.


Defines

#define CGATOOLS_UTIL_FILES_HPP_   1

Functions

bool cgatools::util::files::findFiles (boost::filesystem::path const &directory, std::string const &filename, std::vector< boost::filesystem::path > &filesFound, bool recursive=false, bool includeDir=false, boost::regex_constants::syntax_option_type regExOptions=boost::regex_constants::basic)
 returns a list of the file names matching the given regular expression file name pattern
std::vector< std::string > cgatools::util::files::listDir (const boost::filesystem::path &dir, const std::string &pattern, size_t maxFiles=std::numeric_limits< size_t >::max())
 returns a list of the file names in the dir, doesn't support recursive scanning
void cgatools::util::files::check_dir (const boost::filesystem::path &p)
 checks if the specifide directory exists
std::string cgatools::util::files::findDataFile (const boost::filesystem::path &dir, const std::string &baseName)
 check existence and returns path to the specified data file.
std::string cgatools::util::files::findDataFileRegex (const boost::filesystem::path &dir, const std::string &baseName)
 check existence and returns path to the specified data file.
std::string cgatools::util::files::findDataFileRegexMulti (const boost::filesystem::path &dir, const std::vector< std::string > &possibleBaseNames, bool exnOnFail)
 Tries to find existing files matching the given base name regex.

Detailed Description

File containing file system service routines.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines

Generated by  doxygen 1.6.2