Nebula
|
#include <fourcc.h>
A four-character-code is a quasi-human-readable 32-bit-id.
Public Member Functions | |
FourCC () | |
default constructor | |
constexpr | 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 | |
uint32_t | HashCode () const |
return a hashcode (just returns the fourcc) | |
Static Public Member Functions | |
static String | ToString (const FourCC &f) |
convert fourcc to string | |
static FourCC | FromString (const String &s) |
convert string to fourcc | |
Private Attributes | |
uint | fourCC |
|
inline |
default constructor
|
inline |
construct from string
|
inline |
get as string
|
inline |
get as 32-bit-value
|
inline |
return a hashcode (just returns the fourcc)
|
inline |
return true if valid
|
inline |
inequality operator
|
inline |
less-then operator
|
inline |
less-or-equal operator
|
inline |
equality operator
|
inline |
greater-then operator
|
inline |
greater-or-equal operator
|
inline |
set as string
|
inline |
set from 32-bit-value
|
private |