Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-09-18 09:09:39

0001 //------------------------------- -*- C++ -*- -------------------------------//
0002 // Copyright Celeritas contributors: see top-level COPYRIGHT file for details
0003 // SPDX-License-Identifier: (Apache-2.0 OR MIT)
0004 //---------------------------------------------------------------------------//
0005 //! \file corecel/io/BuildOutput.hh
0006 //---------------------------------------------------------------------------//
0007 #pragma once
0008 
0009 #include "OutputInterface.hh"
0010 
0011 namespace celeritas
0012 {
0013 //---------------------------------------------------------------------------//
0014 /*!
0015  * Save build configuration information to JSON.
0016  */
0017 class BuildOutput final : public OutputInterface
0018 {
0019   public:
0020     //! Category of data to write
0021     Category category() const final { return Category::system; };
0022 
0023     //! Key for the entry inside the category.
0024     std::string_view label() const final { return "build"; }
0025 
0026     // Write output to the given JSON object
0027     void output(JsonPimpl*) const final;
0028 };
0029 
0030 //---------------------------------------------------------------------------//
0031 }  // namespace celeritas