Lumiera  0.pre.03
»edit your freedom«
subsys.cpp
Go to the documentation of this file.
1 /*
2  Subsys - interface for describing an application part to be handled by main()
3 
4  Copyright (C)
5  2008, Hermann Vosseler <Ichthyostega@web.de>
6 
7   **Lumiera** is free software; you can redistribute it and/or modify it
8   under the terms of the GNU General Public License as published by the
9   Free Software Foundation; either version 2 of the License, or (at your
10   option) any later version. See the file COPYING for further details.
11 
12 * *****************************************************************/
13 
14 
28 #include "common/subsys.hpp"
29 
30 
31 namespace lumiera {
32 
33 
34 
35 
36  Subsys::~Subsys() { }
37 
38 
39 
40  Subsys&
42  {
43  prereq_.push_back(&prereq);
44  return *this;
45  }
46 
47 
48 
49  bool
50  Subsys::isRunning() noexcept
51  {
52  return checkRunningState();
53  }
54 
55 
56 
57 
58 
59 } // namespace lumiera
Dependencies and lifecycle of a partially independent Subsystem of the Application.
Definition: subsys.hpp:61
Subsys & depends(Subsys &prereq)
define a dependency to another Subsys required for running this subsystem
Definition: subsys.cpp:41
Describing dependencies and lifecycle of the application&#39;s primary parts.
virtual bool checkRunningState() noexcept=0
whether this subsystem is actually operational.
bool isRunning() noexcept
Definition: subsys.cpp:50
Lumiera public interface.
Definition: advice.cpp:104