Calculator
Extensible stack-based calculator primarily in library form
Calculator::FixedOperatorExecutive Class Reference

Drivable class to run the calculator with a single set of commands. More...

#include <Executive.h>

Public Member Functions

 FixedOperatorExecutive (StackOperatorFactory &theFactory, Stack &theStack)
 
 FixedOperatorExecutive (const Executive &)=delete
 
 FixedOperatorExecutive (Executive &&)=delete
 
FixedOperatorExecutiveoperator= (const Executive &)=delete
 
FixedOperatorExecutiveoperator= (Executive &&)=delete
 
void doHelp (std::ostream &output) const
 
void process (std::istream &input, std::ostream &output)
 Process commands from input and pushing generated info to output. More...
 
Result process (const std::string &input)
 Process commands from input and pushing generated info to output. More...
 

Detailed Description

Drivable class to run the calculator with a single set of commands.

Definition at line 89 of file Executive.h.

Constructor & Destructor Documentation

◆ FixedOperatorExecutive() [1/3]

Calculator::FixedOperatorExecutive::FixedOperatorExecutive ( StackOperatorFactory theFactory,
Stack theStack 
)

Definition at line 103 of file Executive.cpp.

◆ FixedOperatorExecutive() [2/3]

Calculator::FixedOperatorExecutive::FixedOperatorExecutive ( const Executive )
delete

◆ FixedOperatorExecutive() [3/3]

Calculator::FixedOperatorExecutive::FixedOperatorExecutive ( Executive &&  )
delete

Member Function Documentation

◆ doHelp()

void Calculator::FixedOperatorExecutive::doHelp ( std::ostream &  output) const

Definition at line 108 of file Executive.cpp.

◆ operator=() [1/2]

FixedOperatorExecutive& Calculator::FixedOperatorExecutive::operator= ( const Executive )
delete

◆ operator=() [2/2]

FixedOperatorExecutive& Calculator::FixedOperatorExecutive::operator= ( Executive &&  )
delete

◆ process() [1/2]

Result Calculator::FixedOperatorExecutive::process ( const std::string &  input)

Process commands from input and pushing generated info to output.

Parameters
inputto create one operator and execute from
Returns
Result of Processing

Definition at line 116 of file Executive.cpp.

◆ process() [2/2]

void Calculator::FixedOperatorExecutive::process ( std::istream &  input,
std::ostream &  output 
)

Process commands from input and pushing generated info to output.

Parameters
inputto read commands from
outputto write status to

Definition at line 112 of file Executive.cpp.


The documentation for this class was generated from the following files: