Pakman
AbstractMaster.cc
1 #include <string>
2 #include <memory>
3 
4 #include <assert.h>
5 
6 #include "AbstractMaster.h"
7 
8 // Construct from pointer to program terminated flag
9 AbstractMaster::AbstractMaster(bool *p_program_terminated) :
10  m_p_program_terminated(p_program_terminated)
11 {
12 }
13 
14 // Assign controller
16  std::shared_ptr<AbstractController> p_controller)
17 {
18  m_p_controller = p_controller;
19 }
20 
21 // Getter for m_p_program_terminated
23 {
24  return *m_p_program_terminated;
25 }
void assignController(std::shared_ptr< AbstractController > p_controller)
std::weak_ptr< AbstractController > m_p_controller
bool programTerminated() const
AbstractMaster(bool *p_program_terminated)