STLdoc
STLdocumentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Classes | Namespaces | Macros | Typedefs | Enumerations | Functions
filesystem File Reference
#include <fstream>
#include <list>
#include <memory>
#include <ctime>
#include <new>
#include <string>

Classes

struct  tr2::sys::slash< _Path >
 
struct  tr2::sys::dot< _Path >
 
struct  tr2::sys::colon< _Path >
 
struct  tr2::sys::_Altslash< _Path >
 
class  tr2::sys::file_status
 
struct  tr2::sys::space_info
 
class  tr2::sys::_Path_iterator< _Path >
 
class  tr2::sys::basic_path< _String, _Traits >
 
class  tr2::sys::basic_filesystem_error< _Path >
 
struct  tr2::sys::path_traits
 
struct  tr2::sys::wpath_traits
 
struct  tr2::sys::is_basic_path< _Path >
 
struct  tr2::sys::is_basic_path< path >
 
struct  tr2::sys::is_basic_path< wpath >
 
struct  tr2::sys::slash< path >
 
struct  tr2::sys::slash< wpath >
 
struct  tr2::sys::dot< path >
 
struct  tr2::sys::dot< wpath >
 
struct  tr2::sys::colon< path >
 
struct  tr2::sys::colon< wpath >
 
struct  tr2::sys::_Altslash< path >
 
struct  tr2::sys::_Altslash< wpath >
 
class  tr2::sys::basic_directory_entry< _Path >
 
class  tr2::sys::basic_directory_iterator< _Path, _Prefix_directory >
 
class  tr2::sys::basic_recursive_directory_iterator< _Path >
 
class  tr2::sys::_Wrap_init_dir< _Path >
 

Namespaces

 tr2
 
 tr2::sys
 

Macros

#define _FILESYSTEM_
 
#define _FS_DLL   _CRTIMP2_PURE
 
#define _MAX_FILESYS_NAME   260 /* longest Windows or Posix filename + 1 */
 

Typedefs

typedef basic_path< string, path_traits > tr2::sys::path
 
typedef basic_path< wstring, wpath_traits > tr2::sys::wpath
 
typedef basic_filesystem_error< path > tr2::sys::filesystem_error
 
typedef basic_filesystem_error< wpath > tr2::sys::wfilesystem_error
 
typedef basic_directory_entry< path > tr2::sys::directory_entry
 
typedef basic_directory_entry< wpath > tr2::sys::wdirectory_entry
 
typedef basic_directory_iterator< path > tr2::sys::directory_iterator
 
typedef basic_directory_iterator< wpath > tr2::sys::wdirectory_iterator
 
typedef basic_recursive_directory_iterator< path > tr2::sys::recursive_directory_iterator
 
typedef basic_recursive_directory_iterator< wpath > tr2::sys::wrecursive_directory_iterator
 
typedef copy_option tr2::sys::_Copy_option
 

Enumerations

enum  tr2::sys::file_type {
  tr2::sys::status_unknown, tr2::sys::file_not_found, tr2::sys::regular_file, tr2::sys::directory_file,
  tr2::sys::symlink_file, tr2::sys::block_file, tr2::sys::character_file, tr2::sys::fifo_file,
  tr2::sys::socket_file, tr2::sys::type_unknown
}
 
enum  tr2::sys::copy_option { tr2::sys::copy_option::fail_if_exists, tr2::sys::copy_option::overwrite_if_exists }
 

Functions

template<class _String , class _Traits >
void tr2::sys::swap (basic_path< _String, _Traits > &_Left, basic_path< _String, _Traits > &_Right)
 
template<class _String , class _Traits >
basic_path< _String, _Traits > tr2::sys::operator/ (const basic_path< _String, _Traits > &_Left, const basic_path< _String, _Traits > &_Right)
 
template<class _String , class _Traits >
bool tr2::sys::operator== (const basic_path< _String, _Traits > &_Left, const basic_path< _String, _Traits > &_Right)
 
template<class _String , class _Traits >
bool tr2::sys::operator!= (const basic_path< _String, _Traits > &_Left, const basic_path< _String, _Traits > &_Right)
 
