Functions | |
uint8 * | fillNames (const Strings &names, uint8 *pos) |
void | getNames (uint8 *from, uint32 from_len, Strings &to) |
Definition at line 75 of file MsgTools.h.
References lhef::cc::convert(), edm::copy_all(), first, and pos.
Referenced by InitMsgBuilder::InitMsgBuilder(), and ConsRegResponseBuilder::setStreamSelectionTable().
{ uint32 sz = names.size(); convert(sz,pos); // save number of strings uint8* len_pos = pos + sizeof(char_uint32); // area for length pos = len_pos + sizeof(char_uint32); // area for full string of names bool first = true; for(Strings::const_iterator beg = names.begin(); beg != names.end(); ++beg) { if(first) first = false; else *pos++ = ' '; pos = edm::copy_all(*beg,pos); } convert((uint32)(pos-len_pos-sizeof(char_uint32)),len_pos); return pos; }
Definition at line 91 of file MsgTools.h.
References filterCSVwithJSON::copy, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by ConsRegResponseView::getStreamSelectionTable(), InitMsgView::hltTriggerNames(), InitMsgView::hltTriggerSelections(), and InitMsgView::l1TriggerNames().
{ // not the most efficient way to do this std::istringstream ist(std::string(reinterpret_cast<char *>(from),from_len)); typedef std::istream_iterator<std::string> Iter; std::copy(Iter(ist),Iter(),std::back_inserter(to)); }