Major redesign. All input is handled through XML. Raw input data is first
[gnucomo.git] / src / gcm_input / xml_cooker.h
1
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      : xml_cooker.h
10 **      SYSTEM NAME    : 
11 **      VERSION NUMBER : $Revision: 1.1 $
12 **
13 **  DESCRIPTION      :  The XML cooker does not cook anything. It is here to
14 **                      match the XML header.
15 **
16 **  EXPORTED OBJECTS : 
17 **  LOCAL    OBJECTS : 
18 **  MODULES  USED    :
19 ***************************************************************************
20 **  ADMINISTRATIVE INFORMATION *
21 ********************************
22 **      ORIGINAL AUTHOR : Arjen Baart - arjen@andromeda.nl
23 **      CREATION DATE   : Nov 26, 2003
24 **      LAST UPDATE     : Nov 26, 2003
25 **      MODIFICATIONS   : 
26 **************************************************************************/
27
28 /*****************************
29    $Log: xml_cooker.h,v $
30    Revision 1.1  2003-12-04 10:38:09  arjen
31    Major redesign. All input is handled through XML. Raw input data is first
32    transformed into an XML document for further processing.
33    A collection of polymorphic classes handle the transformation of various
34    input formats into XML.
35    Classifying input data is done with a finite improbability calculation.
36
37 *****************************/
38
39 /* static const char *RCSID = "$Id: xml_cooker.h,v 1.1 2003-12-04 10:38:09 arjen Exp $"; */
40
41 #include "line_cooker.h"
42
43 /*
44 ///////////////////////////////////////////////////////////////////////////
45 //  NAME           : xml_cooker
46 //  BASECLASS      : line_cooker
47 //  MEMBERS        :
48 //  OPERATORS      :
49 //  METHODS        : 
50 //
51 //  DESCRIPTION    : 
52 //
53 //  RELATIONS      :
54 //  SEE ALSO       :
55 //  LAST MODIFIED  : Nov 26, 2003
56 ///////////////////////////////////////////////////////////////////////////
57 */
58
59 class xml_cooker : public line_cooker
60 {
61
62    bool XML_detected;
63
64 public:
65
66    xml_cooker()
67    {
68       XML_detected = false;
69    }
70
71    bool check_pattern(String logline);
72    bool cook_this(String logline, UTC arrival);
73
74    String message_type()
75    {
76       return "XML";
77    }
78
79 };