Implemented yp2::odr which is a noncopyable wrapper for YAZ' ODR.
[metaproxy-moved-to-github.git] / src / util.hpp
1 /* $Id: util.hpp,v 1.2 2005-10-30 17:13:36 adam Exp $
2    Copyright (c) 2005, Index Data.
3
4 %LICENSE%
5  */
6
7 #ifndef YP2_UTIL_HPP
8 #define YP2_UTIL_HPP
9
10 #include <yaz/z-core.h>
11 #include <string>
12
13 #include <boost/utility.hpp>
14
15 namespace yp2 {
16     struct util  {
17         static bool pqf(ODR odr, Z_APDU *apdu, const std::string &q);
18     };
19
20     class odr : public boost::noncopyable {
21     public:
22         odr(int type);
23         odr();
24         ~odr();
25         operator ODR() const;
26     private:
27         ODR m_odr;
28     };
29         
30 }
31 #endif
32 /*
33  * Local variables:
34  * c-basic-offset: 4
35  * indent-tabs-mode: nil
36  * c-file-style: "stroustrup"
37  * End:
38  * vim: shiftwidth=4 tabstop=8 expandtab
39  */