2 /**************************************************************************
3 ** (c) Copyright 2003, Andromeda Technology & Automation
4 ** This is free software; you can redistribute it and/or modify it under the
5 ** terms of the GNU General Public License, see the file COPYING.
6 ***************************************************************************
7 ** MODULE INFORMATION *
8 ***********************
9 ** FILE NAME : log_filter.h
11 ** VERSION NUMBER : $Revision: 1.1 $
13 ** DESCRIPTION : Message filter for various kinds of log files.
18 ***************************************************************************
19 ** ADMINISTRATIVE INFORMATION *
20 ********************************
21 ** ORIGINAL AUTHOR : Arjen Baart - arjen@andromeda.nl
22 ** CREATION DATE : Nov 26, 2003
23 ** LAST UPDATE : Nov 26, 2003
25 **************************************************************************/
27 /*****************************
28 $Log: log_filter.h,v $
29 Revision 1.1 2003-12-04 10:38:09 arjen
30 Major redesign. All input is handled through XML. Raw input data is first
31 transformed into an XML document for further processing.
32 A collection of polymorphic classes handle the transformation of various
33 input formats into XML.
34 Classifying input data is done with a finite improbability calculation.
36 *****************************/
38 /* static const char *RCSID = "$Id: log_filter.h,v 1.1 2003-12-04 10:38:09 arjen Exp $"; */
43 #include "message_filter.h"
46 ///////////////////////////////////////////////////////////////////////////
48 // BASECLASS : message_filter
51 // METHODS : construct_XML
53 // DESCRIPTION : Transforms a log file into an XML document by putting
54 // each line of input into a <gcmt:raw> XML element.
58 // LAST MODIFIED : Nov 26, 2003
59 ///////////////////////////////////////////////////////////////////////////
62 class log_filter : public message_filter
69 log_filter(String host, UTC arriv, String service) : message_filter(host, arriv, service)
73 virtual void construct_XML(message_buffer &in, std::strstream &xml);
76 #endif // LOG_FILTER_H