OpenJPH
Open-source implementation of JPEG2000 Part-15
ojph::j2c_outfile Class Reference

#include <ojph_file.h>

Inheritance diagram for ojph::j2c_outfile:
ojph::outfile_base

Public Member Functions

 j2c_outfile ()
 
 ~j2c_outfile () override
 
void open (const char *filename)
 
size_t write (const void *ptr, size_t size) override
 
si64 tell () override
 
void flush () override
 
void close () override
 
- Public Member Functions inherited from ojph::outfile_base
virtual ~outfile_base ()
 
virtual size_t write (const void *ptr, size_t size)=0
 
virtual si64 tell ()
 
virtual void flush ()
 
virtual void close ()
 

Private Attributes

FILE * fh
 

Detailed Description

Definition at line 87 of file ojph_file.h.

Constructor & Destructor Documentation

◆ j2c_outfile()

ojph::j2c_outfile::j2c_outfile ( )
inline

Definition at line 90 of file ojph_file.h.

◆ ~j2c_outfile()

ojph::j2c_outfile::~j2c_outfile ( )
inlineoverride

Definition at line 91 of file ojph_file.h.

Member Function Documentation

◆ close()

void ojph::j2c_outfile::close ( )
overridevirtual

Reimplemented from ojph::outfile_base.

Definition at line 90 of file ojph_file.cpp.

References fh.

◆ flush()

void ojph::j2c_outfile::flush ( )
overridevirtual

Reimplemented from ojph::outfile_base.

Definition at line 83 of file ojph_file.cpp.

References fh.

◆ open()

void ojph::j2c_outfile::open ( const char *  filename)

Definition at line 60 of file ojph_file.cpp.

References fh, and OJPH_ERROR.

Referenced by main().

◆ tell()

si64 ojph::j2c_outfile::tell ( )
overridevirtual

Reimplemented from ojph::outfile_base.

Definition at line 76 of file ojph_file.cpp.

References fh, and ojph::ojph_ftell().

◆ write()

size_t ojph::j2c_outfile::write ( const void *  ptr,
size_t  size 
)
overridevirtual

Implements ojph::outfile_base.

Definition at line 69 of file ojph_file.cpp.

References fh.

Member Data Documentation

◆ fh

FILE* ojph::j2c_outfile::fh
private

Definition at line 100 of file ojph_file.h.

Referenced by close(), flush(), open(), tell(), and write().


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