DeltaQt  Version 0.2.0 End user documentation
A C++/Qt library for parsing DELTA (DEscription Language for TAxonomy) files
F:/Code/DeltaQt/DeltaQt/deltaparserlogmacros.h
Go to the documentation of this file.
00001 /*  Copyright 2012 Craig Robbins
00002 
00003     This file is part of DeltaQt
00004 
00005     DeltaQt is free software: you can redistribute it and/or modify
00006     it under the terms of the GNU General Public License as published by
00007     the Free Software Foundation, either version 3 of the License, or
00008     (at your option) any later version.
00009 
00010     DeltaQt is distributed in the hope that it will be useful,
00011     but WITHOUT ANY WARRANTY; without even the implied warranty of
00012     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013     GNU General Public License for more details.
00014 
00015     You should have received a copy of the GNU General Public License
00016     along with DeltaQt.  If not, see <http://www.gnu.org/licenses/>.
00017 */
00018 
00019 #ifndef DELTAPARSERLOGMACROS_H
00020 #define DELTAPARSERLOGMACROS_H
00021 
00022 #include "deltaparselog.h"
00023 
00024 /****************************************************************************
00025  Convenience macros
00026  ****************************************************************************/
00027 // TODO: Add an UNDEF_LOG_MACROS macro to undefine all these after they
00028 //       are finished with
00029 
00030 
00031 // Add INFO item to log; entry type VERBOSE
00032 #define LOG_INF_V(s1,s2) \
00033     ( m_parseLogPointer->add(DeltaLogEntry::TYPE_INFO, \
00034     QString((s1)), QString((s2)), DeltaLogEntry::VERBOSE) )
00035 
00036 // Add INFO item to log; entry type STANDARD
00037 #define LOG_INF_S(s1,s2) \
00038     ( m_parseLogPointer->add(DeltaLogEntry::TYPE_INFO, \
00039     QString((s1)), QString((s2)), DeltaLogEntry::STANDARD) )
00040 
00041 // Add ERROR item to log; entry type VERBOSE
00042 #define LOG_ERR_V(s1,s2) \
00043     ( m_parseLogPointer->add(DeltaLogEntry::TYPE_ERROR, \
00044     QString((s1)), QString((s2)), DeltaLogEntry::VERBOSE) )
00045 
00046 // Add ERROR item to log; entry type STANDARD
00047 #define LOG_ERR_S(s1,s2) \
00048     ( m_parseLogPointer->add(DeltaLogEntry::TYPE_ERROR, \
00049     QString((s1)), QString((s2)), DeltaLogEntry::STANDARD) )
00050 
00051 // Add WARNING item to log; entry type STANDARD
00052 #define LOG_WARN_S(s1,s2) \
00053     ( m_parseLogPointer->add(DeltaLogEntry::TYPE_WARNING, \
00054     QString((s1)), QString((s2)), DeltaLogEntry::STANDARD) )
00055 
00056 // Add WARNING item to log; entry type VERBOSE
00057 #define LOG_WARN_V(s1,s2) \
00058     ( m_parseLogPointer->add(DeltaLogEntry::TYPE_WARNING, \
00059     QString((s1)), QString((s2)), DeltaLogEntry::VERBOSE) )
00060 
00061 /****************************************************************************/
00062 
00063 #endif // DELTAPARSERLOGMACROS_H
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines