bitz-server  1.0.2
modifier.h
1 /*
2  * bitz-server, An ICAP server implementation in C++
3  * Copyright (C) 2012 Uditha Atukorala
4  *
5  * This program is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation; either version 3 of the License, or
8  * (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program; if not, write to the Free Software
17  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18  */
19 
20 #ifndef BITZ_MODIFIER_H
21 #define BITZ_MODIFIER_H
22 
23 #include <icap/request.h>
24 #include <icap/response.h>
25 
26 
27 namespace bitz {
28 
29  class Modifier {
30  public:
31 
32  /* types of the class factories */
33  typedef bitz::Modifier * create_t();
34  typedef void destroy_t( bitz::Modifier * );
35 
36  struct symbols_t {
37  void * modifier;
38  create_t * create;
39  destroy_t * destroy;
40  };
41 
42  Modifier();
43  virtual ~Modifier();
44 
51  virtual icap::Response * modify( icap::Request * request ) throw() =0;
52 
61  virtual icap::Response * preview( icap::Request * request ) throw() =0;
62 
63  private:
64 
65  };
66 
67 } /* end of namespace bitz */
68 
69 #endif /* !BITZ_MODIFIER_H */
70 
Definition: response.h:29
Definition: echo.cpp:23
Definition: modifier.h:29
virtual icap::Response * modify(icap::Request *request)=0
virtual icap::Response * preview(icap::Request *request)=0
Definition: modifier.h:36
Definition: request.h:29