ALMaSS Rabbit ODdox  1.00
The rabbit 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 SetWarnLevel(MapErrorState a_level);
55  MapErrorMsg(std::string a_warnfile);
56 };
57 
58 #ifdef __UNIX__
59 int random( int a_range );
60 #define AnsiString char *
61 #endif // __UNIX__
62 
63 #endif // MAPERRORMSG_H
64 
MapErrorState m_level
Definition: maperrormsg.h:45
class MapErrorMsg * g_msg
Definition: maperrormsg.cpp:38
void WarnAddInfo(MapErrorState a_level, std::string a_add1, std::string a_add2)
void SetWarnLevel(MapErrorState a_level)
Definition: maperrormsg.cpp:45
MapErrorMsg(std::string a_warnfile)
Definition: maperrormsg.cpp:40
MapErrorState
Definition: maperrormsg.h:33
void Warn(MapErrorState a_level, std::string a_msg1, std::string a_msg2)
Definition: maperrormsg.cpp:56
std::string m_warnfile
Definition: maperrormsg.h:46