HoverRace  2.0
TrackCompilationLog.h
Go to the documentation of this file.
1 // TrackCompilationLog.h
2 //
3 // Copyright (c) 2013 Michael Imamura.
4 //
5 // Licensed under GrokkSoft HoverRace SourceCode License v1.0(the "License");
6 // you may not use this file except in compliance with the License.
7 //
8 // A copy of the license should have been attached to the package from which
9 // you have taken this file. If you can not find the license you can not use
10 // this file.
11 //
12 //
13 // The author makes no representations about the suitability of
14 // this software for any purpose. It is provided "as is" "AS IS",
15 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
16 // implied.
17 //
18 // See the License for the specific language governing permissions
19 // and limitations under the License.
20 //
21 
22 #pragma once
23 
24 #if defined(_WIN32) && defined(HR_ENGINE_SHARED)
25 # ifdef MR_ENGINE
26 # define MR_DllDeclare __declspec( dllexport )
27 # else
28 # define MR_DllDeclare __declspec( dllimport )
29 # endif
30 #else
31 # define MR_DllDeclare
32 #endif
33 
34 namespace HoverRace {
35 namespace MazeCompiler {
36 
42 {
43  virtual void Info(const std::string &msg) = 0;
44  virtual void Warn(const std::string &msg) = 0;
45 };
46 typedef std::shared_ptr<TrackCompilationLog> TrackCompilationLogPtr;
47 
48 } // namespace MazeCompiler
49 } // namespace HoverRace
50 
51 #undef MR_DllDeclare
void Warn(const char *fmt,...)
Definition: Log.h:102
Simple logging interface for track compilation progress reporting.
Definition: TrackCompilationLog.h:41
#define MR_DllDeclare
Definition: TrackCompilationLog.h:31
std::shared_ptr< TrackCompilationLog > TrackCompilationLogPtr
Definition: TrackCompilationLog.h:46
void Info(const char *fmt,...)
Definition: Log.h:94
Definition: Announcement.h:24