main
Line | |
---|
1 | /* CrO2 datassette emulator
|
---|
2 | * Copyright 2012, Adrien Destugues <pulkomandy@pulkomandy.ath.cx>
|
---|
3 | *
|
---|
4 | * Distributed under the terms of the MIT licence.
|
---|
5 | */
|
---|
6 |
|
---|
7 | #include <stdint.h>
|
---|
8 | #include <vector>
|
---|
9 |
|
---|
10 | class K5 {
|
---|
11 | public:
|
---|
12 | K5(const char* filename);
|
---|
13 |
|
---|
14 | class Block {
|
---|
15 | public:
|
---|
16 | Block(int length, uint8_t type);
|
---|
17 | Block(const Block& other);
|
---|
18 | ~Block();
|
---|
19 | const Block& operator=(const Block& other);
|
---|
20 |
|
---|
21 | int length;
|
---|
22 | uint8_t* data;
|
---|
23 | uint8_t type;
|
---|
24 | private:
|
---|
25 | Block();
|
---|
26 | };
|
---|
27 |
|
---|
28 | int getBlockCount();
|
---|
29 | Block getBlock(int number);
|
---|
30 |
|
---|
31 | private:
|
---|
32 | K5();
|
---|
33 | std::vector<Block> blocks;
|
---|
34 | };
|
---|
Note:
See
TracBrowser
for help on using the repository browser.