WireCellToolkit
Wire Cell Simulation, Signal Process and Reconstruction Toolki for Liquid Argon Detectors
file Class Reference

#include <posix.h>

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 (cstring_view path, int oflag)
 
 file (file &&other) FMT_NOEXCEPT
 
fileoperator= (file &&other)
 
FMT_API ~file () FMT_NOEXCEPT
 
int descriptor () const FMT_NOEXCEPT
 
FMT_API void close ()
 
FMT_API long long 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, error_code &ec) FMT_NOEXCEPT
 
FMT_API buffered_file 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)
 

Detailed Description

Definition at line 188 of file posix.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
RDONLY 
WRONLY 
RDWR 

Definition at line 197 of file posix.h.

Constructor & Destructor Documentation

◆ file() [1/3]

file::file ( )
inline

Definition at line 204 of file posix.h.

◆ file() [2/3]

FMT_API file::file ( cstring_view  path,
int  oflag 
)

◆ file() [3/3]

file::file ( file &&  other)
inline

Definition at line 214 of file posix.h.

◆ ~file()

FMT_API file::~file ( )

Member Function Documentation

◆ close()

FMT_API void file::close ( )
Here is the caller graph for this function:

◆ descriptor()

int file::descriptor ( ) const
inline

Definition at line 229 of file posix.h.

Here is the call graph for this function:

◆ dup()

static FMT_API file file::dup ( int  fd)
static

◆ dup2() [1/2]

FMT_API void file::dup2 ( int  fd)

◆ dup2() [2/2]

FMT_API void file::dup2 ( int  fd,
error_code ec 
)

◆ fdopen()

FMT_API buffered_file file::fdopen ( const char *  mode)

◆ operator=()

file& file::operator= ( file &&  other)
inline

Definition at line 218 of file posix.h.

◆ pipe()

static FMT_API void file::pipe ( file read_end,
file write_end 
)
static

◆ read()

FMT_API std::size_t file::read ( void *  buffer,
std::size_t  count 
)

◆ size()

FMT_API long long file::size ( ) const

◆ write()

FMT_API std::size_t file::write ( const void *  buffer,
std::size_t  count 
)

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