From f82b19f2b93707657fee804bd1242f2548d51ada Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Sat, 15 Oct 2005 14:09:09 +0000 Subject: [PATCH] Same header and footer for all files. Header includes copyright + CVS Id. Footer has Emacs local variables with c-file-style set to "stroustrup". --- src/ex_filter_frontend_net.cpp | 10 ++++++++-- src/filter.hpp | 6 ++++++ src/filter_frontend_net.cpp | 13 +++++++++++++ src/filter_frontend_net.hpp | 6 ++++++ src/filter_log.cpp | 13 +++++++++++++ src/filter_log.hpp | 6 ++++++ src/p2.cpp | 8 +++++++- src/package.hpp | 6 ++++++ src/router.hpp | 6 ++++++ src/session.cpp | 6 ++++++ src/session.hpp | 6 ++++++ src/test_boost_threads.cpp | 6 ++++++ src/test_boost_time.cpp | 6 ++++++ src/test_filter1.cpp | 6 ++++++ src/test_filter2.cpp | 6 ++++++ src/test_filter_frontend_net.cpp | 6 ++++++ src/test_package1.cpp | 6 ++++++ src/test_session1.cpp | 6 ++++++ src/test_session2.cpp | 6 ++++++ src/test_thread_pool_observer.cpp | 8 +++++++- src/thread_pool_observer.cpp | 22 ++++------------------ src/thread_pool_observer.hpp | 22 ++++------------------ 22 files changed, 146 insertions(+), 40 deletions(-) diff --git a/src/ex_filter_frontend_net.cpp b/src/ex_filter_frontend_net.cpp index 778cd18..76264f9 100644 --- a/src/ex_filter_frontend_net.cpp +++ b/src/ex_filter_frontend_net.cpp @@ -1,3 +1,8 @@ +/* $Id: ex_filter_frontend_net.cpp,v 1.7 2005-10-15 14:09:09 adam Exp $ + Copyright (c) 2005, Index Data. + +%LICENSE% + */ #include #include @@ -18,12 +23,12 @@ namespace po = boost::program_options; class FilterInit: public yp2::filter::Base { public: void process(yp2::Package & package) const { - + if (package.session().is_closed()) { // std::cout << "Got Close.\n"; } - + Z_GDU *gdu = package.request().get(); if (gdu) { @@ -131,6 +136,7 @@ int main(int argc, char **argv) * Local variables: * c-basic-offset: 4 * indent-tabs-mode: nil + * c-file-style: "stroustrup" * End: * vim: shiftwidth=4 tabstop=8 expandtab */ diff --git a/src/filter.hpp b/src/filter.hpp index 73bf2ca..faaefc6 100644 --- a/src/filter.hpp +++ b/src/filter.hpp @@ -1,3 +1,8 @@ +/* $Id: filter.hpp,v 1.4 2005-10-15 14:09:09 adam Exp $ + Copyright (c) 2005, Index Data. + +%LICENSE% + */ #ifndef FILTER_HPP #define FILTER_HPP @@ -54,6 +59,7 @@ namespace yp2 { * Local variables: * c-basic-offset: 4 * indent-tabs-mode: nil + * c-file-style: "stroustrup" * End: * vim: shiftwidth=4 tabstop=8 expandtab */ diff --git a/src/filter_frontend_net.cpp b/src/filter_frontend_net.cpp index 5b7f59d..a390433 100644 --- a/src/filter_frontend_net.cpp +++ b/src/filter_frontend_net.cpp @@ -1,3 +1,8 @@ +/* $Id: filter_frontend_net.cpp,v 1.7 2005-10-15 14:09:09 adam Exp $ + Copyright (c) 2005, Index Data. + +%LICENSE% + */ #include "config.hpp" @@ -284,3 +289,11 @@ int &yp2::filter::FrontendNet::listen_duration() return m_listen_duration; } +/* + * Local variables: + * c-basic-offset: 4 + * indent-tabs-mode: nil + * c-file-style: "stroustrup" + * End: + * vim: shiftwidth=4 tabstop=8 expandtab + */ diff --git a/src/filter_frontend_net.hpp b/src/filter_frontend_net.hpp index 6fd0856..98d2c6f 100644 --- a/src/filter_frontend_net.hpp +++ b/src/filter_frontend_net.hpp @@ -1,3 +1,8 @@ +/* $Id: filter_frontend_net.hpp,v 1.5 2005-10-15 14:09:09 adam Exp $ + Copyright (c) 2005, Index Data. + +%LICENSE% + */ #ifndef FILTER_FRONTEND_NET_HPP #define FILTER_FRONEND_NET_HPP @@ -31,6 +36,7 @@ namespace yp2 { * Local variables: * c-basic-offset: 4 * indent-tabs-mode: nil + * c-file-style: "stroustrup" * End: * vim: shiftwidth=4 tabstop=8 expandtab */ diff --git a/src/filter_log.cpp b/src/filter_log.cpp index f652c3b..742fd2b 100644 --- a/src/filter_log.cpp +++ b/src/filter_log.cpp @@ -1,3 +1,8 @@ +/* $Id: filter_log.cpp,v 1.3 2005-10-15 14:09:09 adam Exp $ + Copyright (c) 2005, Index Data. + +%LICENSE% + */ #include "config.hpp" @@ -38,3 +43,11 @@ void yp2::filter::Log::process(Package &package) const { } +/* + * Local variables: + * c-basic-offset: 4 + * indent-tabs-mode: nil + * c-file-style: "stroustrup" + * End: + * vim: shiftwidth=4 tabstop=8 expandtab + */ diff --git a/src/filter_log.hpp b/src/filter_log.hpp index 78c261c..e7cdf4b 100644 --- a/src/filter_log.hpp +++ b/src/filter_log.hpp @@ -1,3 +1,8 @@ +/* $Id: filter_log.hpp,v 1.3 2005-10-15 14:09:09 adam Exp $ + Copyright (c) 2005, Index Data. + +%LICENSE% + */ #ifndef FILTER_LOG_HPP #define FILTER_LOG_HPP @@ -22,6 +27,7 @@ namespace yp2 { * Local variables: * c-basic-offset: 4 * indent-tabs-mode: nil + * c-file-style: "stroustrup" * End: * vim: shiftwidth=4 tabstop=8 expandtab */ diff --git a/src/p2.cpp b/src/p2.cpp index ced97d1..038afcd 100644 --- a/src/p2.cpp +++ b/src/p2.cpp @@ -1,4 +1,9 @@ -/* $Id: p2.cpp,v 1.4 2005-10-14 10:27:18 adam Exp $ +/* $Id: p2.cpp,v 1.5 2005-10-15 14:09:09 adam Exp $ + Copyright (c) 2005, Index Data. + +%LICENSE% + */ +/* $Id: p2.cpp,v 1.5 2005-10-15 14:09:09 adam Exp $ Copyright (c) 1998-2005, Index Data. This file is part of the yaz-proxy. @@ -142,6 +147,7 @@ int main(int argc, char **argv) * Local variables: * c-basic-offset: 4 * indent-tabs-mode: nil + * c-file-style: "stroustrup" * End: * vim: shiftwidth=4 tabstop=8 expandtab */ diff --git a/src/package.hpp b/src/package.hpp index f756511..8545c43 100644 --- a/src/package.hpp +++ b/src/package.hpp @@ -1,3 +1,8 @@ +/* $Id: package.hpp,v 1.9 2005-10-15 14:09:09 adam Exp $ + Copyright (c) 2005, Index Data. + +%LICENSE% + */ #ifndef PACKAGE_HPP #define PACKAGE_HPP @@ -121,6 +126,7 @@ namespace yp2 { * Local variables: * c-basic-offset: 4 * indent-tabs-mode: nil + * c-file-style: "stroustrup" * End: * vim: shiftwidth=4 tabstop=8 expandtab */ diff --git a/src/router.hpp b/src/router.hpp index d92db4c..b0c238a 100644 --- a/src/router.hpp +++ b/src/router.hpp @@ -1,3 +1,8 @@ +/* $Id: router.hpp,v 1.3 2005-10-15 14:09:09 adam Exp $ + Copyright (c) 2005, Index Data. + +%LICENSE% + */ #ifndef ROUTER_HPP #define ROUTER_HPP @@ -93,6 +98,7 @@ namespace yp2 { * Local variables: * c-basic-offset: 4 * indent-tabs-mode: nil + * c-file-style: "stroustrup" * End: * vim: shiftwidth=4 tabstop=8 expandtab */ diff --git a/src/session.cpp b/src/session.cpp index 0977505..a67cec0 100644 --- a/src/session.cpp +++ b/src/session.cpp @@ -1,3 +1,8 @@ +/* $Id: session.cpp,v 1.2 2005-10-15 14:09:09 adam Exp $ + Copyright (c) 2005, Index Data. + +%LICENSE% + */ #include @@ -14,6 +19,7 @@ unsigned long int yp2::Session::m_global_id = 0; * Local variables: * c-basic-offset: 4 * indent-tabs-mode: nil + * c-file-style: "stroustrup" * End: * vim: shiftwidth=4 tabstop=8 expandtab */ diff --git a/src/session.hpp b/src/session.hpp index 52c2d3e..420f2fc 100644 --- a/src/session.hpp +++ b/src/session.hpp @@ -1,3 +1,8 @@ +/* $Id: session.hpp,v 1.7 2005-10-15 14:09:09 adam Exp $ + Copyright (c) 2005, Index Data. + +%LICENSE% + */ #ifndef SESSION_HPP #define SESSION_HPP @@ -66,6 +71,7 @@ namespace yp2 { * Local variables: * c-basic-offset: 4 * indent-tabs-mode: nil + * c-file-style: "stroustrup" * End: * vim: shiftwidth=4 tabstop=8 expandtab */ diff --git a/src/test_boost_threads.cpp b/src/test_boost_threads.cpp index 9aaae2e..7b13970 100644 --- a/src/test_boost_threads.cpp +++ b/src/test_boost_threads.cpp @@ -1,3 +1,8 @@ +/* $Id: test_boost_threads.cpp,v 1.5 2005-10-15 14:09:09 adam Exp $ + Copyright (c) 2005, Index Data. + +%LICENSE% + */ #include "config.hpp" #include @@ -92,6 +97,7 @@ BOOST_AUTO_TEST_CASE( thread_list ) * Local variables: * c-basic-offset: 4 * indent-tabs-mode: nil + * c-file-style: "stroustrup" * End: * vim: shiftwidth=4 tabstop=8 expandtab */ diff --git a/src/test_boost_time.cpp b/src/test_boost_time.cpp index d48bbd5..8f79989 100644 --- a/src/test_boost_time.cpp +++ b/src/test_boost_time.cpp @@ -1,3 +1,8 @@ +/* $Id: test_boost_time.cpp,v 1.5 2005-10-15 14:09:09 adam Exp $ + Copyright (c) 2005, Index Data. + +%LICENSE% + */ #include #include "config.hpp" @@ -49,6 +54,7 @@ BOOST_AUTO_TEST_CASE( testboosttime1 ) * Local variables: * c-basic-offset: 4 * indent-tabs-mode: nil + * c-file-style: "stroustrup" * End: * vim: shiftwidth=4 tabstop=8 expandtab */ diff --git a/src/test_filter1.cpp b/src/test_filter1.cpp index 02b9fa7..98809f4 100644 --- a/src/test_filter1.cpp +++ b/src/test_filter1.cpp @@ -1,3 +1,8 @@ +/* $Id: test_filter1.cpp,v 1.11 2005-10-15 14:09:09 adam Exp $ + Copyright (c) 2005, Index Data. + +%LICENSE% + */ #include "config.hpp" #include @@ -38,6 +43,7 @@ BOOST_AUTO_TEST_CASE( test_filter1 ) * Local variables: * c-basic-offset: 4 * indent-tabs-mode: nil + * c-file-style: "stroustrup" * End: * vim: shiftwidth=4 tabstop=8 expandtab */ diff --git a/src/test_filter2.cpp b/src/test_filter2.cpp index a02b74f..4b70368 100644 --- a/src/test_filter2.cpp +++ b/src/test_filter2.cpp @@ -1,3 +1,8 @@ +/* $Id: test_filter2.cpp,v 1.9 2005-10-15 14:09:09 adam Exp $ + Copyright (c) 2005, Index Data. + +%LICENSE% + */ #include "config.hpp" @@ -88,6 +93,7 @@ BOOST_AUTO_TEST_CASE( testfilter2 ) * Local variables: * c-basic-offset: 4 * indent-tabs-mode: nil + * c-file-style: "stroustrup" * End: * vim: shiftwidth=4 tabstop=8 expandtab */ diff --git a/src/test_filter_frontend_net.cpp b/src/test_filter_frontend_net.cpp index 9b74cd3..7bdb01a 100644 --- a/src/test_filter_frontend_net.cpp +++ b/src/test_filter_frontend_net.cpp @@ -1,3 +1,8 @@ +/* $Id: test_filter_frontend_net.cpp,v 1.7 2005-10-15 14:09:09 adam Exp $ + Copyright (c) 2005, Index Data. + +%LICENSE% + */ #include "config.hpp" #include @@ -128,6 +133,7 @@ BOOST_AUTO_TEST_CASE( test_filter_frontend_net_3 ) * Local variables: * c-basic-offset: 4 * indent-tabs-mode: nil + * c-file-style: "stroustrup" * End: * vim: shiftwidth=4 tabstop=8 expandtab */ diff --git a/src/test_package1.cpp b/src/test_package1.cpp index df11356..5ec2520 100644 --- a/src/test_package1.cpp +++ b/src/test_package1.cpp @@ -1,3 +1,8 @@ +/* $Id: test_package1.cpp,v 1.3 2005-10-15 14:09:09 adam Exp $ + Copyright (c) 2005, Index Data. + +%LICENSE% + */ #include "config.hpp" #include @@ -30,6 +35,7 @@ BOOST_AUTO_TEST_CASE( test_package1_1 ) * Local variables: * c-basic-offset: 4 * indent-tabs-mode: nil + * c-file-style: "stroustrup" * End: * vim: shiftwidth=4 tabstop=8 expandtab */ diff --git a/src/test_session1.cpp b/src/test_session1.cpp index 4377ad7..cd1e23b 100644 --- a/src/test_session1.cpp +++ b/src/test_session1.cpp @@ -1,3 +1,8 @@ +/* $Id: test_session1.cpp,v 1.8 2005-10-15 14:09:09 adam Exp $ + Copyright (c) 2005, Index Data. + +%LICENSE% + */ #include "config.hpp" #include "session.hpp" @@ -38,6 +43,7 @@ BOOST_AUTO_TEST_CASE( testsession1 ) * Local variables: * c-basic-offset: 4 * indent-tabs-mode: nil + * c-file-style: "stroustrup" * End: * vim: shiftwidth=4 tabstop=8 expandtab */ diff --git a/src/test_session2.cpp b/src/test_session2.cpp index 6e96266..1e26bca 100644 --- a/src/test_session2.cpp +++ b/src/test_session2.cpp @@ -1,3 +1,8 @@ +/* $Id: test_session2.cpp,v 1.5 2005-10-15 14:09:09 adam Exp $ + Copyright (c) 2005, Index Data. + +%LICENSE% + */ #include "config.hpp" #include "session.hpp" @@ -78,6 +83,7 @@ BOOST_AUTO_TEST_CASE( testsession2 ) * Local variables: * c-basic-offset: 4 * indent-tabs-mode: nil + * c-file-style: "stroustrup" * End: * vim: shiftwidth=4 tabstop=8 expandtab */ diff --git a/src/test_thread_pool_observer.cpp b/src/test_thread_pool_observer.cpp index 9c3f8a1..38b4116 100644 --- a/src/test_thread_pool_observer.cpp +++ b/src/test_thread_pool_observer.cpp @@ -1,4 +1,9 @@ -/* $Id: test_thread_pool_observer.cpp,v 1.5 2005-10-14 10:27:18 adam Exp $ +/* $Id: test_thread_pool_observer.cpp,v 1.6 2005-10-15 14:09:09 adam Exp $ + Copyright (c) 2005, Index Data. + +%LICENSE% + */ +/* $Id: test_thread_pool_observer.cpp,v 1.6 2005-10-15 14:09:09 adam Exp $ Copyright (c) 1998-2005, Index Data. This file is part of the yaz-proxy. @@ -113,6 +118,7 @@ BOOST_AUTO_TEST_CASE( thread_pool_observer1 ) * Local variables: * c-basic-offset: 4 * indent-tabs-mode: nil + * c-file-style: "stroustrup" * End: * vim: shiftwidth=4 tabstop=8 expandtab */ diff --git a/src/thread_pool_observer.cpp b/src/thread_pool_observer.cpp index 40323d9..f400ba5 100644 --- a/src/thread_pool_observer.cpp +++ b/src/thread_pool_observer.cpp @@ -1,22 +1,7 @@ -/* $Id: thread_pool_observer.cpp,v 1.6 2005-10-14 10:27:18 adam Exp $ - Copyright (c) 1998-2005, Index Data. +/* $Id: thread_pool_observer.cpp,v 1.7 2005-10-15 14:09:09 adam Exp $ + Copyright (c) 2005, Index Data. -This file is part of the yaz-proxy. - -YAZ proxy 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. - -YAZ proxy 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 YAZ proxy; see the file LICENSE. If not, write to the -Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA -02111-1307, USA. +%LICENSE% */ #include #include @@ -119,6 +104,7 @@ void ThreadPoolSocketObserver::put(IThreadPoolMsg *m) * Local variables: * c-basic-offset: 4 * indent-tabs-mode: nil + * c-file-style: "stroustrup" * End: * vim: shiftwidth=4 tabstop=8 expandtab */ diff --git a/src/thread_pool_observer.hpp b/src/thread_pool_observer.hpp index c52dca1..c09eba4 100644 --- a/src/thread_pool_observer.hpp +++ b/src/thread_pool_observer.hpp @@ -1,22 +1,7 @@ -/* $Id: thread_pool_observer.hpp,v 1.3 2005-10-14 10:27:18 adam Exp $ - Copyright (c) 1998-2005, Index Data. +/* $Id: thread_pool_observer.hpp,v 1.4 2005-10-15 14:09:09 adam Exp $ + Copyright (c) 2005, Index Data. -This file is part of the yaz-proxy. - -YAZ proxy 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. - -YAZ proxy 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 YAZ proxy; see the file LICENSE. If not, write to the -Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA -02111-1307, USA. +%LICENSE% */ #ifndef YP2_THREAD_POOL_OBSERVER_HPP @@ -81,6 +66,7 @@ namespace yp2 { * Local variables: * c-basic-offset: 4 * indent-tabs-mode: nil + * c-file-style: "stroustrup" * End: * vim: shiftwidth=4 tabstop=8 expandtab */ -- 1.7.10.4