-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMoveCommand.h
More file actions
executable file
·57 lines (48 loc) · 1.83 KB
/
MoveCommand.h
File metadata and controls
executable file
·57 lines (48 loc) · 1.83 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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
//------------------------------------------------------------------------------
/// Filename: MoveCommand.h
/// Description: Header for Base Class MoveCommand
/// Authors:
/// Ralph Ankele (0931953)
/// Tutor: Manuel Weber
/// Group: 24
/// Created: 08.09.2011
/// Last change: 08.09.2011
//------------------------------------------------------------------------------
#ifndef MOVECOMMAND_H_INCLUDED
#define MOVECOMMAND_H_INCLUDED
#include "Command.h"
class UserInterface;
class Database;
class Error;
class MoveCommand: public Command
{
private:
//----------------------------------------------------------------------------
/// Connection to class Error
Error *error_;
//----------------------------------------------------------------------------
/// Copy Constructor
/// Makes a copy of another MoveCommand Object.
/// @param source Original to copy.
MoveCommand(const MoveCommand& source);
//----------------------------------------------------------------------------
/// Assignment Operator
/// Used to assign one MoveCommand to another
/// @param source Original with values to copy.
MoveCommand &operator=(const MoveCommand& source);
public:
//----------------------------------------------------------------------------
/// Constructor
/// @param ui Connection to UserInterface
/// @param db Connection to Database
MoveCommand(UserInterface *ui,
Database *db);
//----------------------------------------------------------------------------
/// Destructor
virtual ~MoveCommand() throw();
//----------------------------------------------------------------------------
/// This Function executes the MoveCommand
/// @return returns true if execute was correct
virtual bool execute();
};
#endif //MOVECOMMAND_H_INCLUDED