#include "SolReader.h" void script(){ SolReader * reader = new SolReader("haha_000.sol"); Event * evt = reader->evt; printf("----------file size: %u Byte\n", reader->GetFileSize()); reader->ScanNumBlock(); /* for( int i = 0; i < reader->GetTotalNumBlock() ; i++){ printf("########################## nBlock : %u, %u/%u\n", reader->GetNumBlock(), reader->GetFilePos(), reader->GetFileSize()); reader->ReadBlock(); evt->PrintAll(); //evt->PrintAllTrace(); } //printf("reader traceLength : %lu \n", evt->traceLenght); /* for( int i = 0; i < evt->traceLenght; i++){ printf("%4d| %d\n", i, evt->analog_probes[0][i]); } */ }