Different kinds of log files are parsed by a collection of objects
[gnucomo.git] / src / gcm_input / irix_syslog_cooker.h
1
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      : irix_syslog_cooker.h
10 **      SYSTEM NAME    : 
11 **      VERSION NUMBER : $Revision: 1.1 $
12 **
13 **  DESCRIPTION      :  Cooks system log lines
14 **
15 **  EXPORTED OBJECTS : 
16 **  LOCAL    OBJECTS : 
17 **  MODULES  USED    :
18 ***************************************************************************
19 **  ADMINISTRATIVE INFORMATION *
20 ********************************
21 **      ORIGINAL AUTHOR : Arjen Baart - arjen@andromeda.nl
22 **      CREATION DATE   : Aug 09, 2003
23 **      LAST UPDATE     : Aug 09, 2003
24 **      MODIFICATIONS   : 
25 **************************************************************************/
26
27 /*****************************
28    $Log: irix_syslog_cooker.h,v $
29    Revision 1.1  2003-08-11 16:56:16  arjen
30    Different kinds of log files are parsed by a collection of objects
31    of different classes, derived from the base class line_cooker
32    Depending on the message content or the message_type element in
33    XML, one of these objects is selected.
34
35    Logrunner is integrated with gcm_input. Although its functionality
36    is still limited, a connection between logrunner and gcm_input
37    is beginning to form.
38
39 *****************************/
40
41 /* static const char *RCSID = "$Id: irix_syslog_cooker.h,v 1.1 2003-08-11 16:56:16 arjen Exp $"; */
42
43 #include "line_cooker.h"
44
45 /*
46 ///////////////////////////////////////////////////////////////////////////
47 //  NAME           : syslog_cooker
48 //  BASECLASS      : 
49 //  MEMBERS        :
50 //  OPERATORS      :
51 //  METHODS        : 
52 //
53 //  DESCRIPTION    : 
54 //
55 //  RELATIONS      :
56 //  SEE ALSO       :
57 //  LAST MODIFIED  : Aug 09, 2003
58 ///////////////////////////////////////////////////////////////////////////
59 */
60
61 class irix_syslog_cooker : public line_cooker
62 {
63
64 protected:
65
66
67 public:
68
69    irix_syslog_cooker()
70    {
71    }
72
73    bool check_pattern(String logline);
74    bool cook_this(String logline, UTC arrival);
75
76    String message_type()
77    {
78       return "IRIX system log";
79    }
80
81 };