-
Notifications
You must be signed in to change notification settings - Fork 1
/
turtleprogram.h
42 lines (32 loc) · 994 Bytes
/
turtleprogram.h
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
30
31
32
33
34
35
36
37
38
39
40
41
42
/**
* TODO file documentation
*
* @author TODO
* @date TODO
*/
#ifndef TURTLEPROGRAM_H
#define TURTLEPROGRAM_H
#include <iostream>
using namespace std;
class TurtleProgram {
friend ostream &operator<<(ostream &Out, const TurtleProgram &Tp);
public:
TurtleProgram();
explicit TurtleProgram(const string &Command);
TurtleProgram(const string &Command, const string &Times);
TurtleProgram(const TurtleProgram &Tp);
virtual ~TurtleProgram();
int getLength() const;
string getIndex(const int &I) const;
void setIndex(const int &I, const string &Str);
bool operator==(const TurtleProgram &Rhs) const;
bool operator!=(const TurtleProgram &Rhs) const;
TurtleProgram &operator=(const TurtleProgram &Rhs);
TurtleProgram operator+(const TurtleProgram &Tp) const;
TurtleProgram &operator+=(const TurtleProgram &Tp);
TurtleProgram operator*(const int &Times) const;
TurtleProgram &operator*=(const int &Times);
protected:
private:
};
#endif // TURTLEPROGRAM_H