-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSnapshot.cpp
More file actions
42 lines (34 loc) · 732 Bytes
/
Copy pathSnapshot.cpp
File metadata and controls
42 lines (34 loc) · 732 Bytes
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
#include "Snapshot.h"
Snapshot::Snapshot()
{
}
Snapshot::Snapshot( Point<int> inPosition, std::string inCachedTxt, std::string inCachedCommand)
{
cachedLineOfTxt = inCachedTxt;
cachedPosition = inPosition;
cachedCommand = inCachedCommand;
}
std::string Snapshot::getLineOfTxt() const
{
return cachedLineOfTxt;
}
std::string Snapshot::getCommand() const
{
return cachedCommand;
}
Point<int> Snapshot::getPosition() const
{
return cachedPosition;
}
void Snapshot::setLineOfTxt(const std::string inLineOfTxt)
{
cachedLineOfTxt = inLineOfTxt;
}
void Snapshot::setCommand(const std::string inCommand)
{
cachedCommand = inCommand;
}
void Snapshot::setPosition(const Point<int> inPosition)
{
cachedPosition = inPosition;
}