Audacity 3.2.0
Classes | Functions | Variables
anonymous_namespace{ParsedNumericConverterFormatter.cpp} Namespace Reference

Classes

struct  BuiltinFormatString
 struct to hold a formatting control string and its user facing name Used in an array to hold the built-in time formats that are always available to the user More...
 
struct  FieldConfig
 
struct  FormatStrings
 
class  ParsedNumericConverterFormatter
 
class  ParsedNumericConverterFormatterFactory
 

Functions

static auto MakeItem (const NumericConverterType &type)
 
template<size_t N>
static auto MakeGroup (const Identifier &identifier, NumericConverterType type, const BuiltinFormatString(&formatStrings)[N])
 

Variables

static BuiltinFormatString TimeConverterFormats_ []
 array of formats the control knows about internally array of string pairs for name of the format and the format string needed to create that format output. This is used for the pop-up list of formats to choose from in the control.
More...
 
NumericConverterFormats::DefaultFormatRegistrator timeDefault
 
static const BuiltinFormatString FrequencyConverterFormats_ []
 array of formats the control knows about internally array of string pairs for name of the format and the format string needed to create that format output. This is used for the pop-up list of formats to choose from in the control. More...
 
NumericConverterFormats::DefaultFormatRegistrator frequencyDefault
 
static const BuiltinFormatString BandwidthConverterFormats_ []
 array of formats the control knows about internally array of string pairs for name of the format and the format string needed to create that format output. This is used for the pop-up list of formats to choose from in the control. More...
 
NumericConverterFormats::DefaultFormatRegistrator bandwidthDefault
 
static NumericConverterItemRegistrator sRegistration
 

Function Documentation

◆ MakeGroup()

template<size_t N>
static auto anonymous_namespace{ParsedNumericConverterFormatter.cpp}::MakeGroup ( const Identifier identifier,
NumericConverterType  type,
const BuiltinFormatString(&)  formatStrings[N] 
)
static

Definition at line 1063 of file ParsedNumericConverterFormatter.cpp.

1065{
1066 return NumericConverterFormatterGroup(identifier, { type },
1067 std::begin(formatStrings), std::end(formatStrings),
1068 MakeItem(type));
1069}
constexpr auto NumericConverterFormatterGroup
const char * end(const char *str) noexcept
Definition: StringUtils.h:106
const char * begin(const char *str) noexcept
Definition: StringUtils.h:101

References details::begin(), details::end(), MakeItem(), and NumericConverterFormatterGroup.

Here is the call graph for this function:

◆ MakeItem()

static auto anonymous_namespace{ParsedNumericConverterFormatter.cpp}::MakeItem ( const NumericConverterType type)
static

Definition at line 1051 of file ParsedNumericConverterFormatter.cpp.

1051 {
1052 return [&type](const BuiltinFormatString &formatString) {
1053 const auto functionIdentifier = formatString.name.Internal();
1055 functionIdentifier, formatString.name,
1056 formatString.formatStrings.fraction,
1057 std::make_unique<ParsedNumericConverterFormatterFactory>(
1058 type, formatString.formatStrings.formatStr));
1059 };
1060}
constexpr auto NumericConverterFormatterItem
struct to hold a formatting control string and its user facing name Used in an array to hold the buil...

References NumericConverterFormatterItem.

Referenced by MakeGroup().

Here is the caller graph for this function:

Variable Documentation

◆ BandwidthConverterFormats_

const BuiltinFormatString anonymous_namespace{ParsedNumericConverterFormatter.cpp}::BandwidthConverterFormats_[]
static

array of formats the control knows about internally array of string pairs for name of the format and the format string needed to create that format output. This is used for the pop-up list of formats to choose from in the control.

Definition at line 966 of file ParsedNumericConverterFormatter.cpp.

◆ bandwidthDefault

NumericConverterFormats::DefaultFormatRegistrator anonymous_namespace{ParsedNumericConverterFormatter.cpp}::bandwidthDefault
Initial value:
{
}
const NumericConverterType & NumericConverterType_BANDWIDTH()
NUMERIC_FORMATS_API NumericFormatSymbol OctavesFormat()

Definition at line 1010 of file ParsedNumericConverterFormatter.cpp.

◆ FrequencyConverterFormats_

const BuiltinFormatString anonymous_namespace{ParsedNumericConverterFormatter.cpp}::FrequencyConverterFormats_[]
static
Initial value:
= {
{
{
, XO("centihertz")
}
},
{
{ XO("kHz") },
{
, XO("hertz")
}
},
}
XO("Cut/Copy/Paste")
NUMERIC_FORMATS_API NumericFormatSymbol HertzFormat()

array of formats the control knows about internally array of string pairs for name of the format and the format string needed to create that format output. This is used for the pop-up list of formats to choose from in the control.

Definition at line 931 of file ParsedNumericConverterFormatter.cpp.

◆ frequencyDefault

NumericConverterFormats::DefaultFormatRegistrator anonymous_namespace{ParsedNumericConverterFormatter.cpp}::frequencyDefault
Initial value:
{
}
const NumericConverterType & NumericConverterType_FREQUENCY()

Definition at line 958 of file ParsedNumericConverterFormatter.cpp.

◆ sRegistration

NumericConverterItemRegistrator anonymous_namespace{ParsedNumericConverterFormatter.cpp}::sRegistration
static
Initial value:
{
MakeGroup("parsedTime",
)
}
constexpr auto NumericConverterItems
const NumericConverterType & NumericConverterType_DURATION()
const NumericConverterType & NumericConverterType_TIME()
static const BuiltinFormatString FrequencyConverterFormats_[]
array of formats the control knows about internally array of string pairs for name of the format and ...
static auto MakeGroup(const Identifier &identifier, NumericConverterType type, const BuiltinFormatString(&formatStrings)[N])
static BuiltinFormatString TimeConverterFormats_[]
array of formats the control knows about internally array of string pairs for name of the format and ...
static const BuiltinFormatString BandwidthConverterFormats_[]
array of formats the control knows about internally array of string pairs for name of the format and ...

Definition at line 1071 of file ParsedNumericConverterFormatter.cpp.

◆ TimeConverterFormats_

BuiltinFormatString anonymous_namespace{ParsedNumericConverterFormatter.cpp}::TimeConverterFormats_[]
static

array of formats the control knows about internally array of string pairs for name of the format and the format string needed to create that format output. This is used for the pop-up list of formats to choose from in the control.

Definition at line 712 of file ParsedNumericConverterFormatter.cpp.

◆ timeDefault

NumericConverterFormats::DefaultFormatRegistrator anonymous_namespace{ParsedNumericConverterFormatter.cpp}::timeDefault
Initial value:

Definition at line 923 of file ParsedNumericConverterFormatter.cpp.