gem5  v19.0.0.0
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
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 50 of file imgwriter.hh.

Constructor & Destructor Documentation

◆ ImgWriter()

ImgWriter::ImgWriter ( const FrameBuffer _fb)
inline

Definition at line 53 of file imgwriter.hh.

◆ ~ImgWriter()

virtual ImgWriter::~ImgWriter ( )
inlinevirtual

Definition at line 57 of file imgwriter.hh.

References getImgExtension(), and write().

Member Function Documentation

◆ getImgExtension()

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

Implemented in BmpWriter, and PngWriter.

Referenced by ~ImgWriter().

◆ 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 BmpWriter, and PngWriter.

Referenced by ~ImgWriter().

Member Data Documentation

◆ fb

const FrameBuffer& ImgWriter::fb
protected

Definition at line 72 of file imgwriter.hh.

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


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

Generated on Fri Feb 28 2020 16:27:12 for gem5 by doxygen 1.8.13