5 #include "tape_block.hh"
6 #include "data_block.hh"
8 void tape_start(void* m
){
9 printf("tape_start\n");
12 void tape_stop(void* m
){
13 printf("tape_stop\n");
17 tape_block
* myblock
=0;
19 if (myblock
) delete myblock
;
20 myblock
=tape_block::gen_from_fd(0);
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());
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());
34 } while (myblock
->get_state()==tape_block::TBS_OK
);
36 printf("State:%i\n",myblock
->get_state());
37 printf("raw size:%i\n",myblock
->get_raw_size());