Audacity 3.2.0
Classes | Namespaces | Functions | Variables
ParsedNumericConverterFormatter.cpp File Reference
#include "ParsedNumericConverterFormatter.h"
#include "NumericConverterRegistry.h"
#include "SampleCount.h"
#include "NumericConverterFormats.h"
#include "NumericConverterFormatterContext.h"
#include "Project.h"
#include "ProjectRate.h"
#include <cmath>
Include dependency graph for ParsedNumericConverterFormatter.cpp:

Go to the source code of this file.

Classes

struct  anonymous_namespace{ParsedNumericConverterFormatter.cpp}::FieldConfig
 
class  anonymous_namespace{ParsedNumericConverterFormatter.cpp}::ParsedNumericConverterFormatter
 
struct  anonymous_namespace{ParsedNumericConverterFormatter.cpp}::FormatStrings
 
struct  anonymous_namespace{ParsedNumericConverterFormatter.cpp}::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...
 
class  anonymous_namespace{ParsedNumericConverterFormatter.cpp}::ParsedNumericConverterFormatterFactory
 

Namespaces

namespace  anonymous_namespace{ParsedNumericConverterFormatter.cpp}
 

Functions

static auto anonymous_namespace{ParsedNumericConverterFormatter.cpp}::MakeItem (const NumericConverterType &type)
 
template<size_t N>
static auto anonymous_namespace{ParsedNumericConverterFormatter.cpp}::MakeGroup (const Identifier &identifier, NumericConverterType type, const BuiltinFormatString(&formatStrings)[N])
 
std::unique_ptr< NumericConverterFormatterCreateParsedNumericConverterFormatter (const FormatterContext &context, NumericConverterType type, const TranslatableString &format)
 

Variables

static BuiltinFormatString anonymous_namespace{ParsedNumericConverterFormatter.cpp}::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 anonymous_namespace{ParsedNumericConverterFormatter.cpp}::timeDefault
 
static const BuiltinFormatString anonymous_namespace{ParsedNumericConverterFormatter.cpp}::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 anonymous_namespace{ParsedNumericConverterFormatter.cpp}::frequencyDefault
 
static const BuiltinFormatString anonymous_namespace{ParsedNumericConverterFormatter.cpp}::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 anonymous_namespace{ParsedNumericConverterFormatter.cpp}::bandwidthDefault
 
static NumericConverterItemRegistrator anonymous_namespace{ParsedNumericConverterFormatter.cpp}::sRegistration
 

Function Documentation

◆ CreateParsedNumericConverterFormatter()

std::unique_ptr< NumericConverterFormatter > CreateParsedNumericConverterFormatter ( const FormatterContext context,
NumericConverterType  type,
const TranslatableString format 
)

Definition at line 1088 of file ParsedNumericConverterFormatter.cpp.

1091{
1092 return std::make_unique<ParsedNumericConverterFormatter>(type, format, context);
1093}

References anonymous_namespace{ExportPCM.cpp}::format.

Referenced by NumericConverter::ParseFormatString(), and TEST_CASE().

Here is the caller graph for this function: