X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=include%2Fyaz%2B%2B%2Fproxy%2Fbw.h;fp=include%2Fyaz%2B%2B%2Fproxy%2Fbw.h;h=13851dc56e74cee209c05942382235a21ca383c4;hb=2c25ce513613784819fcb216c60d1584402e7907;hp=0000000000000000000000000000000000000000;hpb=779c379c70bf479073cc4968f6bf5ad35ffe6eec;p=yazpp-moved-to-github.git diff --git a/include/yaz++/proxy/bw.h b/include/yaz++/proxy/bw.h new file mode 100644 index 0000000..13851dc --- /dev/null +++ b/include/yaz++/proxy/bw.h @@ -0,0 +1,34 @@ +/* $Id: bw.h,v 1.1 2004-03-29 22:46:50 adam Exp $ + Copyright (c) 1998-2004, Index Data. + +This file is part of the yaz-proxy. + +Zebra is free software; you can redistribute it and/or modify it under +the terms of the GNU General Public License as published by the Free +Software Foundation; either version 2, or (at your option) any later +version. + +Zebra is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License +along with Zebra; see the file LICENSE.proxy. If not, write to the +Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA +02111-1307, USA. + */ + +class YAZ_EXPORT Yaz_bw { + public: + Yaz_bw(int sz); + ~Yaz_bw(); + void add_bytes(int m); + int get_total(); + private: + long m_sec; // time of most recent bucket + int *m_bucket; + int m_ptr; + int m_size; +}; +