1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
|
// license:BSD-3-Clause
// copyright-holders:AJR
/*********************************************************************
papertape.h
Base classes for paper tape reader and punch devices.
*********************************************************************/
#ifndef MAME_DEVICES_IMAGEDEV_PAPERTAPE_H
#define MAME_DEVICES_IMAGEDEV_PAPERTAPE_H
#pragma once
//**************************************************************************
// TYPE DEFINITIONS
//**************************************************************************
// ======================> paper_tape_image_device
class paper_tape_image_device : public device_t, public device_image_interface
{
public:
// image-level overrides
virtual const char *image_type_name() const noexcept override { return "punchtape"; }
virtual const char *image_brief_type_name() const noexcept override { return "ptap"; }
protected:
// construction/destruction
paper_tape_image_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock);
};
// ======================> paper_tape_reader_device
class paper_tape_reader_device : public paper_tape_image_device
{
public:
// image-level overrides
virtual bool is_readable() const noexcept override { return true; }
virtual bool is_writeable() const noexcept override { return false; }
virtual bool is_creatable() const noexcept override { return false; }
virtual bool is_reset_on_load() const noexcept override { return false; }
protected:
// construction/destruction
paper_tape_reader_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock);
// device_image_interface implementation
virtual const software_list_loader &get_software_list_loader() const override;
};
// ======================> paper_tape_punch_device
class paper_tape_punch_device : public paper_tape_image_device
{
public:
// image-level overrides
virtual bool is_readable() const noexcept override { return false; }
virtual bool is_writeable() const noexcept override { return true; }
virtual bool is_creatable() const noexcept override { return true; }
virtual bool is_reset_on_load() const noexcept override { return false; }
virtual bool support_command_line_image_creation() const noexcept override { return true; }
protected:
// construction/destruction
paper_tape_punch_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock);
};
#endif // MAME_DEVICES_IMAGEDEV_PAPERTAPE_H
|