Operator SDK
Build MIDI processing and UI modes for the Operator device
Loading...
Searching...
No Matches
op::params::FilePickerValue< Spec > Struct Template Reference

The value returned by param<>() for a FilePicker parameter. More...

#include <params.h>

Public Member Functions

constexpr bool empty () const noexcept
 True when the user has not picked a file yet.

Detailed Description

template<auto const & Spec>
struct op::params::FilePickerValue< Spec >

The value returned by param<>() for a FilePicker parameter.

Holds the chosen filename in a fixed buffer sized from the spec's max_filename_len. Call empty() to check whether the user has picked a file yet, then pass .filename to the storage ABI to open it.

Member Function Documentation

◆ empty()

template<auto const & Spec>
bool op::params::FilePickerValue< Spec >::empty ( ) const
inlineconstexprnoexcept

True when the user has not picked a file yet.

Returns
True if the filename buffer is empty.

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