+
+#include <stdio.h>
+#include <unistd.h>
+
+#include "tape_block.hh"
+#include "data_block.hh"
+
+void tape_start(void* m){
+ printf("tape_start\n");
+}
+
+void tape_stop(void* m){
+ printf("tape_stop\n");
+}
+
+int main(){
+ tape_block * myblock=0;
+ do{
+ if (myblock) delete myblock;
+ myblock=tape_block::gen_from_fd(0);
+
+ vector<string> desc=myblock->get_description();
+ for (vector<string>::iterator iter=desc.begin();
+ iter!=desc.end();iter++)
+ printf("%s\n",(*iter).c_str());
+
+
+// if ((myblock->get_type()==0)&&(myblock->get_subtype()==050)){
+// data_block * dp=(data_block *)myblock;
+// printf ("0-50 symbol name: %s\n",dp->extract_string(4).c_str());
+// printf ("0-50 symbol name: %s\n",dp->extract_string(11).c_str());
+// printf ("Block size:%i\n",dp->get_word_size());
+// }
+ } while (myblock->get_state()==tape_block::TBS_OK);
+ printf("---");
+ printf("State:%i\n",myblock->get_state());
+ printf("raw size:%i\n",myblock->get_raw_size());
+ return 0;
+}