![]() |
Rosetta
3.7
|
#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.
Referenced by operator=(), and pipe().
References FMT_POSIX_CALL.
void fmt::File::dup2 | ( | int | fd | ) |
References FMT_POSIX_CALL, and FMT_RETRY.
References FMT_POSIX_CALL, and FMT_RETRY.
fmt::BufferedFile fmt::File::fdopen | ( | const char * | mode | ) |
References demo.D060_Folding::f, basic::options::OptionKeys::in::file::file, and FMT_POSIX_CALL.
|
inline |
References fd_, and basic::options::OptionKeys::score::fiber_diffraction::p.
References close(), fmt::File::Proxy::fd, and fd_.
References close(), and FMT_POSIX_CALL.
std::size_t fmt::File::read | ( | void * | buffer, |
std::size_t | count | ||
) |
References FMT_POSIX_CALL, FMT_RETRY, and ObjexxFCL::read().
fmt::LongLong fmt::File::size | ( | ) | const |
References FMT_POSIX_CALL, FMT_STATIC_ASSERT, FMT_SYSTEM, fmt::LongLong, and fmt::ULongLong.
std::size_t fmt::File::write | ( | const void * | buffer, |
std::size_t | count | ||
) |
References FMT_POSIX_CALL, FMT_RETRY, and utility::json_spirit::write().
|
private |
Referenced by descriptor(), operator Proxy(), and operator=().