template<class _String , class _Traits >
bool tr2::sys::operator< (const basic_path< _String, _Traits > &_Left, const basic_path< _String, _Traits > &_Right)
 
template<class _String , class _Traits >
bool tr2::sys::operator> (const basic_path< _String, _Traits > &_Left, const basic_path< _String, _Traits > &_Right)
 
template<class _String , class _Traits >
bool tr2::sys::operator<= (const basic_path< _String, _Traits > &_Left, const basic_path< _String, _Traits > &_Right)
 
template<class _String , class _Traits >
bool tr2::sys::operator>= (const basic_path< _String, _Traits > &_Left, const basic_path< _String, _Traits > &_Right)
 
template<class _String , class _Traits >
basic_ostream< typename _String::value_type, typename _String::traits_type > & tr2::sys::operator<< (basic_ostream< typename _String::value_type, typename _String::traits_type > &_Ostr, const basic_path< _String, _Traits > &_Pval)
 
template<class _String , class _Traits >
basic_istream< typename _String::value_type, typename _String::traits_type > & tr2::sys::operator>> (basic_istream< typename _String::value_type, typename _String::traits_type > &_Istr, basic_path< _String, _Traits > &_Pval)
 
_FS_DLL void *__CLRCALL_PURE_OR_CDECL tr2::sys::_Open_dir (char(&)[_MAX_FILESYS_NAME], const char *, int &, file_type &)
 
_FS_DLL char *__CLRCALL_PURE_OR_CDECL tr2::sys::_Read_dir (char(&)[_MAX_FILESYS_NAME], void *, file_type &)
 
_FS_DLL void __CLRCALL_PURE_OR_CDECL tr2::sys::_Close_dir (void *)
 
_FS_DLL char *__CLRCALL_PURE_OR_CDECL tr2::sys::_Current_get (char(&)[_MAX_FILESYS_NAME])
 
_FS_DLL bool __CLRCALL_PURE_OR_CDECL tr2::sys::_Current_set (const char *)
 
_FS_DLL int __CLRCALL_PURE_OR_CDECL tr2::sys::_Make_dir (const char *)
 
_FS_DLL bool __CLRCALL_PURE_OR_CDECL tr2::sys::_Remove_dir (const char *)
 
_FS_DLL file_type __CLRCALL_PURE_OR_CDECL tr2::sys::_Stat (const char *, int &)
 
_FS_DLL file_type __CLRCALL_PURE_OR_CDECL tr2::sys::_Lstat (const char *, int &)
 
_FS_DLL _ULonglong __CLRCALL_PURE_OR_CDECL tr2::sys::_File_size (const char *)
 
_FS_DLL time_t __CLRCALL_PURE_OR_CDECL tr2::sys::_Last_write_time (const char *)
 
_FS_DLL void __CLRCALL_PURE_OR_CDECL tr2::sys::_Last_write_time (const char *, time_t)
 
_FS_DLL space_info __CLRCALL_PURE_OR_CDECL tr2::sys::_Statvfs (const char *)
 
_FS_DLL int __CLRCALL_PURE_OR_CDECL tr2::sys::_Equivalent (const char *, const char *)
 
_FS_DLL int __CLRCALL_PURE_OR_CDECL tr2::sys::_Link (const char *, const char *)
 
_FS_DLL int __CLRCALL_PURE_OR_CDECL tr2::sys::_Symlink (const char *, const char *)
 
_FS_DLL int __CLRCALL_PURE_OR_CDECL tr2::sys::_Rename (const char *, const char *)
 
_FS_DLL int __CLRCALL_PURE_OR_CDECL tr2::sys::_Unlink (const char *)
 
_FS_DLL int __CLRCALL_PURE_OR_CDECL tr2::sys::_Copy_file (const char *, const char *, bool)
 
_FS_DLL void *__CLRCALL_PURE_OR_CDECL tr2::sys::_Open_dir (wchar_t(&)[_MAX_FILESYS_NAME], const wchar_t *, int &, file_type &)
 
