MIffTag Class Reference

#include <MIffTag.h>

Class Description

Encapsulates IFF's 4 character block structure.

Class MIffTag is used to create the 4 byte tags that are used to distinguish the different block types within an IFF file.

+ Examples:

Public Member Functions

 MIffTag ()
 Default class constructor.
 
 MIffTag (unsigned char a, unsigned char b, unsigned char c, unsigned char d)
 Class MIffTag is used to create the 4 byte tags that are used to distinguish the different block types within an IFF file. More...
 
 MIffTag (unsigned int tag)
 Construct an id from an int. More...
 
 ~MIffTag ()
 Destructor.
 
bool operator== (const MIffTag &tag) const
 Equals operator. More...
 

Static Public Attributes

static const MIffTag kFORM
 Marks the start of a group of data blocks.
 
static const MIffTag kCAT
 Defines an unsorted group of FORM, e.g. images or sounds.
 
static const MIffTag kLIST
 Defines a sorted group of FORM, e.g. sequence of images.
 
static const MIffTag kPROP
 Marks the start of a group of data blocks containing properties shared between forms that are a part of a LIST.
 
static const MIffTag kFOR4
 Four byte aligned FORM block.
 
static const MIffTag kFOR8
 Eight byte aligned FORM block.
 
static const MIffTag kCAT4
 Four byte aligned CAT block.
 
static const MIffTag kCAT8
 Eight byte aligned CAT block.
 
static const MIffTag kLIS4
 Four byte aligned LIST block.
 
static const MIffTag kLIS8
 Eight byte aligned LIST block.
 
static const MIffTag kPRO4
 Four byte aligned PROP block.
 
static const MIffTag kPRO8
 Eight byte aligned PROP block.
 

Friends

class MIffFile
 

Constructor & Destructor Documentation

MIffTag ( unsigned char  a,
unsigned char  b,
unsigned char  c,
unsigned char  d 
)

Class MIffTag is used to create the 4 byte tags that are used to distinguish the different block types within an IFF file.

This version of the constructor makes an id tag for a block type.

Parameters
[in]afirst byte of tag
[in]bsecond byte of tag
[in]cthird byte of tag
[in]dfourth byte of tag
MIffTag ( unsigned int  tag)

Construct an id from an int.

Parameters
[in]tagvalue of tag

Member Function Documentation

bool operator== ( const MIffTag tag) const

Equals operator.

Parameters
[in]tagtag value to compare against

The documentation for this class was generated from the following files:
  • MIffTag.h
  • MIffTag.cpp