Image Component Library (ICL)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Private Attributes
icl::io::FourCC Class Reference

Wrapper class for fourcc color codes. More...

#include <FourCC.h>

List of all members.

Public Member Functions

 FourCC ()
 create a null FourCC (key = 0)
 FourCC (icl32s key)
 create a FourCC with given key
 FourCC (const std::string &key)
 create a fourCC from given string color code (e.g. Y422 or MJPG)
 FourCC (const char *key)
 create a fourCC from given string color code (cstring style)
void init (const std::string &key) throw (utils::ICLException)
 initialization utility method
FourCCoperator= (icl32s key)
 int-assignment
FourCCoperator= (const std::string &key)
 std::string-assignment
std::string asString () const
 convert to string
icl32s asInt () const
 obtain current key (uint)
 operator bool ()
 check whether it is null
 operator int ()
 implicit conversion to int

Private Attributes

icl32s key
 internally a fourcc is represented by an u-int value

Detailed Description

Wrapper class for fourcc color codes.

See also:
ColorFormatDecoder

Constructor & Destructor Documentation

create a null FourCC (key = 0)

icl::io::FourCC::FourCC ( icl32s  key) [inline]

create a FourCC with given key

icl::io::FourCC::FourCC ( const std::string &  key) [inline]

create a fourCC from given string color code (e.g. Y422 or MJPG)

icl::io::FourCC::FourCC ( const char *  key) [inline]

create a fourCC from given string color code (cstring style)


Member Function Documentation

icl32s icl::io::FourCC::asInt ( ) const [inline]

obtain current key (uint)

std::string icl::io::FourCC::asString ( ) const [inline]

convert to string

void icl::io::FourCC::init ( const std::string &  key) throw (utils::ICLException) [inline]

initialization utility method

icl::io::FourCC::operator bool ( ) [inline]

check whether it is null

icl::io::FourCC::operator int ( ) [inline]

implicit conversion to int

FourCC& icl::io::FourCC::operator= ( icl32s  key) [inline]

int-assignment

FourCC& icl::io::FourCC::operator= ( const std::string &  key) [inline]

std::string-assignment


Member Data Documentation

internally a fourcc is represented by an u-int value


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines