Changeset 11193


Ignore:
Timestamp:
06/27/11 13:26:34 (13 years ago)
Author:
tbretz
Message:
Replaced the constructor of EventHeader with a vector<uint16_t> by just a pointer of type uint16_t
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/src/HeadersFAD.h

    r11165 r11193  
    185185#ifdef __cplusplus
    186186        EventHeader() { init(*this); }
    187         EventHeader(const std::vector<uint16_t> &vec) { *this = vec; }
     187        EventHeader(const uint16_t *ptr)
     188        {
     189            *this = std::vector<uint16_t>(ptr, ptr+sizeof(EventHeader)/2);
     190        }
    188191
    189192        void operator=(const std::vector<uint16_t> &vec)
Note: See TracChangeset for help on using the changeset viewer.