bitz-server  0.1.6
echo.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_ECHO_H
21 #define BITZ_ECHO_H
22 
23 #include <bitz/modifier.h>
24 
25 
26 namespace bitz {
27 
28  class Echo : public Modifier {
29  public:
30  Echo();
31  virtual ~Echo();
32 
33  icap::Response * modify( icap::Request * request ) throw();
34  icap::Response * preview( icap::Request * request ) throw();
35 
36  private:
37 
38  };
39 
40 } /* end of namespace bitz */
41 
42 
43 /* class factories */
44 
45 extern "C" bitz::Modifier * create() {
46  return new bitz::Echo;
47 }
48 
49 extern "C" void destroy( bitz::Modifier * m ) {
50  delete m;
51 }
52 
53 #endif /* !BITZ_ECHO_H */
54 
icap::Response * modify(icap::Request *request)
Definition: echo.cpp:29
Definition: response.h:29
Definition: echo.cpp:23
Definition: modifier.h:29
icap::Response * preview(icap::Request *request)
Definition: echo.cpp:49
Definition: echo.h:28
Definition: request.h:29