Safir SDK Core
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Utilities/CrashReporter.h
Go to the documentation of this file.
1 /******************************************************************************
2 *
3 * Copyright Saab AB, 2012-2013 (http://safir.sourceforge.net)
4 *
5 * Created by: Lars Hagström / lars@foldspace.nu
6 *
7 *******************************************************************************
8 *
9 * This file is part of Safir SDK Core.
10 *
11 * Safir SDK Core is free software: you can redistribute it and/or modify
12 * it under the terms of version 3 of the GNU General Public License as
13 * published by the Free Software Foundation.
14 *
15 * Safir SDK Core is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
19 *
20 * You should have received a copy of the GNU General Public License
21 * along with Safir SDK Core. If not, see <http://www.gnu.org/licenses/>.
22 *
23 ******************************************************************************/
24 #ifndef __LLUF_CRASH_REPORTER_H__
25 #define __LLUF_CRASH_REPORTER_H__
26 
27 #if defined (_WIN32)
28  #if defined(lluf_crash_reporter_EXPORTS)
29  #define LLUF_CRASH_REPORTER_EXPORT __declspec(dllexport)
30  #else
31  #define LLUF_CRASH_REPORTER_EXPORT __declspec(dllimport)
32  #pragma comment(lib , "lluf_crash_reporter.lib")
33  #endif
34 #else
35  #define LLUF_CRASH_REPORTER_EXPORT
36 #endif
37 
38 
39 namespace Safir
40 {
41 namespace Utilities
42 {
44 {
45 public:
52  static void Start();
53 
60  static void Stop();
61 
63  typedef void (*DumpCallback)(const char* const dumpPath);
64 
70  static void RegisterCallback(const DumpCallback callback);
71 
80  static bool Dump();
81 };
82 }
83 }
84 #endif
85 
Definition: Utilities/CrashReporter.h:43
#define LLUF_CRASH_REPORTER_EXPORT
Definition: Utilities/CrashReporter.h:35