Panda3D
Loading...
Searching...
No Matches
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.
 
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.
 
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.

Constructor & Destructor Documentation

◆ IffId() [1/3]

IffId::IffId ( )
inline

Definition at line 17 of file iffId.I.

◆ IffId() [2/3]

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

Definition at line 28 of file iffId.I.

◆ IffId() [3/3]

IffId::IffId ( const IffId & copy)
inline

Definition at line 39 of file iffId.I.

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

◆ operator!=()

bool IffId::operator!= ( const IffId & other) const
inline

Definition at line 63 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 73 of file iffId.I.

◆ operator=()

void IffId::operator= ( const IffId & copy)
inline

Definition at line 47 of file iffId.I.

◆ operator==()

bool IffId::operator== ( const IffId & other) const
inline

Definition at line 55 of file iffId.I.

◆ output()

void IffId::output ( std::ostream & out) const

Definition at line 21 of file iffId.cxx.

Member Data Documentation

◆ _c

char IffId::_c[4]

Definition at line 44 of file iffId.h.

◆ _n

uint32_t IffId::_n

Definition at line 43 of file iffId.h.


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