Ninja
Classes | Public Member Functions
CommandRunner Struct Reference

CommandRunner is an interface that wraps running the build subcommands. More...

#include <build.h>

Inheritance diagram for CommandRunner:
Inheritance graph
[legend]

List of all members.

Classes

struct  Result
 The result of waiting for a command. More...

Public Member Functions

virtual void Abort ()
virtual bool CanRunMore ()=0
virtual vector< Edge * > GetActiveEdges ()
virtual bool StartCommand (Edge *edge)=0
virtual bool WaitForCommand (Result *result)=0
 Wait for a command to complete, or return false if interrupted.
virtual ~CommandRunner ()

Detailed Description

CommandRunner is an interface that wraps running the build subcommands.

This allows tests to abstract out running commands. RealCommandRunner is an implementation that actually runs commands.

Definition at line 103 of file build.h.


Constructor & Destructor Documentation

virtual CommandRunner::~CommandRunner ( ) [inline, virtual]

Definition at line 104 of file build.h.


Member Function Documentation

virtual void CommandRunner::Abort ( ) [inline, virtual]

Reimplemented in RealCommandRunner, and FakeCommandRunner.

Definition at line 120 of file build.h.

virtual bool CommandRunner::CanRunMore ( ) [pure virtual]

Implemented in RealCommandRunner, and FakeCommandRunner.

virtual vector<Edge*> CommandRunner::GetActiveEdges ( ) [inline, virtual]

Reimplemented in RealCommandRunner, and FakeCommandRunner.

Definition at line 119 of file build.h.

virtual bool CommandRunner::StartCommand ( Edge edge) [pure virtual]

Implemented in RealCommandRunner, and FakeCommandRunner.

virtual bool CommandRunner::WaitForCommand ( Result result) [pure virtual]

Wait for a command to complete, or return false if interrupted.

Implemented in RealCommandRunner, and FakeCommandRunner.


The documentation for this struct was generated from the following file: