mirror of
https://github.com/cookiengineer/audacity
synced 2025-08-07 07:39:29 +02:00
It combines the old IdentInterface with the ParamsInterface, providing an identifier and parameters (if needed). The main purpose of the change is to make the class hierarchy (as viewed via doxygen) much easier to follow.
49 lines
1.3 KiB
C++
49 lines
1.3 KiB
C++
/**********************************************************************
|
|
|
|
Audacity: A Digital Audio Editor
|
|
Audacity(R) is copyright (c) 1999-2009 Audacity Team.
|
|
File License: wxwidgets
|
|
|
|
BatchEvalCommand.h
|
|
Dan Horgan
|
|
|
|
******************************************************************//**
|
|
|
|
\class BatchEvalCommand
|
|
\brief Given a string representing a command, pass it to the MacroCommands
|
|
system.
|
|
|
|
The eventual aim is to move the code from MacroCommands out into separate
|
|
command classes, but until this happens, BatchEvalCommand can act as a 'bridge'
|
|
to that system.
|
|
|
|
*//*******************************************************************/
|
|
|
|
#ifndef __BATCHEVALCOMMAND__
|
|
#define __BATCHEVALCOMMAND__
|
|
|
|
#include "Command.h"
|
|
#include "CommandType.h"
|
|
#include "../BatchCommands.h"
|
|
|
|
class BatchEvalCommandType final : public OldStyleCommandType
|
|
{
|
|
public:
|
|
ComponentInterfaceSymbol BuildName() override;
|
|
void BuildSignature(CommandSignature &signature) override;
|
|
OldStyleCommandPointer Create(std::unique_ptr<CommandOutputTargets> &&target) override;
|
|
};
|
|
|
|
class BatchEvalCommand final : public CommandImplementation
|
|
{
|
|
public:
|
|
BatchEvalCommand(OldStyleCommandType &type)
|
|
: CommandImplementation(type)
|
|
{ }
|
|
|
|
virtual ~BatchEvalCommand();
|
|
bool Apply(const CommandContext &context) override;
|
|
};
|
|
|
|
#endif /* End of include guard: __BATCHEVALCOMMAND__ */
|