public

Inheritance Graph

graph BT
	StreamerSDL
	StreamerSDL --> AbstractBitmapStreamer
	click StreamerSDL "classUtil_1_1Serialization_1_1StreamerSDL"
	click AbstractBitmapStreamer "classUtil_1_1Serialization_1_1AbstractBitmapStreamer"

Description

Very inefficient streamer that relies on saving temporary files. This streamer should be deleted and replaced by an own implementation for reading/writing BMP images.

Author: Benjamin Eikel

Date: 2011-09-08

Public Functions

   
   
  StreamerSDL()
   
  ~StreamerSDL()
   
Reference < Bitmap > loadBitmap(std::istream & void)
   
bool saveBitmap(const Bitmap & void, std::ostream & void)

Public Static Functions

   
   
bool init()

Documentation

function
Util::Serialization::StreamerSDL::StreamerSDL

public inline
   
   
StreamerSDL( )

Defined in Util/Serialization/StreamerSDL.h:33


function
Util::Serialization::StreamerSDL::~StreamerSDL

public inline virtual
   
   
~StreamerSDL( )

Defined in Util/Serialization/StreamerSDL.h:36


function
Util::Serialization::StreamerSDL::loadBitmap

public virtual
     
     
Reference < Bitmap > loadBitmap( std::istream & void )

Load a bitmap from the given stream.

Parameters

input
Use the data from the stream beginning at the preset position.

Returns

Bitmap object. The caller is responsible for the memory deallocation.

Defined in Util/Serialization/StreamerSDL.h:39


function
Util::Serialization::StreamerSDL::saveBitmap

public virtual
     
     
bool saveBitmap( const Bitmap & void,
  std::ostream & void
)    

Save a bitmap to the given stream.

Parameters

bitmap
Bitmap object to save.
output
Use the stream for writing beginning at the preset position.

Returns

trueif successful,falseotherwise.

Defined in Util/Serialization/StreamerSDL.h:40


function
Util::Serialization::StreamerSDL::init

public static
   
   
bool init( )

Defined in Util/Serialization/StreamerSDL.h:42