-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
49 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// | ||
// Created by t on 1/7/19. | ||
// | ||
|
||
#include "MySerialServer.h" | ||
|
||
void MySerialServer::open(int port) { | ||
|
||
} | ||
|
||
void MySerialServer::stop() { | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
// | ||
// Created by t on 1/7/19. | ||
// | ||
|
||
#ifndef FLIGTSIMPROJ2_MYSERIALSERVER_H | ||
#define FLIGTSIMPROJ2_MYSERIALSERVER_H | ||
|
||
#include "Server.h" | ||
|
||
using namespace server_side; | ||
|
||
class MySerialServer : Server { | ||
virtual void open(int port); | ||
virtual void stop(); | ||
}; | ||
|
||
|
||
#endif //FLIGTSIMPROJ2_MYSERIALSERVER_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
// | ||
// Created by t on 1/7/19. | ||
// | ||
|
||
#ifndef FLIGTSIMPROJ2_SERVER_H | ||
#define FLIGTSIMPROJ2_SERVER_H | ||
|
||
namespace server_side { | ||
//interface for the server | ||
class Server { | ||
public: | ||
virtual void open(int port) = 0; | ||
virtual void stop() = 0; | ||
}; | ||
} | ||
|
||
#endif //FLIGTSIMPROJ2_SERVER_H |