2 /**************************************************************************
3 ** (c) Copyright 2007, 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 : df_filter.h
11 ** VERSION NUMBER : $Revision: 1.1 $
18 ***************************************************************************
19 ** ADMINISTRATIVE INFORMATION *
20 ********************************
21 ** ORIGINAL AUTHOR : Arjen Baart - arjen@andromeda.nl
22 ** CREATION DATE : Oct 31, 2007
23 ** LAST UPDATE : Oct 31, 2007
25 **************************************************************************/
27 /*****************************
29 Revision 1.1 2007-11-03 10:26:13 arjen
30 Added a new filter which can directly read the output
31 of the UNIX df command. A brief description is added in
34 *****************************/
36 /* static const char *RCSID = "$Id: df_filter.h,v 1.1 2007-11-03 10:26:13 arjen Exp $"; */
38 #include "message_filter.h"
39 #include "line_cooker.h"
42 ///////////////////////////////////////////////////////////////////////////
53 // LAST MODIFIED : Oct 31, 2007
54 ///////////////////////////////////////////////////////////////////////////
57 class df_filter : public message_filter
64 df_filter(String host, UTC arriv, String service) : message_filter(host, arriv, service)
68 virtual void construct_XML(message_buffer &in, std::strstream &xml);
72 ///////////////////////////////////////////////////////////////////////////
83 // LAST MODIFIED : Oct 31, 2007
84 ///////////////////////////////////////////////////////////////////////////
87 class df_cooker : public line_cooker
102 bool check_pattern(String logline);
103 bool cook_this(String logline, UTC arrival);
105 String message_type()