/[PAMELA software]/yoda/techmodel/LogReader.cpp
ViewVC logotype

Diff of /yoda/techmodel/LogReader.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.3 by kusanagi, Thu Aug 19 15:24:46 2004 UTC revision 1.4 by kusanagi, Tue Aug 24 16:01:57 2004 UTC
# Line 1  Line 1 
1  /** @file  /** @file
2   * $Source: /home/cvsmanager/yoda/techmodel/LogReader.cpp,v $   * $Source: /home/cvsmanager/yoda/techmodel/LogReader.cpp,v $
3   * $Id: LogReader.cpp,v 1.2 2004/07/17 20:03:38 kusanagi Exp $   * $Id: LogReader.cpp,v 1.3 2004/08/19 15:24:46 kusanagi Exp $
4   * $Author: kusanagi $   * $Author: kusanagi $
5   *   *
6   * Implementation of the LogReader class.   * Implementation of the LogReader class.
# Line 44  LogReader::LogReader(void): Line 44  LogReader::LogReader(void):
44   */   */
45  std::string LogReader::GetVersionInfo(void) const {  std::string LogReader::GetVersionInfo(void) const {
46    return    return
47      "$Header: /home/cvsmanager/yoda/techmodel/LogReader.cpp,v 1.2 2004/07/17 20:03:38 kusanagi Exp $\n";      "$Header: /home/cvsmanager/yoda/techmodel/LogReader.cpp,v 1.3 2004/08/19 15:24:46 kusanagi Exp $\n";
48  }  }
49    
50  /**  /**
# Line 92  if (subCRC == readCRC){ Line 92  if (subCRC == readCRC){
92              rec->INFO1          = (((UINT32)subData[offset+8]<<24)&0xFF000000) + (((UINT32)subData[offset+9]<<16)&0x00FF0000) +  (((UINT32)subData[offset+10]<<8)&0x0000FF00) + (((UINT32)subData[offset+11])&0x000000FF);              rec->INFO1          = (((UINT32)subData[offset+8]<<24)&0xFF000000) + (((UINT32)subData[offset+9]<<16)&0x00FF0000) +  (((UINT32)subData[offset+10]<<8)&0x0000FF00) + (((UINT32)subData[offset+11])&0x000000FF);
93              offset = offset + 12;              offset = offset + 12;
94          }          }
         free(subData);  
95      } else {      } else {
96          cat <<  log4cpp::Priority::ERROR          cat <<  log4cpp::Priority::ERROR
97              <<  "Wrong CRC in Log Packet "              <<  "Wrong CRC in Log Packet "
98              <<  "\n " << log4cpp::CategoryStream::ENDLINE;              <<  "\n " << log4cpp::CategoryStream::ENDLINE;
99      }      }
100        delete [] subData;
101  }  }

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

  ViewVC Help
Powered by ViewVC 1.1.23