LogService
libdadi: utility tools for distributed applications
FilterManagerInterface.hh
1 /****************************************************************************/
2 /* interface that defines functions that an implementation of a */
3 /* FilterManager must offer to be notified correctly on systemchanges */
4 /* */
5 /* Author(s): */
6 /* - Georg Hoesch (hoesch@in.tum.de) */
7 /* - Cyrille Pontvieux (cyrille.pontvieux@edu.univ-fcomte.fr) */
8 /* */
9 /* This file is part of DIET . */
10 /* */
11 /* Copyright (C) 2000-2003 ENS Lyon, LIFC, INSA, INRIA and SysFera (2000) */
12 /* */
13 /* - Frederic.Desprez@ens-lyon.fr (Project Manager) */
14 /* - Eddy.Caron@ens-lyon.fr (Technical Manager) */
15 /* - Tech@sysfera.com (Maintainer and Technical Support) */
16 /* */
17 /* This software is a computer program whose purpose is to provide an */
18 /* distributed logging services. */
19 /* */
20 /* */
21 /* This software is governed by the CeCILL license under French law and */
22 /* abiding by the rules of distribution of free software. You can use, */
23 /* modify and/ or redistribute the software under the terms of the CeCILL */
24 /* license as circulated by CEA, CNRS and INRIA at the following URL */
25 /* "http://www.cecill.info". */
26 /* */
27 /* As a counterpart to the access to the source code and rights to copy, */
28 /* modify and redistribute granted by the license, users are provided */
29 /* only with a limited warranty and the software's author, the holder */
30 /* of the economic rights, and the successive licensors have only */
31 /* limited liability. */
32 /* */
33 /* In this respect, the user's attention is drawn to the risks */
34 /* associated with loading, using, modifying and/or developing or */
35 /* reproducing the software by the user in light of its specific status */
36 /* of free software, that may mean that it is complicated to */
37 /* manipulate, and that also therefore means that it is reserved for */
38 /* developers and experienced professionals having in-depth computer */
39 /* knowledge. Users are therefore encouraged to load and test the */
40 /* software's suitability as regards their requirements in conditions */
41 /* enabling the security of their systems and/or data to be ensured and, */
42 /* more generally, to use and operate it in the same conditions as */
43 /* regards security. */
44 /* */
45 /* The fact that you are presently reading this means that you have had */
46 /* knowledge of the CeCILL license and that you accept its terms. */
47 /* */
48 /****************************************************************************/
49 /* $Id$
50  * $Log$
51  * Revision 1.1 2004/01/09 11:07:12 ghoesch
52  * Restructured the whole LogService source tree.
53  * Added autotools make process. Cleaned up code.
54  * Removed some testers. Ready to release.
55  *
56  ****************************************************************************/
57 
58 #ifndef _FILTERMANAGERINTERFACE_HH_
59 #define _FILTERMANAGERINTERFACE_HH_
60 
61 #include "LogTypes.hh"
62 #include "ToolList.hh"
63 #include "ComponentList.hh"
64 
74 public:
75  virtual ~FilterManagerInterface() {
76  }
77 
84  virtual void
85  toolConnect(const char* toolName, ToolList::ReadIterator* iter) = 0;
86 
95  virtual void
96  toolDisconnect(const char* toolName, ToolList::ReadIterator* iter) = 0;
97 
103  virtual void
104  addFilter(const char* toolName, const char* filterName,
105  ToolList::ReadIterator* iter) = 0;
106 
113  virtual void
114  removeFilter(const char* toolName, const char* filterName,
115  ToolList::ReadIterator* iter) = 0;
116 
123  virtual void
124  flushAllFilters(const char* toolName, ToolList::ReadIterator* iter) = 0;
125 
131  virtual tag_list_t*
132  componentConnect(const char* componentName,
133  ComponentList::ReadIterator* iter) = 0;
134 
141  virtual void
142  componentDisconnect(const char* componentName,
143  ComponentList::ReadIterator* iter) = 0;
144 
150  virtual void
151  sendMessageWithFilters(log_msg_t* message) = 0;
152 };
153 
154 #endif
virtual void removeFilter(const char *toolName, const char *filterName, ToolList::ReadIterator *iter)=0
Definition: FullLinkedList.hh:263
virtual void sendMessageWithFilters(log_msg_t *message)=0
virtual tag_list_t * componentConnect(const char *componentName, ComponentList::ReadIterator *iter)=0
Definition: LogTypes.hh:77
virtual void componentDisconnect(const char *componentName, ComponentList::ReadIterator *iter)=0
virtual void addFilter(const char *toolName, const char *filterName, ToolList::ReadIterator *iter)=0
Definition: LogTypes.hh:221
virtual void toolDisconnect(const char *toolName, ToolList::ReadIterator *iter)=0
Definition: FilterManagerInterface.hh:73
virtual void flushAllFilters(const char *toolName, ToolList::ReadIterator *iter)=0
virtual void toolConnect(const char *toolName, ToolList::ReadIterator *iter)=0