CMS 3D CMS Logo

utilities.h
Go to the documentation of this file.
1 
2 #ifndef L1Trigger_DemonstratorTools_utilities_h
3 #define L1Trigger_DemonstratorTools_utilities_h
4 
5 #include <iosfwd>
6 
9 
10 namespace l1t::demo {
11 
12  // Simple function that converts string to file format enum (for e.g. CMSSW configs)
14 
15  BoardData read(const std::string& filePath, const FileFormat);
16 
17  BoardData read(std::istream&, const FileFormat);
18 
19  void write(const BoardData&, const std::string& filePath, const FileFormat);
20 
21  void write(const BoardData&, std::ostream&, const FileFormat);
22 
23 } // namespace l1t::demo
24 
25 #endif
FileFormat parseFileFormat(const std::string &)
Definition: utilities.cc:73
void write(const BoardData &, const std::string &filePath, const FileFormat)
Definition: utilities.cc:372
BoardData read(const std::string &filePath, const FileFormat)
Definition: utilities.cc:98