*** empty log message ***
[h316.git] / pc-tools / ldc2 / src / data_block.hh
index 8b44754a34fc380ffe7cd0097be87ff4e80e1e1b..1e325873ff82d13dff43b3ae31a2ab242fbe6781 100644 (file)
@@ -1,21 +1,45 @@
+/******************************************************************************
+ * 
+ * LDC2 source code
+ *
+ * $Date: 2007/03/26 01:00:38 $
+ * $Author: hachti $
+ *
+ * $Log: data_block.hh,v $
+ * Revision 2.0  2007/03/26 01:00:38  hachti
+ * *** empty log message ***
+ *
+ *
+ ******************************************************************************/
 #ifndef DATA_BLOCK_HH
 #define DATA_BLOCK_HH
 
+#include<vector>
+#include<string>
+
 #include "tape_block.hh"
 
+using namespace std;
+
+/*!
+ * Class representating a data tape block.
+ */
 class data_block
   : public tape_block
 {
-  //private: 
-  //data_block(); // Private constructor!
-public:
-   data_block(tape_block&);
-  ~data_block();
+  friend tape_block * tape_block::gen_from_fd(int,void(*)(void*),
+                                             void(*)(void*),void*);
+private:
+  data_block(tape_block&);
 
-virtual int get_type();
-virtual int get_subtype();
+public:  
+  int get_type();
+  int get_word_size();
+  virtual vector<string> get_description();
 
+protected:
+  string extract_label(int);
 };