WPILibC++ 2023.4.3
wpi::raw_fd_istream Class Reference

#include <wpi/raw_istream.h>

Inheritance diagram for wpi::raw_fd_istream:
wpi::raw_istream

Public Member Functions

 raw_fd_istream (std::string_view filename, std::error_code &ec, size_t bufSize=4096)
 
 raw_fd_istream (int fd, bool shouldClose, size_t bufSize=4096)
 
 ~raw_fd_istream () override
 
void close () final
 
size_t in_avail () const override
 
- Public Member Functions inherited from wpi::raw_istream
 raw_istream ()=default
 
virtual ~raw_istream ()=default
 
raw_istreamread (char &c)
 
raw_istreamread (unsigned char &c)
 
raw_istreamread (signed char &c)
 
raw_istreamread (void *data, size_t len)
 
size_t readsome (void *data, size_t len)
 
raw_istreamreadinto (SmallVectorImpl< char > &buf, size_t len)
 
raw_istreamreadinto (SmallVectorImpl< uint8_t > &buf, size_t len)
 
raw_istreamreadinto (std::vector< char > &buf, size_t len)
 
raw_istreamreadinto (std::vector< uint8_t > &buf, size_t len)
 
raw_istreamreadinto (std::string &buf, size_t len)
 
std::string_view getline (SmallVectorImpl< char > &buf, int maxLen)
 
virtual void close ()=0
 
virtual size_t in_avail () const =0
 
size_t read_count () const
 
bool has_error () const
 
void clear_error ()
 
 raw_istream (const raw_istream &)=delete
 
raw_istreamoperator= (const raw_istream &)=delete
 

Additional Inherited Members

- Protected Member Functions inherited from wpi::raw_istream
void error_detected ()
 
void set_read_count (size_t count)
 

Constructor & Destructor Documentation

◆ raw_fd_istream() [1/2]

wpi::raw_fd_istream::raw_fd_istream ( std::string_view  filename,
std::error_code &  ec,
size_t  bufSize = 4096 
)

◆ raw_fd_istream() [2/2]

wpi::raw_fd_istream::raw_fd_istream ( int  fd,
bool  shouldClose,
size_t  bufSize = 4096 
)

◆ ~raw_fd_istream()

wpi::raw_fd_istream::~raw_fd_istream ( )
override

Member Function Documentation

◆ close()

void wpi::raw_fd_istream::close ( )
finalvirtual

Implements wpi::raw_istream.

◆ in_avail()

size_t wpi::raw_fd_istream::in_avail ( ) const
overridevirtual

Implements wpi::raw_istream.


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