Fawkes API
Fawkes Development Version
manager.h
1
2
/***************************************************************************
3
* manager.h - Fawkes Aspect Manager
4
*
5
* Created: Thu Nov 25 00:27:42 2010 (based on inifin.h)
6
* Copyright 2006-2010 Tim Niemueller [www.niemueller.de]
7
*
8
****************************************************************************/
9
10
/* This program is free software; you can redistribute it and/or modify
11
* it under the terms of the GNU General Public License as published by
12
* the Free Software Foundation; either version 2 of the License, or
13
* (at your option) any later version. A runtime exception applies to
14
* this software (see LICENSE.GPL_WRE file mentioned below for details).
15
*
16
* This program is distributed in the hope that it will be useful,
17
* but WITHOUT ANY WARRANTY; without even the implied warranty of
18
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19
* GNU Library General Public License for more details.
20
*
21
* Read the full text in the LICENSE.GPL_WRE file in the doc directory.
22
*/
23
24
#ifndef __ASPECT_MANAGER_H_
25
#define __ASPECT_MANAGER_H_
26
27
#include <core/threading/thread_initializer.h>
28
#include <core/threading/thread_finalizer.h>
29
30
#include <map>
31
#include <list>
32
#include <string>
33
34
namespace
fawkes
{
35
#if 0
/* just to make Emacs auto-indent happy */
36
}
37
#endif
38
39
class
BlackBoard;
40
class
Configuration;
41
class
Logger;
42
class
Clock;
43
class
FawkesNetworkHub;
44
class
PluginManager;
45
class
Thread;
46
class
ThreadCollector;
47
class
NetworkNameResolver;
48
class
ServicePublisher;
49
class
ServiceBrowser;
50
class
LoggerEmployer;
51
class
BlockedTimingExecutor;
52
class
MainLoopEmployer;
53
class
AspectIniFin;
54
55
namespace
tf {
56
class
Transformer;
57
}
58
59
class
AspectManager
:
public
ThreadInitializer
,
public
ThreadFinalizer
60
{
61
public
:
62
virtual
~
AspectManager
();
63
64
virtual
void
init(
Thread
*thread);
65
virtual
void
finalize(
Thread
*thread);
66
virtual
bool
prepare_finalize(
Thread
*thread);
67
68
void
register_inifin(
AspectIniFin
*inifin);
69
void
unregister_inifin(
AspectIniFin
*inifin);
70
71
bool
has_threads_for_aspect(
const
char
*aspect_name);
72
73
void
register_default_inifins(
BlackBoard
*blackboard,
74
ThreadCollector
*collector,
75
Configuration
*config,
76
Logger
*logger,
77
Clock
*clock,
78
FawkesNetworkHub
*fnethub,
79
MainLoopEmployer
*mloop_employer,
80
LoggerEmployer
*logger_employer,
81
BlockedTimingExecutor
*btexec,
82
NetworkNameResolver
*nnresolver,
83
ServicePublisher
*service_publisher,
84
ServiceBrowser
*service_browser,
85
PluginManager
*pmanager,
86
tf::Transformer
*tf_listener);
87
88
private
:
89
std::map<std::string, AspectIniFin *> __inifins;
90
std::map<std::string, AspectIniFin *> __default_inifins;
91
std::map<std::string, std::list<Thread *> > __threads;
92
};
93
94
95
}
// end namespace fawkes
96
97
#endif
fawkes::ServiceBrowser
Service browser.
Definition:
service_browser.h:32
fawkes::ServicePublisher
Service publisher interface.
Definition:
service_publisher.h:31
fawkes
Fawkes library namespace.
fawkes::Clock
This is supposed to be the central clock in Fawkes.
Definition:
clock.h:34
fawkes::LoggerEmployer
Logger employer The LoggerEmployer shall pipe all log messages of the system to added loggers...
Definition:
logger_employer.h:36
fawkes::ThreadCollector
Thread collector.
Definition:
thread_collector.h:34
fawkes::Thread
Thread class encapsulation of pthreads.
Definition:
thread.h:42
fawkes::PluginManager
Fawkes Plugin Manager.
Definition:
manager.h:51
fawkes::FawkesNetworkHub
Fawkes Network Hub.
Definition:
hub.h:33
fawkes::ThreadInitializer
Thread initializer interface.
Definition:
thread_initializer.h:41
fawkes::BlockedTimingExecutor
Blocked timing executor.
Definition:
executor.h:35
fawkes::AspectManager
Aspect and aspect initializer/finalizer manager.
Definition:
manager.h:59
fawkes::MainLoopEmployer
Main loop employer The MainLoopEmployer calls the main loop for execution.
Definition:
employer.h:31
fawkes::NetworkNameResolver
Network name and address resolver.
Definition:
resolver.h:48
fawkes::BlackBoard
The BlackBoard abstract class.
Definition:
blackboard.h:48
fawkes::tf::Transformer
Coordinate transforms between any two frames in a system.
Definition:
transformer.h:68
fawkes::Configuration
Interface for configuration handling.
Definition:
config.h:67
fawkes::AspectIniFin
Aspect initializer/finalizer base class.
Definition:
inifin.h:36
fawkes::ThreadFinalizer
Thread finalizer interface.
Definition:
thread_finalizer.h:41
fawkes::Logger
Interface for logging.
Definition:
logger.h:34
src
libs
aspect
manager.h
Generated by
1.8.13