_FS_DLL wchar_t *__CLRCALL_PURE_OR_CDECL tr2::sys::_Read_dir (wchar_t(&)[_MAX_FILESYS_NAME], void *, file_type &)
 
_FS_DLL wchar_t *__CLRCALL_PURE_OR_CDECL tr2::sys::_Current_get (wchar_t(&)[_MAX_FILESYS_NAME])
 
_FS_DLL bool __CLRCALL_PURE_OR_CDECL tr2::sys::_Current_set (const wchar_t *)
 
_FS_DLL int __CLRCALL_PURE_OR_CDECL tr2::sys::_Make_dir (const wchar_t *)
 
_FS_DLL bool __CLRCALL_PURE_OR_CDECL tr2::sys::_Remove_dir (const wchar_t *)
 
_FS_DLL file_type __CLRCALL_PURE_OR_CDECL tr2::sys::_Stat (const wchar_t *, int &)
 
_FS_DLL file_type __CLRCALL_PURE_OR_CDECL tr2::sys::_Lstat (const wchar_t *, int &)
 
_FS_DLL _ULonglong __CLRCALL_PURE_OR_CDECL tr2::sys::_File_size (const wchar_t *)
 
_FS_DLL time_t __CLRCALL_PURE_OR_CDECL tr2::sys::_Last_write_time (const wchar_t *)
 
_FS_DLL void __CLRCALL_PURE_OR_CDECL tr2::sys::_Last_write_time (const wchar_t *, time_t)
 
_FS_DLL space_info __CLRCALL_PURE_OR_CDECL tr2::sys::_Statvfs (const wchar_t *)
 
_FS_DLL int __CLRCALL_PURE_OR_CDECL tr2::sys::_Equivalent (const wchar_t *, const wchar_t *)
 
_FS_DLL int __CLRCALL_PURE_OR_CDECL tr2::sys::_Link (const wchar_t *, const wchar_t *)
 
_FS_DLL int __CLRCALL_PURE_OR_CDECL tr2::sys::_Symlink (const wchar_t *, const wchar_t *)
 
_FS_DLL int __CLRCALL_PURE_OR_CDECL tr2::sys::_Rename (const wchar_t *, const wchar_t *)
 
_FS_DLL int __CLRCALL_PURE_OR_CDECL tr2::sys::_Unlink (const wchar_t *)
 
_FS_DLL int __CLRCALL_PURE_OR_CDECL tr2::sys::_Copy_file (const wchar_t *, const wchar_t *, bool)
 
template<class _Path , class _Prefix_directory >
bool tr2::sys::operator== (const basic_directory_iterator< _Path, _Prefix_directory > &_Left, const basic_directory_iterator< _Path, _Prefix_directory > &_Right)
 
template<class _Path , class _Prefix_directory >
bool tr2::sys::operator!= (const basic_directory_iterator< _Path, _Prefix_directory > &_Left, const basic_directory_iterator< _Path, _Prefix_directory > &_Right)
 
template<class _Path >
bool tr2::sys::operator== (const basic_recursive_directory_iterator< _Path > &_Left, const basic_recursive_directory_iterator< _Path > &_Right)
 
template<class _Path >
bool tr2::sys::operator!= (const basic_recursive_directory_iterator< _Path > &_Left, const basic_recursive_directory_iterator< _Path > &_Right)
 
template<class _Path >
file_status tr2::sys::status (const _Path &_Pval)
 
template<class _Path >
file_status tr2::sys::status (const _Path &_Pval, error_code &_Code)
 
template<class _Path >
file_status tr2::sys::symlink_status (const _Path &_Pval)
 
template<class _Path >
file_status tr2::sys::symlink_status (const _Path &_Pval, error_code &_Code)
 
bool tr2::sys::status_known (file_status _Stat)
 
bool tr2::sys::exists (file_status _Stat)
 
bool tr2::sys::is_regular (file_status _Stat)
 
bool tr2::sys::is_regular_file (file_status _Stat)
 
bool tr2::sys::is_directory (file_status _Stat)
 
