*** empty log message ***
[h316.git] / pc-tools / ldc2 / src / main.cpp
CommitLineData
97b26985 1
2#include <stdio.h>
3#include <unistd.h>
4
5#include "tape_block.hh"
6c06db96 6#include "data_block.hh"
97b26985 7
8void tape_start(void* m){
9 printf("tape_start\n");
10}
11
12void tape_stop(void* m){
13 printf("tape_stop\n");
14}
15
16int main(){
17 tape_block * myblock=0;
18 do{
19 if (myblock) delete myblock;
0ec6e042 20 myblock=tape_block::gen_from_fd(0);
6c06db96 21
22 vector<string> desc=myblock->get_description();
23 for (vector<string>::iterator iter=desc.begin();
24 iter!=desc.end();iter++)
25 printf("%s\n",(*iter).c_str());
26
27
28// if ((myblock->get_type()==0)&&(myblock->get_subtype()==050)){
29// data_block * dp=(data_block *)myblock;
30// printf ("0-50 symbol name: %s\n",dp->extract_string(4).c_str());
31// printf ("0-50 symbol name: %s\n",dp->extract_string(11).c_str());
32// printf ("Block size:%i\n",dp->get_word_size());
33// }
97b26985 34 } while (myblock->get_state()==tape_block::TBS_OK);
35 printf("---");
36 printf("State:%i\n",myblock->get_state());
37 printf("raw size:%i\n",myblock->get_raw_size());
38 return 0;
39}