CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
ESDataFormatter.cc
Go to the documentation of this file.
1 
2 #include <iostream>
3 #include <sstream>
4 #include <iomanip>
5 
7 
8 using namespace std;
9 using namespace edm;
10 
11 string ESDataFormatter::print(const Word64& word) const {
12  ostringstream str;
13  if (printInHex_)
14  str << "Word64: 0x" << setw(16) << setfill('0') << hex << (word) << dec;
15  else
16  str << "Word64: " << reinterpret_cast<const bitset<64>&>(word);
17  return str.str();
18 }
19 
20 string ESDataFormatter::print(const Word16& word) const {
21  ostringstream str;
22  if (printInHex_)
23  str << "Word16: 0x" << setw(8) << setfill('0') << hex << (word) << dec;
24  else
25  str << "Word16: " << reinterpret_cast<const bitset<16>&>(word);
26  return str.str();
27 }
uint64_t word
std::string print(const Word64 &word) const
#define str(s)