Shaka Packager SDK
Public Member Functions | Static Public Member Functions | List of all members
shaka::media::FileReader Class Reference

Class to read character-by-character from a file. More...

#include <text_readers.h>

Public Member Functions

bool Next (char *out)
 

Static Public Member Functions

static Status Open (const std::string &filename, std::unique_ptr< FileReader > *out)
 

Detailed Description

Class to read character-by-character from a file.

Definition at line 23 of file text_readers.h.

Member Function Documentation

◆ Next()

bool shaka::media::FileReader::Next ( char *  out)

Read the next character from the file. If there is a next character, |out| will be set and true will be returned. If there is no next character false will be returned.

Definition at line 32 of file text_readers.cc.

◆ Open()

Status shaka::media::FileReader::Open ( const std::string &  filename,
std::unique_ptr< FileReader > *  out 
)
static

Create a new file reader by opening a file. If the file fails to open (in readonly mode) a non-ok status will be returned. If the file successfully opens, |out| will be set to a new FileReader and an ok status will be returned.

Definition at line 15 of file text_readers.cc.


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