*** empty log message ***
[h316.git] / pc-tools / ldc2 / src / data_block.cpp
1 #include <stdlib.h>
2 #include <string.h>
3
4 #include "data_block.hh"
5 #include "data_block_0.hh"
6
7
8 data_block::data_block(tape_block& idol)
9 :tape_block(idol)
10 {
11 }
12
13 data_block::~data_block(){
14 }
15
16 int data_block::get_type(){
17 if ((init_state==TBS_OK)&&word_data)
18 return (word_data[0]&0xf000)>>12;
19 else
20 return block_type;
21 }
22
23 int data_block::get_subtype(){
24 if (get_type()==0)
25 return (new data_block_0(*this))->get_subtype();
26 else return 0;
27 }