The Nebula Device 3: Util::FourCC Class Reference

The Nebula Device 3

Util::FourCC Class Reference

#include <fourcc.h>


Detailed Description

A four-character-code is a quasi-human-readable 32-bit-id.

(C) 2006 Radon Labs GmbH

Public Member Functions

 FourCC ()
 default constructor
 FourCC (uint f)
 construct from 32-bit-value (e.g. FourCC('ABCD'))
 FourCC (const String &s)
 construct from string
bool operator== (const FourCC &rhs) const
 equality operator
bool operator!= (const FourCC &rhs) const
 inequality operator
bool operator< (const FourCC &rhs) const
 less-then operator
bool operator<= (const FourCC &rhs) const
 less-or-equal operator
bool operator> (const FourCC &rhs) const
 greater-then operator
bool operator>= (const FourCC &rhs) const
 greater-or-equal operator
bool IsValid () const
 return true if valid
void SetFromUInt (uint f)
 set from 32-bit-value
uint AsUInt () const
 get as 32-bit-value
void SetFromString (const String &s)
 set as string
String AsString () const
 get as string

Static Public Member Functions

static String ToString (const FourCC &f)
 convert fourcc to string
static FourCC FromString (const String &s)
 convert string to fourcc