MIRA
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
BinarySerializerCodec::Fourcc Struct Reference

A four-character code that is used to identify data formats and codecs. More...

#include <serialization/BinarySerializerCodec.h>

Public Member Functions

 Fourcc (const std::string &iFourcc="NULL")
 Constructs Fourcc from string. More...
 
 Fourcc (uint32 val)
 Constructs Fourcc from 32bit value. More...
 
template<typename Reflector >
void reflect (Reflector &r)
 
bool operator== (Fourcc other) const
 
bool operator!= (Fourcc other) const
 
bool operator< (Fourcc other) const
 
std::string string () const
 Returns the fourcc as human readable string. More...
 

Static Public Member Functions

static Fourcc null ()
 Returns the 'NULL' fourcc. More...
 

Public Attributes

union {
   char   fourcc [4]
 
   uint32   value
 
}; 
 

Detailed Description

A four-character code that is used to identify data formats and codecs.

Constructor & Destructor Documentation

◆ Fourcc() [1/2]

Fourcc ( const std::string &  iFourcc = "NULL")
inline

Constructs Fourcc from string.

◆ Fourcc() [2/2]

Fourcc ( uint32  val)
inline

Constructs Fourcc from 32bit value.

Member Function Documentation

◆ reflect()

void reflect ( Reflector &  r)
inline

◆ null()

static Fourcc null ( )
inlinestatic

Returns the 'NULL' fourcc.

◆ operator==()

bool operator== ( Fourcc  other) const
inline

◆ operator!=()

bool operator!= ( Fourcc  other) const
inline

◆ operator<()

bool operator< ( Fourcc  other) const
inline

◆ string()

std::string string ( ) const
inline

Returns the fourcc as human readable string.

Member Data Documentation

◆ fourcc

char fourcc[4]

◆ value

uint32 value

◆ @9

union { ... }

The documentation for this struct was generated from the following file: