Lumiera  0.pre.03
»edit your freedom«
Supported Class Reference

#include "lib/time/formats.hpp"

Description

Descriptor to denote support for a specific (timecode) format.

This helper can be used to configure a selection of specific timecode formats to be or not to be supported by some facility. Formats are described by the format descriptor types defined in this header (or elsewhere for additional formats). This helper establishes an numeric ID at runtime and uses a bitset to keep track of the support for a given format.

Note
preconfigured limit #MAXID on the absolute number of different Format types; maybe needs to be increased accordingly.
Warning
the actual numeric IDs might vary on each run
See also
TypedContext

Definition at line 196 of file formats.hpp.

Public Member Functions

template<class F >
bool check () const
 check if a specific Format is supported
 

Static Public Member Functions

template<typename TY >
static Supported formats ()
 build a new Descriptor to denote support for all the Formats, More...
 

Private Types

enum  { MAXID = 8 }
 

Private Member Functions

 Supported ()
 
template<class F , class FS >
Supported define (Node< F, FS >)
 
Supported define (NullType)
 
template<class F >
IxID typeID () const
 

Private Attributes

std::bitset< MAXID > flags_
 

Constructor & Destructor Documentation

◆ Supported()

Supported ( )
inlineprivate
Note
use formats to set up a new descriptor

Definition at line 218 of file formats.hpp.

Member Function Documentation

◆ define()

Supported define ( NullType  )
inlineprivate

recursion end

Definition at line 216 of file formats.hpp.

◆ formats()

static Supported formats ( )
inlinestatic

build a new Descriptor to denote support for all the Formats,

Parameters
TYtypelist holding all the Format types to support

Definition at line 227 of file formats.hpp.

+ Inheritance diagram for Supported:
+ Collaboration diagram for Supported:

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