00001 //Dear emacs, this is -*- c++ -*- 00002 00013 #include "eformat/Status.h" 00014 00015 eformat::helper::Status::Status (uint32_t v) 00016 : m_gen(static_cast<eformat::GenericStatus>(v&0xffff)), 00017 m_spec((v>>16)&0xffff) 00018 { 00019 } 00020 00021 uint32_t eformat::helper::Status::code (void) const 00022 { 00023 uint32_t retval = m_spec; 00024 retval <<= 16; 00025 retval |= m_gen; 00026 return retval; 00027 }