source: thomson/elec/CrO2/software/k5.h@ 192e299

main
Last change on this file since 192e299 was 192e299, checked in by Adrien Destugues <pulkomandy@…>, 12 years ago

Cleanup.

git-svn-id: svn://localhost/thomson@15 85ae3b6b-dc8f-4344-a89d-598714f2e4e5

  • Property mode set to 100644
File size: 622 bytes
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
10class 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.