ProteoWizard
Namespaces | Macros | Enumerations | Functions
Filesystem.hpp File Reference
#include "Export.hpp"
#include "String.hpp"
#include "Container.hpp"
#include <boost/filesystem/operations.hpp>
#include <boost/filesystem/convenience.hpp>
#include <boost/filesystem/fstream.hpp>
#include <boost/version.hpp>
#include "pwiz/utility/misc/random_access_compressed_ifstream.hpp"

Go to the source code of this file.

Namespaces

 pwiz
 
 pwiz::util
 

Macros

#define BOOST_FILESYSTEM_VERSION   2
 
#define BFS_STRING(p)   p
 
#define BFS_GENERIC_STRING(p)   p
 
#define BFS_COMPLETE   bfs::complete
 

Enumerations

enum  pwiz::util::ByteSizeAbbreviation { pwiz::util::ByteSizeAbbreviation_IEC, pwiz::util::ByteSizeAbbreviation_JEDEC, pwiz::util::ByteSizeAbbreviation_SI }
 

Functions

PWIZ_API_DECL int pwiz::util::expand_pathmask (const bfs::path &pathmask, vector< bfs::path > &matchingPaths)
 expands (aka globs) a pathmask to zero or more matching paths and returns the number of matching paths More...
 
PWIZ_API_DECL void pwiz::util::copy_directory (const bfs::path &from, const bfs::path &to, bool recursive=true, boost::system::error_code *ec=0)
 if recursive is true, then copies "from" and all its contents to "to"; if "to" already exists or the copy fails for another reason, the error is reported in one of two ways: More...
 
PWIZ_API_DECL std::string pwiz::util::abbreviate_byte_size (boost::uintmax_t byteSize, ByteSizeAbbreviation abbreviationType=ByteSizeAbbreviation_SI)
 abbreviates a byte size (file or RAM) as a readable string, using the specified notation More...
 
PWIZ_API_DECL std::string pwiz::util::read_file_header (const std::string &filepath, size_t length=512)
 
PWIZ_API_DECL std::pair< int, int > pwiz::util::get_console_bounds (const std::pair< int, int > &defaultBounds=std::pair< int, int >(80, 24))
 attempts to get the platform-specific console bounds (number of columns and lines), returns defaultBounds if an error occurs or the platform is not supported More...
 

Macro Definition Documentation

§ BOOST_FILESYSTEM_VERSION

#define BOOST_FILESYSTEM_VERSION   2

Definition at line 43 of file Filesystem.hpp.

§ BFS_STRING

#define BFS_STRING (   p)    p

§ BFS_GENERIC_STRING

#define BFS_GENERIC_STRING (   p)    p

Definition at line 54 of file Filesystem.hpp.

§ BFS_COMPLETE

#define BFS_COMPLETE   bfs::complete

Definition at line 56 of file Filesystem.hpp.