Inkscape
Vector Graphics Editor
Loading...
Searching...
No Matches
Inkscape::IO::FileInputStream Class Reference

This class is for receiving a stream of data from a file. More...

#include <uristream.h>

Inheritance diagram for Inkscape::IO::FileInputStream:
Inkscape::IO::InputStream

Public Member Functions

 FileInputStream (FILE *source)
 
 ~FileInputStream () override
 
int available () override
 Returns the number of bytes that can be read (or skipped over) from this input stream without blocking by the next caller of a method for this input stream.
 
void close () override
 Closes this input stream and releases any system resources associated with the stream.
 
int get () override
 Reads the next byte of data from the input stream.
 
- Public Member Functions inherited from Inkscape::IO::InputStream
 InputStream ()=default
 Constructor.
 
virtual ~InputStream ()=default
 Destructor.
 

Private Attributes

FILE * inf
 

Detailed Description

This class is for receiving a stream of data from a file.

Definition at line 39 of file uristream.h.

Constructor & Destructor Documentation

◆ FileInputStream()

Inkscape::IO::FileInputStream::FileInputStream ( FILE *  source)

Definition at line 32 of file uristream.cpp.

References inf.

◆ ~FileInputStream()

Inkscape::IO::FileInputStream::~FileInputStream ( )
override

Definition at line 44 of file uristream.cpp.

References close().

Member Function Documentation

◆ available()

int Inkscape::IO::FileInputStream::available ( )
overridevirtual

Returns the number of bytes that can be read (or skipped over) from this input stream without blocking by the next caller of a method for this input stream.

Implements Inkscape::IO::InputStream.

Definition at line 54 of file uristream.cpp.

◆ close()

void Inkscape::IO::FileInputStream::close ( )
overridevirtual

Closes this input stream and releases any system resources associated with the stream.

Implements Inkscape::IO::InputStream.

Definition at line 64 of file uristream.cpp.

References inf.

Referenced by ~FileInputStream().

◆ get()

int Inkscape::IO::FileInputStream::get ( )
overridevirtual

Reads the next byte of data from the input stream.

-1 if EOF

Implements Inkscape::IO::InputStream.

Definition at line 76 of file uristream.cpp.

References inf.

Member Data Documentation

◆ inf

FILE* Inkscape::IO::FileInputStream::inf
private

Definition at line 54 of file uristream.h.

Referenced by close(), FileInputStream(), and get().


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