ALMaSS Partridge ODdox  1.1
The partridge model description following ODdox protocol
maperrormsg.h
Go to the documentation of this file.
1 //
2 // maperrormsg.h
3 //
4 /*
5 *******************************************************************************************************
6 Copyright (c) 2011, Christopher John Topping, University of Aarhus
7 All rights reserved.
8 
9 Redistribution and use in source and binary forms, with or without modification, are permitted provided
10 that the following conditions are met:
11 
12 Redistributions of source code must retain the above copyright notice, this list of conditions and the
13 following disclaimer.
14 Redistributions in binary form must reproduce the above copyright notice, this list of conditions and
15 the following disclaimer in the documentation and/or other materials provided with the distribution.
16 
17 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
18 IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
19 FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS
20 BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
21 BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
22 BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23 LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
24 SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25 ********************************************************************************************************
26 */
27 
28 #ifndef MAPERRORMSG_H
29 #define MAPERRORMSG_H
30 
31 extern class MapErrorMsg *g_msg;
32 
33 typedef enum {
42 
44 {
46  std::string m_warnfile;
47 
48 public:
49  void Warn(MapErrorState a_level, std::string a_msg1, std::string a_msg2);
50  void Warn(MapErrorState a_level, std::string a_msg1, int);
51  void Warn(std::string a_msg1, std::string a_msg2);
52  void Warn(std::string a_msg1, double a_num);
53  void WarnAddInfo(MapErrorState a_level, std::string a_add1, std::string a_add2);
54  void WarnAddInfo(MapErrorState a_level, std::string a_add1, double a_num);
55  void SetWarnLevel(MapErrorState a_level);
56  MapErrorMsg(std::string a_warnfile);
57 };
58 
59 //#define __UNIX__
60 #ifdef __UNIX__
61 //int random( int a_range );
62 // #define AnsiString char *
63 // typedef char * AnsiString
64 #endif // __UNIX__
65 
66 #endif // MAPERRORMSG_H
67 
MapErrorMsg::WarnAddInfo
void WarnAddInfo(MapErrorState a_level, std::string a_add1, std::string a_add2)
Definition: maperrormsg.cpp:149
WARN_BUG
Definition: maperrormsg.h:34
MapErrorMsg::m_level
MapErrorState m_level
Definition: maperrormsg.h:45
WARN_ALL
Definition: maperrormsg.h:40
MapErrorMsg
Definition: maperrormsg.h:43
MapErrorMsg::SetWarnLevel
void SetWarnLevel(MapErrorState a_level)
Definition: maperrormsg.cpp:48
MapErrorMsg::Warn
void Warn(MapErrorState a_level, std::string a_msg1, std::string a_msg2)
Definition: maperrormsg.cpp:59
WARN_UNDEF
Definition: maperrormsg.h:36
WARN_MSG
Definition: maperrormsg.h:38
MapErrorState
MapErrorState
Definition: maperrormsg.h:33
WARN_FATAL
Definition: maperrormsg.h:35
WARN_FILE
Definition: maperrormsg.h:37
MapErrorMsg::m_warnfile
std::string m_warnfile
Definition: maperrormsg.h:46
MapErrorMsg::MapErrorMsg
MapErrorMsg(std::string a_warnfile)
Definition: maperrormsg.cpp:43
g_msg
class MapErrorMsg * g_msg
Definition: maperrormsg.cpp:41
WARN_TRIVIAL
Definition: maperrormsg.h:39