2 /**************************************************************************
3 ** (c) Copyright 2002, 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 : line_cooker.h
11 ** VERSION NUMBER : $Revision: 1.1 $
13 ** DESCRIPTION : The line_cooker abstract base class.
14 ** Defines the interface for a collection of derived
15 ** classes the parse different kinds of logs.
20 ***************************************************************************
21 ** ADMINISTRATIVE INFORMATION *
22 ********************************
23 ** ORIGINAL AUTHOR : Arjen Baart - arjen@andromeda.nl
24 ** CREATION DATE : Aug 06, 2003
25 ** LAST UPDATE : Aug 06, 2003
27 **************************************************************************/
29 /*****************************
30 $Log: line_cooker.h,v $
31 Revision 1.1 2003-08-11 16:56:16 arjen
32 Different kinds of log files are parsed by a collection of objects
33 of different classes, derived from the base class line_cooker
34 Depending on the message content or the message_type element in
35 XML, one of these objects is selected.
37 Logrunner is integrated with gcm_input. Although its functionality
38 is still limited, a connection between logrunner and gcm_input
41 *****************************/
43 /* static const char *RCSID = "$Id: line_cooker.h,v 1.1 2003-08-11 16:56:16 arjen Exp $"; */
48 #include <AXE/String.h>
52 ///////////////////////////////////////////////////////////////////////////
63 // LAST MODIFIED : Aug 06, 2003
64 ///////////////////////////////////////////////////////////////////////////
72 UTC ts; // the timestamp.
73 String hn; // the hostname
74 String srv; // the service
82 virtual bool check_pattern(String logline) = 0;
83 virtual bool cook_this(String logline, UTC arrival) = 0;
85 virtual String message_type() = 0;
103 #endif // LINE_COOKER_H