![]() |
Rosetta
2019.31
|
#include <posix.h>
Classes | |
| struct | Proxy |
Public Types | |
| enum | { RDONLY = FMT_POSIX(O_RDONLY), WRONLY = FMT_POSIX(O_WRONLY), RDWR = FMT_POSIX(O_RDWR) } |
Public Member Functions | |
| File () FMT_NOEXCEPT | |
| File (CStringRef path, int oflag) | |
| File (Proxy p) FMT_NOEXCEPT | |
| File (File &other) FMT_NOEXCEPT | |
| File & | operator= (Proxy p) |
| File & | operator= (File &other) |
| operator Proxy () FMT_NOEXCEPT | |
| ~File () FMT_NOEXCEPT | |
| int | descriptor () const FMT_NOEXCEPT |
| void | close () |
| LongLong | size () const |
| std::size_t | read (void *buffer, std::size_t count) |
| std::size_t | write (const void *buffer, std::size_t count) |
| void | dup2 (int fd) |
| void | dup2 (int fd, ErrorCode &ec) FMT_NOEXCEPT |
| BufferedFile | fdopen (const char *mode) |
Static Public Member Functions | |
| static File | dup (int fd) |
| static void | pipe (File &read_end, File &write_end) |
Private Member Functions | |
| File (int fd) | |
Private Attributes | |
| int | fd_ |
|
inlineexplicitprivate |
|
inline |
| fmt::File::File | ( | fmt::CStringRef | path, |
| int | oflag | ||
| ) |
|
inline |
|
inline |
| fmt::File::~File | ( | ) |
References FMT_POSIX_CALL, and fmt::report_system_error().
| void fmt::File::close | ( | ) |
References FMT_POSIX_CALL, FMT_THROW, and pyrosetta.tests.__main__::result.
Referenced by ez_setup.ContextualZipFile::__exit__(), operator=(), and pipe().
References FMT_POSIX_CALL, and FMT_THROW.
| void fmt::File::dup2 | ( | int | fd | ) |
References FMT_POSIX_CALL, FMT_RETRY, FMT_THROW, and pyrosetta.tests.__main__::result.
References FMT_POSIX_CALL, FMT_RETRY, and pyrosetta.tests.__main__::result.
| fmt::BufferedFile fmt::File::fdopen | ( | const char * | mode | ) |
References demo.D060_Folding::f, basic::options::OptionKeys::in::file::file, FMT_POSIX_CALL, and FMT_THROW.
|
inline |
References fd_, and basic::options::OptionKeys::score::fiber_diffraction::p.
References close(), fmt::File::Proxy::fd, and fd_.
References close(), FMT_POSIX_CALL, FMT_THROW, and pyrosetta.tests.__main__::result.
| std::size_t fmt::File::read | ( | void * | buffer, |
| std::size_t | count | ||
| ) |
| fmt::LongLong fmt::File::size | ( | ) | const |
References FMT_POSIX_CALL, FMT_STATIC_ASSERT, FMT_SYSTEM, FMT_THROW, fmt::LongLong, and fmt::ULongLong.
| std::size_t fmt::File::write | ( | const void * | buffer, |
| std::size_t | count | ||
| ) |
References FMT_POSIX_CALL, FMT_RETRY, FMT_THROW, pyrosetta.tests.__main__::result, and fmt::internal::to_unsigned().
|
private |
Referenced by descriptor(), operator Proxy(), and operator=().
1.8.7