xtd 0.2.0
Loading...
Searching...
No Matches
xtd::io Namespace Reference

Definition

The xtd::io namespace contains types that allow reading and writing to files and data streams, and types that provide basic file and directory support.

Classes

class  binary_reader
 Reads primitive data types as binary values in a specific encoding. More...
 
class  binary_writer
 Writes primitive types in binary to a stream and supports writing strings. More...
 
class  directory
 Exposes static methods for creating, moving, and enumerating through directories and subdirectories. This class cannot be inherited. More...
 
class  directory_info
 Exposes instance methods for creating, moving, and enumerating through directories and subdirectories. This class cannot be inherited. More...
 
class  directory_not_found_exception
 The exception that is thrown when part of a file or directory cannot be found. More...
 
class  drive_info
 Provides access to information on a drive. More...
 
class  drive_not_found_exception
 The exception that is thrown when trying to access a drive or share that is not available. More...
 
class  end_of_stream_exception
 The exception that is thrown when reading is attempted past the end of a stream. More...
 
class  file
 Provides static methods for the creation, copying, deletion, moving, and opening of files, and aids in the creation of std::fstream objects. More...
 
class  file_format_exception
 The exception that is thrown when the format of an argument does not meet the parameter specifications of the invoked method. More...
 
class  file_info
 Provides static methods for the creation, copying, deletion, moving, and opening of files, and aids in the creation of std::fstream objects. More...
 
class  file_load_exception
 The exception that is thrown when a managed assembly is found but cannot be loaded. More...
 
class  file_not_found_exception
 The exception that is thrown when an attempt to access a file that does not exist on disk fails. More...
 
class  file_system_info
 Provides the base class for both xtd::io::file_info and xtd::io::directory_info objects. More...
 
class  io_exception
 The exception that is thrown when an I/O error occurs. More...
 
class  null_text_reader
 Represents a null text reader. More...
 
class  null_text_writer
 Represents a null text writer. More...
 
class  path
 Performs operations on std::basic_string instances that contain file or directory path information. These operations are performed in a cross-platform manner. More...
 
class  path_too_long_exception
 The exception that is thrown when a path or file name is longer than the system-defined maximum length. More...
 
class  stream_reader
 Implements a xtd::io::text_reader that reads characters from a byte stream. More...
 
class  stream_writer
 Implements a xtd::io::text_writer for writing characters to a stream. More...
 
class  string_reader
 Implements a xtd::io::text_reader that reads from a string. More...
 
class  string_writer
 Implements a xtd::io::text_writer for writing characters to a string. More...
 
class  synchronized_text_reader
 Represents a synchronized text reader. More...
 
class  synchronized_text_writer
 Represents a synchronized text writer. More...
 
class  text_reader
 Represents a reader that can read a sequential series of characters. More...
 
class  text_writer
 Represents a writer that can write a sequential series of characters. More...
 

Enumerations

enum class  drive_type {
  drive_type::unknown ,
  drive_type::no_root_directory ,
  drive_type::removable ,
  drive_type::fixed ,
  drive_type::network ,
  drive_type::cd_rom ,
  drive_type::ram
}
 Defines constants for drive types, including CDRom, Fixed, Network, NoRootDirectory, Ram, Removable, and Unknown. More...
 
enum class  file_access {
  file_access::read ,
  file_access::write ,
  file_access::read_write
}
 Defines constants for read, write, or read/write access to a file. This enumeration has a flags attribute that allows a bitwise combination of its member values. More...
 
enum class  file_attributes {
  file_attributes::read_only ,
  file_attributes::hidden ,
  file_attributes::system ,
  file_attributes::directory ,
  file_attributes::archive ,
  file_attributes::device ,
  file_attributes::normal ,
  file_attributes::temporary ,
  file_attributes::sparse_file ,
  file_attributes::reparse_point ,
  file_attributes::compressed ,
  file_attributes::offline ,
  file_attributes::not_content_indexed ,
  file_attributes::encrypted
}
 Provides attributes for files and directories. More...
 
enum class  file_permissions {
  file_permissions::none ,
  file_permissions::owner_read ,
  file_permissions::owner_write ,
  file_permissions::owner_execute ,
  file_permissions::owner_all ,
  file_permissions::group_read ,
  file_permissions::group_write ,
  file_permissions::group_execute ,
  file_permissions::group_all ,
  file_permissions::others_read ,
  file_permissions::others_write ,
  file_permissions::others_execute ,
  file_permissions::others_all ,
  file_permissions::all ,
  file_permissions::set_uid ,
  file_permissions::set_gid ,
  file_permissions::sticky_bit ,
  file_permissions::mask ,
  file_permissions::unknown
}
 Provides permissions for files and directories. More...
 
enum class  search_option {
  search_option::top_directory_only ,
  search_option::all_directories
}
 Specifies whether to search the current directory, or the current directory and all subdirectories. More...