*** empty log message ***
[h316.git] / pc-tools / ldc2 / src / data_block_0.cpp
index dec8e9b3e0be665f774e229255801a4b25fe3685..f43c016151bea4e18f5d5585c6cab17f468bc01d 100644 (file)
@@ -1,7 +1,4 @@
-#include <string>
-
 #include "data_block_0.hh"
-#include "data_block.hh"
 
 /*!
  *\brief Parent class copy constructor.
@@ -10,14 +7,27 @@ data_block_0::data_block_0(data_block & org)
   :data_block(org)
 {}
 
-
 /*!
- *\brief Default destructor.
- */
-data_block_0::~data_block_0(){}
-
+ * Determine the block's subtype.
+ *\return The block's subtype, read from block data.
+ */ 
 int data_block_0::get_subtype(){
   return (word_data[0]&0x0fc0)>>6;
 }
 
+/*!
+ *\brief Describe the block.
+ *\return A vector of text lines describing this block.
+ */
+vector<string> data_block_0::get_description(){
+  vector<string> result;
+  char buffer[150];
+  sprintf(buffer,"           (0-%02o)    Type 0 data block, unknown\
+ subtype, this is an illegal condition!",get_subtype());
+  string r_string=buffer;
+  result.insert(result.end(),r_string);
+  return result;
+}
+
+