Om  1.0.0
A universal framework for multimedia simulation
Public Types | Public Member Functions | List of all members
om::images::base::ImageFormatFlags Class Reference

A class that stores different boolean parameters for image formats. More...

#include <omImageFormatFlags.h>

Public Types

enum  Flag { UNDEFINED = 0, PROGRESSIVE = (1 << 0), DEFAULT = UNDEFINED }
 An enum that specifies the different image format flags. More...
 

Public Member Functions

 ImageFormatFlags ()
 Create a new image format flags object with no flags set. More...
 
 ImageFormatFlags (Flag flag)
 Create a new image format flags object with the specified flag value initially set. More...
 
 ImageFormatFlags (UInt32 newFlags)
 Create a new image format flags object with the specified initial combined flags value. More...
 
 operator UInt32 () const
 Convert this image format flags object to an integer value. More...
 
Bool isSet (Flag flag) const
 Return whether or not the specified flag value is set for this flags object. More...
 
void set (Flag flag, Bool newIsSet)
 Set whether or not the specified flag value is set for this flags object. More...
 

Detailed Description

A class that stores different boolean parameters for image formats.

Member Enumeration Documentation

An enum that specifies the different image format flags.

Enumerator
UNDEFINED 

The flag value when all flags are not set.

PROGRESSIVE 

A flag indicating that the image should be encoded as a progressive image.

DEFAULT 

The default flags to use for image formats.

Constructor & Destructor Documentation

om::images::base::ImageFormatFlags::ImageFormatFlags ( )
inline

Create a new image format flags object with no flags set.

om::images::base::ImageFormatFlags::ImageFormatFlags ( Flag  flag)
inline

Create a new image format flags object with the specified flag value initially set.

om::images::base::ImageFormatFlags::ImageFormatFlags ( UInt32  newFlags)
inline

Create a new image format flags object with the specified initial combined flags value.

Member Function Documentation

om::images::base::ImageFormatFlags::operator UInt32 ( ) const
inline

Convert this image format flags object to an integer value.

This operator is provided so that the ImageFormatFlags object can be used as an integer value for bitwise logical operations.

Bool om::images::base::ImageFormatFlags::isSet ( Flag  flag) const
inline

Return whether or not the specified flag value is set for this flags object.

void om::images::base::ImageFormatFlags::set ( Flag  flag,
Bool  newIsSet 
)
inline

Set whether or not the specified flag value is set for this flags object.


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