OpenClonk
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
log-handle.h File Reference
#include <glib.h>
Include dependency graph for log-handle.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Typedefs

typedef typedefG_BEGIN_DECLS
struct _C4MapgenHandle 
C4MapgenHandle
 

Functions

void c4_log_handle_clear ()
 
const char * c4_log_handle_get_first_log_message ()
 
unsigned int c4_log_handle_get_n_log_messages ()
 

Typedef Documentation

typedef typedefG_BEGIN_DECLS struct _C4MapgenHandle C4MapgenHandle

Definition at line 23 of file log-handle.h.

Function Documentation

void c4_log_handle_clear ( )

Definition at line 55 of file log-handle.cpp.

References first_log, and n_logs.

Referenced by c4_mapgen_handle_new(), and c4_mapgen_handle_new_script().

56 {
57  first_log.clear();
58  n_logs = 0;
59 }
std::string first_log
Definition: log-handle.cpp:21
unsigned int n_logs
Definition: log-handle.cpp:22

Here is the caller graph for this function:

const char* c4_log_handle_get_first_log_message ( )

Definition at line 61 of file log-handle.cpp.

References first_log.

Referenced by c4_mapgen_handle_new(), and c4_mapgen_handle_new_script().

62 {
63  if(first_log.empty()) return nullptr;
64  return first_log.c_str();
65 }
std::string first_log
Definition: log-handle.cpp:21

Here is the caller graph for this function:

unsigned int c4_log_handle_get_n_log_messages ( )

Definition at line 67 of file log-handle.cpp.

References n_logs.

Referenced by c4_mapgen_handle_new(), and c4_mapgen_handle_new_script().

68 {
69  return n_logs;
70 }
unsigned int n_logs
Definition: log-handle.cpp:22

Here is the caller graph for this function: