116 lines
3.6 KiB
C++
Executable File
116 lines
3.6 KiB
C++
Executable File
/***************************************************************************
|
|
* Copyright (C) 2001-2023 by Tom Hicks *
|
|
* headhunter3@gmail.com *
|
|
* *
|
|
* This program 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 of the License, or *
|
|
* (at your option) any later version. *
|
|
* *
|
|
* This program 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 this program; if not, write to the *
|
|
* Free Software Foundation, Inc., *
|
|
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
|
|
***************************************************************************/
|
|
#ifndef OpenArena__Logger_h__
|
|
#define OpenArena__Logger_h__
|
|
|
|
#if defined HAVE_CONFIG_H
|
|
#include "config.h"
|
|
#endif
|
|
|
|
namespace OpenArena {
|
|
/*!
|
|
* \brief
|
|
* Write brief comment for Logger here.
|
|
*
|
|
* Write detailed description for Logger here.
|
|
*
|
|
* \remarks
|
|
* Write remarks for Logger here.
|
|
*
|
|
* \see
|
|
* Separate items with the '|' character.
|
|
*/
|
|
class Logger {
|
|
public:
|
|
/*!
|
|
* \brief
|
|
* Write brief comment for MESSAGETYPE_DEBUG here.
|
|
*/
|
|
enum MessageType { MESSAGETYPE_ALL, MESSAGETYPE_NONE, MESSAGETYPE_INFORMATION, MESSAGETYPE_ERROR, MESSAGETYPE_DEBUG };
|
|
|
|
/*!
|
|
* \brief
|
|
* Write brief comment for ~Logger here.
|
|
*
|
|
* \throws <exception class>
|
|
* Description of criteria for throwing this exception.
|
|
*
|
|
* Write detailed description for ~Logger here.
|
|
*
|
|
* \remarks
|
|
* Write remarks for ~Logger here.
|
|
*
|
|
* \see
|
|
* Separate items with the '|' character.
|
|
*/
|
|
virtual ~Logger(void) {}
|
|
|
|
/*!
|
|
* \brief
|
|
* Write brief comment for Log here.
|
|
*
|
|
* \param message
|
|
* Description of parameter message.
|
|
*
|
|
* \param type
|
|
* Description of parameter type.
|
|
*
|
|
* \throws <exception class>
|
|
* Description of criteria for throwing this exception.
|
|
*
|
|
* Write detailed description for Log here.
|
|
*
|
|
* \remarks
|
|
* Write remarks for Log here.
|
|
*
|
|
* \see
|
|
* Separate items with the '|' character.
|
|
*/
|
|
virtual void Log(const char* message, MessageType type = MESSAGETYPE_INFORMATION) = 0;
|
|
/*!
|
|
* \brief
|
|
* Write brief comment for Log here.
|
|
*
|
|
* \param message
|
|
* Description of parameter message.
|
|
*
|
|
* \param classification
|
|
* Description of parameter classification.
|
|
*
|
|
* \param type
|
|
* Description of parameter type.
|
|
*
|
|
* \throws <exception class>
|
|
* Description of criteria for throwing this exception.
|
|
*
|
|
* Write detailed description for Log here.
|
|
*
|
|
* \remarks
|
|
* Write remarks for Log here.
|
|
*
|
|
* \see
|
|
* Separate items with the '|' character.
|
|
*/
|
|
virtual void Log(const char* message, const char* classification, MessageType type = MESSAGETYPE_INFORMATION) = 0;
|
|
};
|
|
} // End namespace OpenArena
|
|
|
|
#endif // End !defined(OpenArena__Logger_h__)
|