Panda3D
Public Member Functions | List of all members
IffId Class Reference

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

#include "iffId.h"

Public Member Functions

 IffId (const char id[4])
 
 IffId (const IffId &copy)
 
std::string get_name () const
 Returns the four-character name of the Id, for outputting. More...
 
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. More...
 
void operator= (const IffId &copy)
 
bool operator== (const IffId &other) const
 
void output (std::ostream &out) const
 

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 26 of file iffId.h.

Member Function Documentation

◆ get_name()

std::string IffId::get_name ( ) const
inline

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

Definition at line 82 of file iffId.I.

◆ operator<()

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 74 of file iffId.I.


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