00001 //Dear emacs, this is -*- c++ -*- 00002 00013 #include "eformat/RunNumber.h" 00014 00015 eformat::helper::RunNumber::RunNumber (uint32_t rn) 00016 : m_type(static_cast<eformat::RunType>(rn>>24)), 00017 m_n(0xffffff&rn) 00018 { 00019 } 00020 00021 uint32_t eformat::helper::RunNumber::code (void) const 00022 { 00023 uint32_t retval = m_type; 00024 retval <<= 24; 00025 retval |= m_n; 00026 return retval; 00027 } 00028 00029