Ark Server API (ASE) - Wiki
Loading...
Searching...
No Matches
fmt::File Class Reference

#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
 
FMT_API File (CStringRef path, int oflag)
 
 File (Proxy p) FMT_NOEXCEPT
 
 File (File &other) FMT_NOEXCEPT
 
Fileoperator= (Proxy p)
 
Fileoperator= (File &other)
 
 operator Proxy () FMT_NOEXCEPT
 
FMT_API ~File () FMT_NOEXCEPT
 
int descriptor () const FMT_NOEXCEPT
 
FMT_API void close ()
 
FMT_API LongLong size () const
 
FMT_API std::size_t read (void *buffer, std::size_t count)
 
FMT_API std::size_t write (const void *buffer, std::size_t count)
 
FMT_API void dup2 (int fd)
 
FMT_API void dup2 (int fd, ErrorCode &ec) FMT_NOEXCEPT
 
FMT_API BufferedFile fdopen (const char *mode)
 

Static Public Member Functions

static FMT_API File dup (int fd)
 
static FMT_API void pipe (File &read_end, File &write_end)
 

Private Member Functions

 File (int fd)
 

Private Attributes

int fd_
 

Detailed Description

Definition at line 181 of file posix.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
RDONLY 
WRONLY 
RDWR 

Definition at line 190 of file posix.h.

Constructor & Destructor Documentation

◆ File() [1/5]

fmt::File::File ( int fd)
inlineexplicitprivate

Definition at line 186 of file posix.h.

+ Here is the caller graph for this function:

◆ File() [2/5]

fmt::File::File ( )
inline

Definition at line 197 of file posix.h.

◆ File() [3/5]

fmt::File::File ( fmt::CStringRef path,
int oflag )

Definition at line 100 of file posix.cc.

+ Here is the call graph for this function:

◆ File() [4/5]

fmt::File::File ( Proxy p)
inline

Definition at line 215 of file posix.h.

◆ File() [5/5]

fmt::File::File ( File & other)
inline

Definition at line 218 of file posix.h.

◆ ~File()

fmt::File::~File ( )

Definition at line 112 of file posix.cc.

+ Here is the call graph for this function:

Member Function Documentation

◆ close()

void fmt::File::close ( )

Definition at line 119 of file posix.cc.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ descriptor()

int fmt::File::descriptor ( ) const
inline

Definition at line 266 of file posix.h.

◆ dup()

fmt::File fmt::File::dup ( int fd)
static

Definition at line 172 of file posix.cc.

+ Here is the call graph for this function:

◆ dup2() [1/2]

void fmt::File::dup2 ( int fd)

Definition at line 181 of file posix.cc.

◆ dup2() [2/2]

void fmt::File::dup2 ( int fd,
ErrorCode & ec )

Definition at line 190 of file posix.cc.

+ Here is the call graph for this function:

◆ fdopen()

fmt::BufferedFile fmt::File::fdopen ( const char * mode)

Definition at line 220 of file posix.cc.

+ Here is the call graph for this function:

◆ operator Proxy()

fmt::File::operator Proxy ( )
inline

Definition at line 239 of file posix.h.

◆ operator=() [1/2]

File & fmt::File::operator= ( File & other)
inline

Definition at line 230 of file posix.h.

◆ operator=() [2/2]

File & fmt::File::operator= ( Proxy p)
inline

Definition at line 223 of file posix.h.

◆ pipe()

void fmt::File::pipe ( File & read_end,
File & write_end )
static

Definition at line 197 of file posix.cc.

+ Here is the call graph for this function:

◆ read()

std::size_t fmt::File::read ( void * buffer,
std::size_t count )

Definition at line 156 of file posix.cc.

+ Here is the call graph for this function:

◆ size()

fmt::LongLong fmt::File::size ( ) const

Definition at line 130 of file posix.cc.

◆ write()

std::size_t fmt::File::write ( const void * buffer,
std::size_t count )

Definition at line 164 of file posix.cc.

+ Here is the call graph for this function:

Member Data Documentation

◆ fd_

int fmt::File::fd_
private

Definition at line 183 of file posix.h.


The documentation for this class was generated from the following files: