#include <iffId.h>
Public Member Functions | |
IffId () | |
IffId (const char id[4]) | |
IffId (const IffId ©) | |
void | operator= (const IffId ©) |
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 |
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.
|
|
|
|
|
|
|
Returns the four-character name of the Id, for outputting.
|
|
Definition at line 97 of file iffId.I. References _id. |
|
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 73 of file iffId.I. References _id. |
|
Definition at line 85 of file iffId.I. References INLINE. |
|
|
|
|
|
Referenced by IffId(), operator!=(), and operator=(). |
|
|