VirtualC64 v5.0 beta
Commodore 64 Emulator
Loading...
Searching...
No Matches
Dumpable.h
1// -----------------------------------------------------------------------------
2// This file is part of VirtualC64
3//
4// Copyright (C) Dirk W. Hoffmann. www.dirkwhoffmann.de
5// This FILE is dual-licensed. You are free to choose between:
6//
7// - The GNU General Public License v3 (or any later version)
8// - The Mozilla Public License v2
9//
10// SPDX-License-Identifier: GPL-3.0-or-later OR MPL-2.0
11// -----------------------------------------------------------------------------
12
13#pragma once
14
15#include <iostream>
16
17namespace vc64 {
18
19enum class Category
20{
21 BankMap,
22 Breakpoints,
23 Checksums,
24 Config,
25 Current,
26 Debug,
27 Defaults,
28 Disk,
29 Dma,
30 Layout,
31 Properties,
32 Registers,
33 RunAhead,
34 Sizeof,
35 Slots,
36 State,
37 Stats,
38 Summary,
39 Tod,
40 Watchpoints
41};
42
43class Dumpable {
44
45public:
46
47 virtual ~Dumpable() = default;
48 virtual void _dump(Category category, std::ostream& ss) const { }
49
50 void dump(Category category, std::ostream& ss) const;
51 void dump(Category category) const;
52};
53
54}
VirtualC64 project namespace.
Definition CmdQueue.cpp:16