Audacity
3.2.0
src
commands
BatchEvalCommand.h
Go to the documentation of this file.
1
/**********************************************************************
2
3
Audacity: A Digital Audio Editor
4
Audacity(R) is copyright (c) 1999-2009 Audacity Team.
5
File License: wxwidgets
6
7
BatchEvalCommand.h
8
Dan Horgan
9
10
******************************************************************/
/*******************************************************************/
21
22
#ifndef __BATCHEVALCOMMAND__
23
#define __BATCHEVALCOMMAND__
24
25
#include "
Command.h
"
26
#include "
CommandType.h
"
27
#include "../BatchCommands.h"
28
29
class
AudacityProject
;
30
31
class
BatchEvalCommandType
final :
public
OldStyleCommandType
32
{
33
public
:
34
ComponentInterfaceSymbol
BuildName
()
const override
;
35
void
BuildSignature
(
CommandSignature
&signature)
override
;
36
OldStyleCommandPointer
Create
(
AudacityProject
&
project
,
37
std::unique_ptr<CommandOutputTargets> &&target)
override
;
38
};
39
40
class
BatchEvalCommand
final :
public
CommandImplementation
41
{
42
public
:
43
BatchEvalCommand
(
AudacityProject
&
project
,
OldStyleCommandType
&type)
44
:
CommandImplementation
(
project
, type)
45
{ }
46
47
virtual
~BatchEvalCommand
();
48
bool
Apply
(
const
CommandContext
&context)
override
;
49
};
50
51
#endif
/* End of include guard: __BATCHEVALCOMMAND__ */
Command.h
Contains declaration of Command base class.
CommandType.h
Contains declarations for CommandType class.
project
const auto project
Definition:
TestWaveTrackMaker.cpp:18
AudacityProject
The top-level handle to an Audacity project. It serves as a source of events that other objects can b...
Definition:
Project.h:90
BatchEvalCommand
Given a string representing a command, pass it to the MacroCommands system.
Definition:
BatchEvalCommand.h:41
BatchEvalCommand::BatchEvalCommand
BatchEvalCommand(AudacityProject &project, OldStyleCommandType &type)
Definition:
BatchEvalCommand.h:43
BatchEvalCommand::~BatchEvalCommand
virtual ~BatchEvalCommand()
Definition:
BatchEvalCommand.cpp:83
BatchEvalCommandType
The <something>CommandType classes are classes which are going away. They all provided a BuildSignatu...
Definition:
BatchEvalCommand.h:32
BatchEvalCommandType::BuildSignature
void BuildSignature(CommandSignature &signature) override
Postcondition: signature is a 'signature' map containing parameter.
Definition:
BatchEvalCommand.cpp:32
BatchEvalCommandType::BuildName
ComponentInterfaceSymbol BuildName() const override
Definition:
BatchEvalCommand.cpp:27
BatchEvalCommandType::Create
OldStyleCommandPointer Create(AudacityProject &project, std::unique_ptr< CommandOutputTargets > &&target) override
Definition:
BatchEvalCommand.cpp:42
CommandContext
CommandContext provides additional information to an 'Apply()' command. It provides the project,...
Definition:
CommandContext.h:37
CommandImplementation
is derived from OldStyleCommand. It validates and applies the command. CommandImplementation::Apply()...
Definition:
Command.h:78
CommandImplementation::Apply
bool Apply() override
Definition:
Command.h:122
CommandSignature
Class that maps parameter names to default values and validators.
Definition:
CommandSignature.h:29
ComponentInterfaceSymbol
ComponentInterfaceSymbol pairs a persistent string identifier used internally with an optional,...
Definition:
ComponentInterfaceSymbol.h:27
OldStyleCommandPointer
OldStyleCommandPointer is a unique_ptr to an OldStyleCommand.
OldStyleCommandType
Base class for containing data common to all commands of a given type. Also acts as a factory.
Definition:
CommandType.h:45
Generated by
1.9.3