| 1 |
/** @file |
/** @file |
| 2 |
* $Source: /home/cvsmanager/yoda/techmodel/TabDumpReader.cpp,v $ |
* $Source: /home/cvsmanager/yoda/techmodel/TabDumpReader.cpp,v $ |
| 3 |
* $Id: TabDumpReader.cpp,v 1.3 2004/07/26 23:09:45 kusanagi Exp $ |
* $Id: TabDumpReader.cpp,v 1.4 2004/08/24 16:01:57 kusanagi Exp $ |
| 4 |
* $Author: kusanagi $ |
* $Author: kusanagi $ |
| 5 |
* |
* |
| 6 |
* Implementation of the TabDumpReader class. |
* Implementation of the TabDumpReader class. |
| 32 |
* Get a string with the version info of the algorithm. |
* Get a string with the version info of the algorithm. |
| 33 |
*/ |
*/ |
| 34 |
std::string TabDumpReader::GetVersionInfo(void) const { |
std::string TabDumpReader::GetVersionInfo(void) const { |
| 35 |
return "$Header: /home/cvsmanager/yoda/techmodel/TabDumpReader.cpp,v 1.3 2004/07/26 23:09:45 kusanagi Exp $\n"; |
return "$Header: /home/cvsmanager/yoda/techmodel/TabDumpReader.cpp,v 1.4 2004/08/24 16:01:57 kusanagi Exp $\n"; |
| 36 |
} |
} |
| 37 |
|
|
| 38 |
/** |
/** |
| 79 |
rec->Tab_ID = ((UINT8)subData[offset])&0xFF; |
rec->Tab_ID = ((UINT8)subData[offset])&0xFF; |
| 80 |
rec->Nrow = ((UINT8)subData[offset+1])&0xFF; |
rec->Nrow = ((UINT8)subData[offset+1])&0xFF; |
| 81 |
rec->Ncol = ((UINT8)subData[offset+2])&0xFF; |
rec->Ncol = ((UINT8)subData[offset+2])&0xFF; |
| 82 |
rec->Data = new UINT32[(rec->Nrow)*(rec->Ncol)]; |
//rec->Data = new UINT32[(rec->Nrow)*(rec->Ncol)]; |
| 83 |
size = sizeof(UINT32)*(rec->Nrow)*(rec->Ncol); |
size = sizeof(UINT32)*(rec->Nrow)*(rec->Ncol); |
| 84 |
memcpy(rec->Data, (UINT32*)(subData+offset+3), size); |
rec->Data = new TArrayI((int)((rec->Nrow)*(rec->Ncol)), (int*)(subData+offset+3)); |
| 85 |
|
//memcpy(rec->Data, (UINT32*)(subData+offset+3), size); |
| 86 |
offset = offset + size + 3; |
offset = offset + size + 3; |
| 87 |
} |
} |
| 88 |
} else { |
} else { |