Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:54:48

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