typo fix
[pykit.git] / PythonPublisher.hh
1 // $Id$
2 //
3 // Copyright (C) 2010
4 //     Stefan Bund <info@j32.de>
5
6 /** \file
7     \brief PythonPublisher public header */
8
9 #ifndef HH_PyKit_PythonPublisher_
10 #define HH_PyKit_PythonPublisher_ 1
11
12 // Custom includes
13 #include <boost/scoped_ptr.hpp>
14 #include "Publisher.hh"
15
16 //#include "PythonPublisher.mpp"
17 ///////////////////////////////hh.p////////////////////////////////////////
18
19 namespace pykit {
20
21     class PythonError
22         : public std::exception
23     {
24     public:
25         virtual char const * what() const throw() { return message.c_str(); }
26         std::string message;
27         PythonError(std::string message_) : message (message_) {}
28         virtual ~PythonError() throw() {}
29     };
30
31     class PythonPublisher
32         : public Publisher
33     {
34     public:
35         explicit PythonPublisher();
36         ~PythonPublisher();
37
38         void publish(Request & request);
39
40     private:
41         struct Impl;
42         boost::scoped_ptr<Impl> impl_;
43     };
44
45 }
46
47 ///////////////////////////////hh.e////////////////////////////////////////
48 //#include "PythonPublisher.cci"
49 //#include "PythonPublisher.ct"
50 //#include "PythonPublisher.cti"
51 #endif
52
53 \f
54 // Local Variables:
55 // mode: c++
56 // fill-column: 100
57 // comment-column: 40
58 // c-file-style: "j32"
59 // indent-tabs-mode: nil
60 // ispell-local-dictionary: "american"
61 // compile-command: "scons -U"
62 // End: