-
Notifications
You must be signed in to change notification settings - Fork 0
/
Server.cpp
46 lines (37 loc) · 1.74 KB
/
Server.cpp
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
#include "Server.h"
FLORENCE::FrameworkSpace::Server::Server()
{
this->ptr_Global = new class FLORENCE::FrameworkSpace::ServerSpace::Global();
while (this->ptr_Global == nullptr) { /* wait untill created */ }
this->ptr_Algorithms = new class FLORENCE::FrameworkSpace::ServerSpace::Algorithms(ptr_Global->get_NumCores());
while (this->ptr_Algorithms == nullptr) { /* wait untill created */ }
this->ptr_Data = new class FLORENCE::FrameworkSpace::ServerSpace::Data(ptr_Global->get_NumCores());
while (this->ptr_Data == nullptr) { /* wait untill created */ }
this->ptr_Data->initialise_Control();
this->ptr_Execute = new class FLORENCE::FrameworkSpace::ServerSpace::Execute(ptr_Global, ptr_Global->get_NumCores());
while (this->ptr_Execute == nullptr) { /* wait untill created */ }
this->ptr_Execute->initialise_Control(ptr_Global->get_NumCores(), ptr_Global);
}
FLORENCE::FrameworkSpace::Server::~Server()
{
delete FLORENCE::FrameworkSpace::Server::ptr_Global;
delete FLORENCE::FrameworkSpace::Server::ptr_Algorithms;
delete FLORENCE::FrameworkSpace::Server::ptr_Data;
delete FLORENCE::FrameworkSpace::Server::ptr_Execute;
}
class FLORENCE::FrameworkSpace::ServerSpace::Algorithms* FLORENCE::FrameworkSpace::Server::get_Algorithms()
{
return this->ptr_Algorithms;
}
class FLORENCE::FrameworkSpace::ServerSpace::Data* FLORENCE::FrameworkSpace::Server::get_Data()
{
return this->ptr_Data;
}
class FLORENCE::FrameworkSpace::ServerSpace::Execute* FLORENCE::FrameworkSpace::Server::get_Execute()
{
return this->ptr_Execute;
}
class FLORENCE::FrameworkSpace::ServerSpace::Global* FLORENCE::FrameworkSpace::Server::get_Global()
{
return this->ptr_Global;
}