Lumiera 0.pre.04
»edit your freedom«
Loading...
Searching...
No Matches
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
31namespace lumiera {
32
33
34
35
37
38
39
40 Subsys&
42 {
43 prereq_.push_back(&prereq);
44 return *this;
45 }
46
47
48
49 bool
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:63
virtual ~Subsys()
Definition subsys.cpp:36
std::vector< Subsys * > prereq_
Definition subsys.hpp:122
bool isRunning() noexcept
Definition subsys.cpp:50
virtual bool checkRunningState() noexcept=0
whether this subsystem is actually operational.
Subsys & depends(Subsys &prereq)
define a dependency to another Subsys required for running this subsystem
Definition subsys.cpp:41
Lumiera public interface.
Definition advice.hpp:102
Describing dependencies and lifecycle of the application's primary parts.