-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathStack_Expr_Command_Factory.h
More file actions
29 lines (26 loc) · 1.05 KB
/
Stack_Expr_Command_Factory.h
File metadata and controls
29 lines (26 loc) · 1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// Honor Pledge: ashstrin
//
// I pledge that I have neither given nor received any help
// on this assignment.
#ifndef _STACK_EXPR_COMMAND_FACTORY_H_
#define _STACK_EXPR_COMMAND_FACTORY_H_
class Stack_Expr_Command_Factory : public Expr_Command_Factory {
public:
virtual ~Stack_Expr_Command_Factory (void);
virtual Add_Command * create_add_command(void);
virtual Subtract_Command * create_subtract_command(void);
virtual Mult_Command * create_mult_command(void);
virtual Div_Command * create_div_command(void);
virtual Number_Command * create_number_command(int operand);
virtual Left_Parenth_Command * create_left_par_command();
virtual Right_Parenth_Command * create_right_par_command();
Stack_Expr_Command_Factory();
//Stack_Expr_Command_Factory(size_t test);
Stack_Expr_Command_Factory(Stack<int> &s);
//Stack_Expr_Command_Factory(const Expr_Command_Factory &) : Expr_Command_Factory();
private:
Stack<int> stack;
Stack_Expr_Command_Factory(const Stack_Expr_Command_Factory &);
};
#include "Stack_Expr_Command_Factory.cpp";
#endif