source: thomson/elec/CrO2/software/k5.h@ c7b4218

main
Last change on this file since c7b4218 was c7b4218, checked in by Adrien Destugues <pulkomandy@…>, 12 years ago
  • Move GUI in its own class
  • Design C++ callbacksystem for IUP
  • Load file from menu

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

  • Property mode set to 100644
File size: 537 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
20 int length;
21 uint8_t* data;
22 uint8_t type;
23 };
24
25 int getBlockCount();
26 Block getBlock(int number);
27
28 private:
29 std::vector<Block> blocks;
30};
Note: See TracBrowser for help on using the repository browser.