mirror of
https://github.com/cookiengineer/audacity
synced 2025-07-11 22:27:42 +02:00
50 lines
1.4 KiB
C++
50 lines
1.4 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 BatchCommands
|
|
system.
|
|
|
|
The eventual aim is to move the code from BatchCommands 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 CommandType
|
|
{
|
|
public:
|
|
wxString BuildName() override;
|
|
void BuildSignature(CommandSignature &signature) override;
|
|
CommandHolder Create(std::unique_ptr<CommandOutputTarget> &&target) override;
|
|
};
|
|
|
|
class BatchEvalCommand final : public CommandImplementation
|
|
{
|
|
public:
|
|
BatchEvalCommand(CommandType &type,
|
|
std::unique_ptr<CommandOutputTarget> &&target)
|
|
: CommandImplementation(type, std::move(target))
|
|
{ }
|
|
|
|
virtual ~BatchEvalCommand();
|
|
bool Apply(CommandExecutionContext context) override;
|
|
};
|
|
|
|
#endif /* End of include guard: __BATCHEVALCOMMAND__ */
|