X-Git-Url: http://sru.miketaylor.org.uk/?a=blobdiff_plain;f=src%2Fsession.hpp;h=124a8c11ff13ae1ba2c08f81f0585f1386e76195;hb=6afc47267f76271433a958b94b2f534dd347c18e;hp=b61a5fcac5a5ac4cf7e0fc4752f6d5e882043fbf;hpb=e9530d6289df9b848e4901d7c73f5a2f27706d66;p=metaproxy-moved-to-github.git diff --git a/src/session.hpp b/src/session.hpp index b61a5fc..124a8c1 100644 --- a/src/session.hpp +++ b/src/session.hpp @@ -1,5 +1,5 @@ /* This file is part of Metaproxy. - Copyright (C) 2005-2008 Index Data + Copyright (C) 2005-2010 Index Data Metaproxy 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 @@ -36,7 +36,7 @@ namespace metaproxy_1 { ++m_global_id; m_id = m_global_id; m_close = false; - }; + } /// copy session including old id Session(const Session &s) : m_id(s.m_id), m_close(s.m_close) {}; @@ -56,20 +56,21 @@ namespace metaproxy_1 { unsigned long id() const { return m_id; - }; + } bool is_closed() const { return m_close; - }; + } /// mark session closed, can not be unset void close() { m_close = true; - }; + } bool operator == (Session &ses) const { return ses.m_id == m_id; } + private: unsigned long int m_id; @@ -139,8 +140,9 @@ namespace metaproxy_1 { /* * Local variables: * c-basic-offset: 4 + * c-file-style: "Stroustrup" * indent-tabs-mode: nil - * c-file-style: "stroustrup" * End: * vim: shiftwidth=4 tabstop=8 expandtab */ +