Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-07-26 08:22:19

0001 /** TRACCC library, part of the ACTS project (R&D line)
0002  *
0003  * (c) 2022-2024 CERN for the benefit of the ACTS project
0004  *
0005  * Mozilla Public License Version 2.0
0006  */
0007 
0008 // Local include(s).
0009 #include "traccc/io/data_format.hpp"
0010 
0011 // System include(s).
0012 #include <iostream>
0013 
0014 namespace traccc {
0015 
0016 std::ostream& operator<<(std::ostream& out, data_format format) {
0017   switch (format) {
0018     case data_format::csv:
0019       out << "csv";
0020       break;
0021     case data_format::binary:
0022       out << "binary";
0023       break;
0024     case data_format::json:
0025       out << "json";
0026       break;
0027     case data_format::obj:
0028       out << "wavefront obj";
0029       break;
0030     default:
0031       out << "?!?unknown?!?";
0032       break;
0033   }
0034   return out;
0035 }
0036 
0037 }  // namespace traccc