oneVPL++
C++ API Prototype for oneVPL
oneapi::vpl::property_name Class Reference

Forms string at compile time for dispatcher with the property name. String is built from the series of substrings where nested subnames are separated by the .. On each step, subname value is verified that it is allowed for that level. If wrong subname is provided - exception is raised. More...

#include <property_name.hpp>

Public Member Functions

constexpr property_name ()
 Default ctor. Initializes empty object.
 
constexpr property_name (const char *name)
 Construct object by assuming that name is the first level name,. More...
 
constexpr property_nameoperator/ (const char *subname)
 Adds next subname to the name. Subname value is verified that it is valid for the current level of hierarchy. More...
 
std::string get_name ()
 Non compile time member. Creates std::string object with the name, where all given subnames are separated by .. More...
 

Protected Attributes

char names_ [6][128]
 Array withe subnames for each level.
 
unsigned int level_
 Current hierarchy level.
 
unsigned int ID_
 ID of the previous subname.
 

Detailed Description

Forms string at compile time for dispatcher with the property name. String is built from the series of substrings where nested subnames are separated by the .. On each step, subname value is verified that it is allowed for that level. If wrong subname is provided - exception is raised.

Usage example:

oneapi::vpl::property opt2(p2 / "mfxImplDescription" / "mfxDecoderDescription" / "decoder" / "CodecID"
, (uint32_t)MFX_CODEC_HEVC);

Constructor & Destructor Documentation

◆ property_name()

constexpr oneapi::vpl::property_name::property_name ( const char *  name)
inlineexplicit

Construct object by assuming that name is the first level name,.

Parameters
nameAllpowed first level name.

Member Function Documentation

◆ get_name()

std::string oneapi::vpl::property_name::get_name ( )
inline

Non compile time member. Creates std::string object with the name, where all given subnames are separated by ..

Returns
Dot separated string.

◆ operator/()

constexpr property_name& oneapi::vpl::property_name::operator/ ( const char *  subname)
inline

Adds next subname to the name. Subname value is verified that it is valid for the current level of hierarchy.

Parameters
subnameConstant string with the subname
Returns
Reference to the updated object.

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