Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

IffId Class Reference

A four-byte chunk ID appearing in an "IFF" file. More...

#include <iffId.h>

List of all members.

Public Member Functions

 IffId ()
 IffId (const char id[4])
 IffId (const IffId &copy)
void operator= (const IffId &copy)
bool operator== (const IffId &other) const
bool operator!= (const IffId &other) const
bool operator< (const IffId &other) const
 The ordering is arbitrary, and may not even be consistent between different architectures (e.g.

string get_name () const
 Returns the four-character name of the Id, for outputting.

void output (ostream &out) const

Private Attributes

union {
   PN_uint32   _n
   char   _c [4]
_id


Detailed Description

A four-byte chunk ID appearing in an "IFF" file.

This is used to identify the meaning of each chunk, and can be treated either as a concrete object or as a string, something like a TypeHandle.

Definition at line 42 of file iffId.h.


Constructor & Destructor Documentation

IffId::IffId  )  [inline]
 

Definition at line 31 of file iffId.I.

IffId::IffId const char  id[4]  )  [inline]
 

Definition at line 46 of file iffId.I.

References _id, and INLINE.

IffId::IffId const IffId &  copy  )  [inline]
 

Definition at line 61 of file iffId.I.

References _id, and INLINE.


Member Function Documentation

string IffId::get_name  )  const [inline]
 

Returns the four-character name of the Id, for outputting.

Definition at line 133 of file iffId.I.

bool IffId::operator!= const IffId &  other  )  const [inline]
 

Definition at line 97 of file iffId.I.

References _id.

bool IffId::operator< const IffId &  other  )  const [inline]
 

The ordering is arbitrary, and may not even be consistent between different architectures (e.g.

big-endian and little-endian). It is useful mainly for putting IffId's into a sorted container, like sets and maps.

Definition at line 118 of file iffId.I.

void IffId::operator= const IffId &  copy  )  [inline]
 

Definition at line 73 of file iffId.I.

References _id.

bool IffId::operator== const IffId &  other  )  const [inline]
 

Definition at line 85 of file iffId.I.

References INLINE.

void IffId::output ostream &  out  )  const
 

Definition at line 34 of file iffId.cxx.


Member Data Documentation

char IffId::_c[4] [private]
 

Definition at line 60 of file iffId.h.

union { ... } IffId::_id [private]
 

Referenced by IffId(), operator!=(), and operator=().

PN_uint32 IffId::_n [private]
 

Definition at line 59 of file iffId.h.


The documentation for this class was generated from the following files:
Generated on Fri May 2 03:27:17 2003 for Panda-Tool by doxygen1.3