DISPLACE  1.0
A spatial model of fisheries to help sustainable fishing and maritime spatial planning
noipc.h
Go to the documentation of this file.
1 #ifndef NOIPC_H
2 #define NOIPC_H
3 
4 #include <memory>
5 #include <vector>
6 
7 class Vessel;
8 class Population;
9 class MemoryInfo;
10 
12 public:
13  virtual ~OutputMessage() {}
14 };
15 
16 class MoveShipOutputMessage : public OutputMessage {
17 public:
18  MoveShipOutputMessage(int, void *) {}
19 };
20 
22 {
23 public:
24  VesselLogbookOutputMessage(unsigned int, Vessel *, const std::vector<Population *> &, std::vector <int> &) {}
25 };
26 
28 {
29 public:
30  MoveVesselOutputMessage(int, void *) {}
31 };
32 
34 public:
35  void enqueue(std::shared_ptr<OutputMessage>){
36  }
37 };
38 
39 void inline initIpcQueue()
40 {
41  std::cout << "Ipc Queue are disabled." << std::endl;
42 }
43 
44 void inline finalizeIpcQueue()
45 {
46 }
47 
48 void inline guiSendCurrentStep (unsigned int tstep)
49 {
50 }
51 
52 void inline guiSendUpdateCommand (const std::string &filename, int tstep)
53 {
54 }
55 
56 void inline guiSendMemoryInfo(const MemoryInfo &info)
57 {
58 }
59 
60 void inline guiSendCapture(bool on)
61 {
62 }
63 
64 void inline guiSendTerminalMessage(const string &ss)
65 {
66 }
67 
68 void inline guiSendOutputInfo(std::string)
69 {
70 }
71 
72 #endif // NOIPC_H
VesselLogbookOutputMessage(unsigned int, Vessel *, const std::vector< Population * > &, std::vector< int > &)
Definition: noipc.h:24
Definition: noipc.h:21
an abstract class to serialize outputs through the OutputQueueManager
Definition: noipc.h:11
void finalizeIpcQueue()
Definition: noipc.h:44
void guiSendOutputInfo(std::string)
Definition: noipc.h:68
A manager for the outputs from all the other simulator threads.
Definition: noipc.h:33
void guiSendTerminalMessage(const string &ss)
Definition: noipc.h:64
MoveShipOutputMessage(int, void *)
Definition: noipc.h:18
void enqueue(std::shared_ptr< OutputMessage >)
Definition: noipc.h:35
int tstep
Definition: main.cpp:205
void guiSendMemoryInfo(const MemoryInfo &info)
Definition: noipc.h:56
MoveVesselOutputMessage(int, void *)
Definition: noipc.h:30
Definition: movevesseloutputmessage.h:29
void initIpcQueue()
Definition: noipc.h:39
void guiSendCurrentStep(unsigned int tstep)
Definition: noipc.h:48
Definition: Population.h:34
void guiSendCapture(bool on)
Definition: noipc.h:60
Definition: moveshipoutputmessage.h:29
Definition: memoryinfo.h:30
virtual ~OutputMessage()
Definition: noipc.h:13
void guiSendUpdateCommand(const std::string &filename, int tstep)
Definition: noipc.h:52