1
/* Copyright (C) 2003 MySQL AB
3
This program is free software; you can redistribute it and/or modify
4
it under the terms of the GNU General Public License as published by
5
the Free Software Foundation; version 2 of the License.
7
This program is distributed in the hope that it will be useful,
8
but WITHOUT ANY WARRANTY; without even the implied warranty of
9
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10
GNU General Public License for more details.
12
You should have received a copy of the GNU General Public License
13
along with this program; if not, write to the Free Software
14
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
16
#ifndef LOGHANDLERLIST_H
17
#define LOGHANDLERLIST_H
20
#include <ndb_global.h>
23
* Provides a simple linked list of log handlers.
26
* @version #@ $Id: LogHandlerList.hpp,v 1.2 2002/03/14 13:07:21 eyualex Exp $
32
* Default Constructor.
42
* Adds a new log handler.
44
* @param pNewHandler log handler.
46
void add(LogHandler* pNewHandler);
49
* Removes a log handler from the list and call its destructor.
51
* @param pRemoveHandler the handler to remove
53
bool remove(LogHandler* pRemoveHandler);
56
* Removes all log handlers.
61
* Returns the next log handler in the list.
62
* returns a log handler or NULL.
67
* Returns the size of the list.
74
LogHandlerNode* pPrev;
75
LogHandlerNode* pNext;
79
LogHandlerNode* next(LogHandlerNode* pNode);
80
LogHandlerNode* prev(LogHandlerNode* pNode);
82
void removeNode(LogHandlerNode* pNode);
86
LogHandlerNode* m_pHeadNode;
87
LogHandlerNode* m_pTailNode;
88
LogHandlerNode* m_pCurrNode;