*** empty log message ***
[h316.git] / pc-tools / ldc2 / src / data_block_0.cpp
CommitLineData
4741aa72 1/******************************************************************************
2 *
3 * LDC2 source code
4 *
7023c3ab 5 * $Date: 2010/01/04 02:10:59 $
4741aa72 6 * $Author: hachti $
7 *
8 * $Log: data_block_0.cpp,v $
7023c3ab 9 * Revision 2.1 2010/01/04 02:10:59 hachti
10 * *** empty log message ***
11 *
12 * Revision 2.0 2007-03-26 01:00:38 hachti
4741aa72 13 * *** empty log message ***
14 *
15 *
16 ******************************************************************************/
17
97b26985 18#include "data_block_0.hh"
7023c3ab 19#include <stdio.h>
97b26985 20
0ec6e042 21/*!
fd9632c0 22 *\brief Specialisation constructor.
0ec6e042 23 */
97b26985 24data_block_0::data_block_0(data_block & org)
25 :data_block(org)
874a2bd8 26{
27 m_has_known_type=false;
28}
29
97b26985 30
0ec6e042 31/*!
09cb0f4f 32 * Determine the block's subtype.
33 *\return The block's subtype, read from block data.
34 */
97b26985 35int data_block_0::get_subtype(){
0ec6e042 36 return (word_data[0]&0x0fc0)>>6;
97b26985 37}
38
09cb0f4f 39/*!
40 *\brief Describe the block.
41 *\return A vector of text lines describing this block.
42 */
43vector<string> data_block_0::get_description(){
44 vector<string> result;
45 char buffer[150];
46 sprintf(buffer," (0-%02o) Type 0 data block, unknown\
47 subtype, this is an illegal condition!",get_subtype());
48 string r_string=buffer;
49 result.insert(result.end(),r_string);
50 return result;
51}
52
53
6c06db96 54