cphot 0.1
A C++ tool for computing photometry from spectra.
FileWriteStream Class Reference

Wrapper of C file stream for input using fread(). More...

#include <filewritestream.h>

Public Types

typedef char Ch
 Character type. More...
 

Public Member Functions

 FileWriteStream (std::FILE *fp, char *buffer, size_t bufferSize)
 
void Put (char c)
 
void PutN (char c, size_t n)
 
void Flush ()
 
char Peek () const
 
char Take ()
 
size_t Tell () const
 
char * PutBegin ()
 
size_t PutEnd (char *)
 

Detailed Description

Wrapper of C file stream for input using fread().

Note
implements Stream concept

Definition at line 32 of file filewritestream.h.

Member Typedef Documentation

◆ Ch

typedef char FileWriteStream::Ch

Character type.

Only support char.

Definition at line 34 of file filewritestream.h.

Constructor & Destructor Documentation

◆ FileWriteStream()

FileWriteStream::FileWriteStream ( std::FILE *  fp,
char *  buffer,
size_t  bufferSize 
)
inline

Definition at line 36 of file filewritestream.h.

Member Function Documentation

◆ Flush()

void FileWriteStream::Flush ( )
inline

Definition at line 63 of file filewritestream.h.

◆ Peek()

char FileWriteStream::Peek ( ) const
inline

Definition at line 75 of file filewritestream.h.

◆ Put()

void FileWriteStream::Put ( char  c)
inline

Definition at line 40 of file filewritestream.h.

◆ PutBegin()

char* FileWriteStream::PutBegin ( )
inline

Definition at line 78 of file filewritestream.h.

◆ PutEnd()

size_t FileWriteStream::PutEnd ( char *  )
inline

Definition at line 79 of file filewritestream.h.

◆ PutN()

void FileWriteStream::PutN ( char  c,
size_t  n 
)
inline

Definition at line 47 of file filewritestream.h.

◆ Take()

char FileWriteStream::Take ( )
inline

Definition at line 76 of file filewritestream.h.

◆ Tell()

size_t FileWriteStream::Tell ( ) const
inline

Definition at line 77 of file filewritestream.h.


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