WvStreams
handlernode.h
1/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
2 *
3 * XPLC - Cross-Platform Lightweight Components
4 * Copyright (C) 2000-2002, Pierre Phaneuf
5 *
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public License
8 * as published by the Free Software Foundation; either version 2.1 of
9 * the License, or (at your option) any later version.
10 *
11 * This library is distributed in the hope that it will be useful, but
12 * WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
15 *
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
19 * USA
20 */
21
22#ifndef __XPLC_HANDLERNODE_H__
23#define __XPLC_HANDLERNODE_H__
24
26
28public:
29 HandlerNode* next;
30 IServiceHandler* handler;
31 bool intercept;
33 HandlerNode* aNext,
34 bool aIntercept): next(aNext),
35 handler(aHandler),
36 intercept(aIntercept) {
37 handler->addRef();
38 }
39
40 ~HandlerNode() {
41 handler->release();
42 }
43};
44
45#endif /* __XPLC_HANDLERNODE_H__ */
The service handler interface.
virtual unsigned int addRef()=0
Indicate you are using this object.
virtual unsigned int release()=0
Indicate that you are finished using this object.
Interface to an object which can be used to find other objects, given their UUIDs.