LogService
libdadi: utility tools for distributed applications
|
00001 /****************************************************************************/ 00002 /* interface that defines functions that an implementation of a */ 00003 /* FilterManager must offer to be notified correctly on systemchanges */ 00004 /* */ 00005 /* Author(s): */ 00006 /* - Georg Hoesch (hoesch@in.tum.de) */ 00007 /* - Cyrille Pontvieux (cyrille.pontvieux@edu.univ-fcomte.fr) */ 00008 /* */ 00009 /* This file is part of DIET . */ 00010 /* */ 00011 /* Copyright (C) 2000-2003 ENS Lyon, LIFC, INSA, INRIA and SysFera (2000) */ 00012 /* */ 00013 /* - Frederic.Desprez@ens-lyon.fr (Project Manager) */ 00014 /* - Eddy.Caron@ens-lyon.fr (Technical Manager) */ 00015 /* - Tech@sysfera.com (Maintainer and Technical Support) */ 00016 /* */ 00017 /* This software is a computer program whose purpose is to provide an */ 00018 /* distributed logging services. */ 00019 /* */ 00020 /* */ 00021 /* This software is governed by the CeCILL license under French law and */ 00022 /* abiding by the rules of distribution of free software. You can use, */ 00023 /* modify and/ or redistribute the software under the terms of the CeCILL */ 00024 /* license as circulated by CEA, CNRS and INRIA at the following URL */ 00025 /* "http://www.cecill.info". */ 00026 /* */ 00027 /* As a counterpart to the access to the source code and rights to copy, */ 00028 /* modify and redistribute granted by the license, users are provided */ 00029 /* only with a limited warranty and the software's author, the holder */ 00030 /* of the economic rights, and the successive licensors have only */ 00031 /* limited liability. */ 00032 /* */ 00033 /* In this respect, the user's attention is drawn to the risks */ 00034 /* associated with loading, using, modifying and/or developing or */ 00035 /* reproducing the software by the user in light of its specific status */ 00036 /* of free software, that may mean that it is complicated to */ 00037 /* manipulate, and that also therefore means that it is reserved for */ 00038 /* developers and experienced professionals having in-depth computer */ 00039 /* knowledge. Users are therefore encouraged to load and test the */ 00040 /* software's suitability as regards their requirements in conditions */ 00041 /* enabling the security of their systems and/or data to be ensured and, */ 00042 /* more generally, to use and operate it in the same conditions as */ 00043 /* regards security. */ 00044 /* */ 00045 /* The fact that you are presently reading this means that you have had */ 00046 /* knowledge of the CeCILL license and that you accept its terms. */ 00047 /* */ 00048 /****************************************************************************/ 00049 /* $Id$ 00050 * $Log$ 00051 * Revision 1.1 2004/01/09 11:07:12 ghoesch 00052 * Restructured the whole LogService source tree. 00053 * Added autotools make process. Cleaned up code. 00054 * Removed some testers. Ready to release. 00055 * 00056 ****************************************************************************/ 00057 00058 #ifndef _FILTERMANAGERINTERFACE_HH_ 00059 #define _FILTERMANAGERINTERFACE_HH_ 00060 00061 #include "LogTypes.hh" 00062 #include "ToolList.hh" 00063 #include "ComponentList.hh" 00064 00073 class FilterManagerInterface { 00074 public: 00075 virtual ~FilterManagerInterface() { 00076 } 00077 00084 virtual void 00085 toolConnect(const char* toolName, ToolList::ReadIterator* iter) = 0; 00086 00095 virtual void 00096 toolDisconnect(const char* toolName, ToolList::ReadIterator* iter) = 0; 00097 00103 virtual void 00104 addFilter(const char* toolName, const char* filterName, 00105 ToolList::ReadIterator* iter) = 0; 00106 00113 virtual void 00114 removeFilter(const char* toolName, const char* filterName, 00115 ToolList::ReadIterator* iter) = 0; 00116 00123 virtual void 00124 flushAllFilters(const char* toolName, ToolList::ReadIterator* iter) = 0; 00125 00131 virtual tag_list_t* 00132 componentConnect(const char* componentName, 00133 ComponentList::ReadIterator* iter) = 0; 00134 00141 virtual void 00142 componentDisconnect(const char* componentName, 00143 ComponentList::ReadIterator* iter) = 0; 00144 00150 virtual void 00151 sendMessageWithFilters(log_msg_t* message) = 0; 00152 }; 00153 00154 #endif