MWAWPictDUnknown Class Reference

class to store small data which are potentially a picture More...

#include <MWAWPictData.hxx>

Inheritance diagram for MWAWPictDUnknown:
MWAWPictData MWAWPict

List of all members.

Public Member Functions

virtual SubType getSubType () const
 returns the picture subtype
virtual bool valid () const
 returns true if the picture is valid
virtual int cmp (MWAWPict const &a) const
 a virtual function used to obtain a strict order, must be redefined in the subs class

Protected Member Functions

 MWAWPictDUnknown ()
 protected constructor: uses check to construct a picture

Static Protected Member Functions

static ReadResult checkOrGet (MWAWInputStreamPtr input, int size, MWAWPictData **result=0L)
 checks if the data pointed by input and of given size is a pict

Friends

class MWAWPictData

Detailed Description

class to store small data which are potentially a picture


Constructor & Destructor Documentation

MWAWPictDUnknown::MWAWPictDUnknown ( ) [inline, protected]

protected constructor: uses check to construct a picture


Member Function Documentation

MWAWPictDUnknown::ReadResult MWAWPictDUnknown::checkOrGet ( MWAWInputStreamPtr  input,
int  size,
MWAWPictData **  result = 0L 
) [static, protected]

checks if the data pointed by input and of given size is a pict

  • if not returns MWAW_R_BAD
  • if true
    • set empty to true if the picture contains no data
    • creates a picture if result is given and if the picture is not empty

Referenced by MWAWPictData::checkOrGet().

virtual int MWAWPictDUnknown::cmp ( MWAWPict const &  a) const [inline, virtual]

a virtual function used to obtain a strict order, must be redefined in the subs class

Reimplemented from MWAWPictData.

virtual SubType MWAWPictDUnknown::getSubType ( ) const [inline, virtual]

returns the picture subtype

Implements MWAWPictData.

virtual bool MWAWPictDUnknown::valid ( ) const [inline, virtual]

returns true if the picture is valid

Reimplemented from MWAWPictData.


Friends And Related Function Documentation

friend class MWAWPictData [friend]

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