Classes | |
| class | abort_callback |
| class | abort_callback_impl |
| Implementation of abort_callback interface. More... | |
| struct | t_filestats |
| Stores file stats (size and timestamp). More... | |
| class | stream_reader |
| class | stream_writer |
| class | file |
| class | file_dynamicinfo |
| Special hack for shoutcast metadata nonsense handling. Documentme. More... | |
| class | file_readonly_t |
| Implementation helper - contains dummy implementations of methods that modify the file. More... | |
| class | directory_callback |
| class | filesystem |
| class | directory_callback_impl |
| class | archive_callback |
| class | archive |
| Interface for archive reader services. When implementing, derive from archive_impl rather than from deriving from archive directly. More... | |
| class | archive_impl |
| Root class for archive implementations. Derive from this instead of from archive directly. More... | |
| class | archive_factory_t |
| class | format_filetimestamp |
| Warning: this formats according to system timezone settings, created strings should be used for display only, never for storage. More... | |
Typedefs | |
| typedef t_uint64 | t_filesize |
| Type used for file size related variables. | |
| typedef t_int64 | t_sfilesize |
| Type used for file size related variables when signed value is needed. | |
| typedef t_uint64 | t_filetimestamp |
| Type used for file timestamp related variables. 64-bit value representing the number of 100-nanosecond intervals since January 1, 1601; 0 for invalid/unknown time. | |
| typedef file_readonly_t< file > | file_readonly |
Functions | |
| PFC_DECLARE_EXCEPTION (exception_aborted, pfc::exception,"User abort") | |
| PFC_DECLARE_EXCEPTION (exception_io, pfc::exception,"I/O error") | |
| Generic I/O error. Root class for I/O failure exception. See relevant default message for description of each derived exception class. | |
| PFC_DECLARE_EXCEPTION (exception_io_not_found, exception_io,"Object not found") | |
| Object not found. | |
| PFC_DECLARE_EXCEPTION (exception_io_denied, exception_io,"Access denied") | |
| Access denied. | |
| PFC_DECLARE_EXCEPTION (exception_io_data, exception_io,"Unsupported format or corrupted file") | |
| Unsupported format or corrupted file (unexpected data encountered). | |
| PFC_DECLARE_EXCEPTION (exception_io_data_truncation, exception_io_data,"Unsupported format or corrupted file") | |
| Unsupported format or corrupted file (truncation encountered). | |
| PFC_DECLARE_EXCEPTION (exception_io_unsupported_format, exception_io_data,"Unsupported file format") | |
| Unsupported format (a subclass of "unsupported format or corrupted file" exception). | |
| PFC_DECLARE_EXCEPTION (exception_io_object_is_remote, exception_io,"This operation is not supported on remote objects") | |
| Object is remote, while specific operation is supported only for local objects. | |
| PFC_DECLARE_EXCEPTION (exception_io_sharing_violation, exception_io,"Sharing violation") | |
| Sharing violation. | |
| PFC_DECLARE_EXCEPTION (exception_io_device_full, exception_io,"Device full") | |
| Device full. | |
| PFC_DECLARE_EXCEPTION (exception_io_seek_out_of_range, exception_io,"Seek offset out of range") | |
| Attempt to seek outside valid range. | |
| PFC_DECLARE_EXCEPTION (exception_io_object_not_seekable, exception_io,"Object is not seekable") | |
| This operation requires a seekable object. | |
| PFC_DECLARE_EXCEPTION (exception_io_no_length, exception_io,"Length of object is unknown") | |
| This operation requires an object with known length. | |
| PFC_DECLARE_EXCEPTION (exception_io_no_handler_for_path, exception_io,"Invalid path") | |
| Invalid path. | |
| PFC_DECLARE_EXCEPTION (exception_io_already_exists, exception_io,"Object already exists") | |
| Object already exists. | |
| PFC_DECLARE_EXCEPTION (exception_io_no_data, exception_io,"The process receiving or sending data has terminated") | |
| Pipe error. | |
| PFC_DECLARE_EXCEPTION (exception_io_network_not_reachable, exception_io,"Network not reachable") | |
| Network not reachable. | |
| PFC_DECLARE_EXCEPTION (exception_io_write_protected, exception_io_denied,"The media is write protected") | |
| Media is write protected. | |
| PFC_DECLARE_EXCEPTION (exception_io_file_corrupted, exception_io,"The file is corrupted") | |
| File is corrupted. This indicates filesystem call failure, not actual invalid data being read by the app. | |
| PFC_DECLARE_EXCEPTION (exception_io_disk_change, exception_io,"Disc not available") | |
| The disc required for requested operation is not available. | |
| t_filetimestamp | filetimestamp_from_system_timer () |
| void | generate_temp_location_for_file (pfc::string_base &p_out, const char *p_origpath, const char *p_extension, const char *p_magic) |
Variables | |
| const t_filetimestamp | filetimestamp_invalid = 0 |
| Invalid/unknown file timestamp constant. Also see: t_filetimestamp. | |
| const t_filesize | filesize_invalid = (t_filesize)(~0) |
| Invalid/unknown file size constant. Also see: t_filesize. | |
| static const t_filestats | filestats_invalid = {filesize_invalid,filetimestamp_invalid} |
| Invalid/unknown file stats constant. See: t_filestats. | |
| typedef t_uint64 foobar2000_io::t_filesize |
Type used for file size related variables.
Type used for file timestamp related variables. 64-bit value representing the number of 100-nanosecond intervals since January 1, 1601; 0 for invalid/unknown time.
| typedef t_int64 foobar2000_io::t_sfilesize |
Type used for file size related variables when signed value is needed.
| t_filetimestamp foobar2000_io::filetimestamp_from_system_timer | ( | ) |
| void foobar2000_io::generate_temp_location_for_file | ( | pfc::string_base & | p_out, | |
| const char * | p_origpath, | |||
| const char * | p_extension, | |||
| const char * | p_magic | |||
| ) |
| foobar2000_io::PFC_DECLARE_EXCEPTION | ( | exception_io_disk_change | , | |
| exception_io | , | |||
| "Disc not available" | ||||
| ) |
The disc required for requested operation is not available.
| foobar2000_io::PFC_DECLARE_EXCEPTION | ( | exception_io_file_corrupted | , | |
| exception_io | , | |||
| "The file is corrupted" | ||||
| ) |
File is corrupted. This indicates filesystem call failure, not actual invalid data being read by the app.
| foobar2000_io::PFC_DECLARE_EXCEPTION | ( | exception_io_write_protected | , | |
| exception_io_denied | , | |||
| "The media is write protected" | ||||
| ) |
Media is write protected.
| foobar2000_io::PFC_DECLARE_EXCEPTION | ( | exception_io_network_not_reachable | , | |
| exception_io | , | |||
| "Network not reachable" | ||||
| ) |
Network not reachable.
| foobar2000_io::PFC_DECLARE_EXCEPTION | ( | exception_io_no_data | , | |
| exception_io | , | |||
| "The process receiving or sending data has terminated" | ||||
| ) |
Pipe error.
| foobar2000_io::PFC_DECLARE_EXCEPTION | ( | exception_io_already_exists | , | |
| exception_io | , | |||
| "Object already exists" | ||||
| ) |
Object already exists.
| foobar2000_io::PFC_DECLARE_EXCEPTION | ( | exception_io_no_handler_for_path | , | |
| exception_io | , | |||
| "Invalid path" | ||||
| ) |
Invalid path.
| foobar2000_io::PFC_DECLARE_EXCEPTION | ( | exception_io_no_length | , | |
| exception_io | , | |||
| "Length of object is unknown" | ||||
| ) |
This operation requires an object with known length.
| foobar2000_io::PFC_DECLARE_EXCEPTION | ( | exception_io_object_not_seekable | , | |
| exception_io | , | |||
| "Object is not seekable" | ||||
| ) |
This operation requires a seekable object.
| foobar2000_io::PFC_DECLARE_EXCEPTION | ( | exception_io_seek_out_of_range | , | |
| exception_io | , | |||
| "Seek offset out of range" | ||||
| ) |
Attempt to seek outside valid range.
| foobar2000_io::PFC_DECLARE_EXCEPTION | ( | exception_io_device_full | , | |
| exception_io | , | |||
| "Device full" | ||||
| ) |
Device full.
| foobar2000_io::PFC_DECLARE_EXCEPTION | ( | exception_io_sharing_violation | , | |
| exception_io | , | |||
| "Sharing violation" | ||||
| ) |
Sharing violation.
| foobar2000_io::PFC_DECLARE_EXCEPTION | ( | exception_io_object_is_remote | , | |
| exception_io | , | |||
| "This operation is not supported on remote objects" | ||||
| ) |
Object is remote, while specific operation is supported only for local objects.
| foobar2000_io::PFC_DECLARE_EXCEPTION | ( | exception_io_unsupported_format | , | |
| exception_io_data | , | |||
| "Unsupported file format" | ||||
| ) |
Unsupported format (a subclass of "unsupported format or corrupted file" exception).
| foobar2000_io::PFC_DECLARE_EXCEPTION | ( | exception_io_data_truncation | , | |
| exception_io_data | , | |||
| "Unsupported format or corrupted file" | ||||
| ) |
Unsupported format or corrupted file (truncation encountered).
| foobar2000_io::PFC_DECLARE_EXCEPTION | ( | exception_io_data | , | |
| exception_io | , | |||
| "Unsupported format or corrupted file" | ||||
| ) |
Unsupported format or corrupted file (unexpected data encountered).
| foobar2000_io::PFC_DECLARE_EXCEPTION | ( | exception_io_denied | , | |
| exception_io | , | |||
| "Access denied" | ||||
| ) |
Access denied.
| foobar2000_io::PFC_DECLARE_EXCEPTION | ( | exception_io_not_found | , | |
| exception_io | , | |||
| "Object not found" | ||||
| ) |
Object not found.
| foobar2000_io::PFC_DECLARE_EXCEPTION | ( | exception_io | , | |
| pfc::exception | , | |||
| "I/O error" | ||||
| ) |
Generic I/O error. Root class for I/O failure exception. See relevant default message for description of each derived exception class.
| foobar2000_io::PFC_DECLARE_EXCEPTION | ( | exception_aborted | , | |
| pfc::exception | , | |||
| "User abort" | ||||
| ) |
| const t_filesize foobar2000_io::filesize_invalid = (t_filesize)(~0) |
Invalid/unknown file size constant. Also see: t_filesize.
const t_filestats foobar2000_io::filestats_invalid = {filesize_invalid,filetimestamp_invalid} [static] |
Invalid/unknown file stats constant. See: t_filestats.
Invalid/unknown file timestamp constant. Also see: t_filetimestamp.
1.5.5