AutoTestCommandInterface Class Reference

#include <autotestcommand.h>

Inheritance diagram for AutoTestCommandInterface:

Detailed Description

Base interface for commands that can be executed with AutoTestInterface::ExecuteCommand().

Public Member Functions

MAXON_METHOD maxon::Result< maxon::BoolCheckCommand (const maxon::String &command, const maxon::Url &dir)
 
MAXON_METHOD maxon::Result< void > ExecuteCommand (const maxon::String &command, const maxon::Url &dir)
 

Private Member Functions

 MAXON_INTERFACE (AutoTestCommandInterface, MAXON_REFERENCE_NORMAL, "net.maxonexample.tool.autotest.interface.autotestcommand")
 

Member Function Documentation

◆ MAXON_INTERFACE()

MAXON_INTERFACE ( AutoTestCommandInterface  ,
MAXON_REFERENCE_NORMAL  ,
"net.maxonexample.tool.autotest.interface.autotestcommand"   
)
private

◆ CheckCommand()

MAXON_METHOD maxon::Result<maxon::Bool> CheckCommand ( const maxon::String command,
const maxon::Url dir 
)

Returns true if the given command can be handled.

Parameters
[in]commandThe command to execute.
[in]dirThe current path (e.g. loading a file from this path)
Returns
True if the command is handled by this implementation.

◆ ExecuteCommand()

MAXON_METHOD maxon::Result<void> ExecuteCommand ( const maxon::String command,
const maxon::Url dir 
)

Executes the given command.

Parameters
[in]commandThe command to execute.
[in]dirThe current path (e.g. loading a file from this path)
Returns
maxon::OK on success.