TEMU
4.4
The Terma Emulator
LineDataLogger.h
Go to the documentation of this file.
1
//===------------------------------------------------------------*- C++ -*-===//
2
//
3
// TEMU: The Terma Emulator
4
// (c) Terma 2016
5
// Authors: Mattias Holm <maho (at) terma.com>
6
//
7
//===----------------------------------------------------------------------===//
8
9
#
ifndef
TEMU_MODELS_DATALOGGER
10
#
define
TEMU_MODELS_DATALOGGER
11
12
#
include
<
stdint
.
h
>
13
#
include
"temu-c/Support/Objsys.h"
14
15
#
ifdef
__cplusplus
16
extern
"C"
{
17
#
endif
18
19
/*!
20
Simple interface to get recorded line data from e.g. the console model.
21
*/
22
23
typedef
struct
temu_LineDataLoggerIface
{
24
//! Get number of lines
25
uint64_t (*getLineCount)(
void
*Obj);
26
//! Get pointer to line string
27
const
char
* (*
getLine
)(
void
*Obj, uint64_t Line);
28
} temu_LineDataLoggerIface;
29
#
define
TEMU_LINE_DATA_LOGGER_IFACE_TYPE
"LineDataLoggerIface"
30
TEMU_IFACE_REFERENCE_TYPE(temu_LineDataLogger);
31
32
33
#
ifdef
__cplusplus
34
}
35
#
endif
36
37
#
endif
/* ! TEMU_MODELS_CONSOLE */
temu_LineDataLoggerIface
Definition:
LineDataLogger.h:23
temu_LineDataLoggerIface::getLine
const char *(* getLine)(void *Obj, uint64_t Line)
Get pointer to line string.
Definition:
LineDataLogger.h:27
temu-c
Models
LineDataLogger.h
Generated by
1.8.17