gem5  v20.1.0.0
Public Member Functions | Protected Attributes | List of all members
ImgWriter Class Referenceabstract

#include <imgwriter.hh>

Inheritance diagram for ImgWriter:
BmpWriter PngWriter

Public Member Functions

 ImgWriter (const FrameBuffer *_fb)
 
virtual ~ImgWriter ()
 
virtual void write (std::ostream &out) const =0
 Write the frame buffer data into the provided ostream. More...
 
virtual const char * getImgExtension () const =0
 

Protected Attributes

const FrameBufferfb
 

Detailed Description

Definition at line 49 of file imgwriter.hh.

Constructor & Destructor Documentation

◆ ImgWriter()

ImgWriter::ImgWriter ( const FrameBuffer _fb)
inline

Definition at line 52 of file imgwriter.hh.

◆ ~ImgWriter()

virtual ImgWriter::~ImgWriter ( )
inlinevirtual

Definition at line 56 of file imgwriter.hh.

Member Function Documentation

◆ getImgExtension()

virtual const char* ImgWriter::getImgExtension ( ) const
pure virtual

Implemented in PngWriter, and BmpWriter.

◆ write()

virtual void ImgWriter::write ( std::ostream &  out) const
pure virtual

Write the frame buffer data into the provided ostream.

Parameters
outoutput stream to write to

Implemented in PngWriter, and BmpWriter.

Member Data Documentation

◆ fb

const FrameBuffer& ImgWriter::fb
protected

Definition at line 71 of file imgwriter.hh.

Referenced by BmpWriter::getCompleteHeader(), BmpWriter::write(), and PngWriter::write().


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

Generated on Wed Sep 30 2020 14:02:26 for gem5 by doxygen 1.8.17