bool tr2::sys::is_symlink (file_status _Stat)
 
bool tr2::sys::is_other (file_status _Stat)
 
template<class _Path >
bool tr2::sys::exists (const _Path &_Pval)
 
template<class _Path >
bool tr2::sys::is_regular (const _Path &_Pval)
 
template<class _Path >
bool tr2::sys::is_regular_file (const _Path &_Pval)
 
template<class _Path >
bool tr2::sys::is_directory (const _Path &_Pval)
 
template<class _Path >
bool tr2::sys::is_symlink (const _Path &_Pval)
 
template<class _Path >
bool tr2::sys::is_other (const _Path &_Pval)
 
template<class _Path >
bool tr2::sys::is_empty (const _Path &_Pval)
 
template<class _Path1 , class _Path2 >
bool tr2::sys::equivalent (const _Path1 &_Pval1, const _Path2 &_Pval2)
 
template<class _Path >
_Path tr2::sys::current_path ()
 
template<class _Path >
void tr2::sys::current_path (const _Path &_Pval)
 
template<class _Path >
_Path tr2::sys::initial_path ()
 
template<class _Path >
_ULonglong tr2::sys::file_size (const _Path &_Pval)
 
template<class _Path >
space_info tr2::sys::space (const _Path &_Pval)
 
template<class _Path >
time_t tr2::sys::last_write_time (const _Path &_Pval)
 
template<class _Path >
void tr2::sys::last_write_time (const _Path &_Pval, time_t _Newtime)
 
template<class _Path >
bool tr2::sys::create_directory (const _Path &_Pval)
 
template<class _Path >
bool tr2::sys::remove_directory (const _Path &_Pval)
 
template<class _Path1 , class _Path2 >
void tr2::sys::create_hard_link (const _Path1 &_Oldpval, const _Path2 &_Newpval)
 
template<class _Path1 , class _Path2 >
error_code tr2::sys::create_hard_link (const _Path1 &_Oldpval, const _Path2 &_Newpval, error_code &_Code)
 
template<class _Path1 , class _Path2 >
void tr2::sys::create_symlink (const _Path1 &_Oldpval, const _Path2 &_Newpval)
 
template<class _Path1 , class _Path2 >
error_code tr2::sys::create_symlink (const _Path1 &_Oldpval, const _Path2 &_Newpval, error_code &_Code)
 
template<class _Path >
bool tr2::sys::remove (const _Path &_Pval)
 
template<class _Path >
bool tr2::sys::remove_filename (const _Path &_Pval)
 
template<class _Path >
bool tr2::sys::_Remove_all (const _Path &_Pval, unsigned long &_Ans)
 
template<class _Path >
unsigned long tr2::sys::remove_all (const _Path &_Pval)
 
template<class _Path1 , class _Path2 >
bool tr2::sys::rename (const _Path1 &_Oldpval, const _Path2 &_Newpval)
 
template<class _Path1 , class _Path2 >
void tr2::sys::copy_file (const _Path1 &_Oldpval, const _Path2 &_Newpval, _Copy_option _Opt=copy_option::fail_if_exists)
 
template<class _Path >
_Path tr2::sys::complete (const _Path &_Pval, const _Path &_Pbase=initial_path< _Path >())
 
template<class _Path >
_Path tr2::sys::system_complete (const _Path &_Pval)
 
template<class _Path >
bool tr2::sys::create_directories (const _Path &_Pval)
 
template<class _Path >
_Path::string_type tr2::sys::extension (const _Path &_Pval)
 
template<class _Path >
_Path::string_type tr2::sys::basename (const _Path &_Pval)
 
template<class _Path >
_Path::string_type tr2::sys::stem (const _Path &_Pval)
 
template<class _Path >
_Path tr2::sys::replace_extension (const _Path &_Pval, const typename _Path::string_type &_Newext)
 

Macro Definition Documentation

#define _FILESYSTEM_
#define _FS_DLL   _CRTIMP2_PURE
#define _MAX_FILESYS_NAME   260 /* longest Windows or Posix filename + 1 */