/[PAMELA software]/yoda/event/mcmd/McmdRecord.h
ViewVC logotype

Diff of /yoda/event/mcmd/McmdRecord.h

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

revision 1.1 by kusanagi, Tue Jul 6 12:20:23 2004 UTC revision 2.1 by kusanagi, Fri Dec 3 22:04:30 2004 UTC
# Line 1  Line 1 
1  /** @file  /** @file
2   * $Source: /home/cvspamela/yoda/event/mcmd/McmdRecord.h,v $   * $Source: /home/cvsmanager/yoda/event/mcmd/McmdRecord.h,v $
3   * $Id: McmdRecord.h,v 1.8 2004/04/22 15:51:03 nagni Exp $   * $Id: McmdRecord.h,v 2.0 2004/09/21 20:50:13 kusanagi Exp $
4   * $Author: nagni $   * $Author: kusanagi $
5   *   *
6   * Header file for the McmdRecord class.   * Header file for the McmdRecord class.
7   */   */
8  #ifndef MCMD_RECORD_H  #ifndef MCMD_RECORD_H
9  #define MCMD_RECORD_H  #define MCMD_RECORD_H
10    
11  #define UINT32 unsigned int  #include "event/SubPacket.h"
12  #define UINT16 unsigned short  #include <TArrayC.h>
 #define BYTE   unsigned char  
   
 #include <TObject.h>  
   
13    
14  namespace pamela {  namespace pamela {
15    /**    /**
# Line 35  namespace pamela { Line 31  namespace pamela {
31      BYTE           ID1;      BYTE           ID1;
32      UINT16         McmdLength;      UINT16         McmdLength;
33      UINT32         TimeTag;      UINT32         TimeTag;
34      BYTE*          McmdData;      TArrayC       *McmdData;
35      BYTE           endID;      BYTE           endID;
36    
37    
38      McmdRecord(void);      McmdRecord(void);
39                    
40      void setMcmdData(const BYTE val[]) {      /*void setMcmdData(const BYTE val[]) {
41        if (McmdLength > 0){        if (McmdLength > 0){
42          McmdData = new BYTE[McmdLength];          McmdData = new BYTE[McmdLength];
43          memcpy(McmdData, val, McmdLength);          memcpy(McmdData, val, McmdLength);
44        }        }
45      };      };*/
46            
47      ClassDef(McmdRecord, 1)      ClassDef(McmdRecord, 1)
48    };    };

Legend:
Removed from v.1.1  
changed lines
  Added in v.2.1

  ViewVC Help
Powered by ViewVC 1.1.23