Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:05:58

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 orange/OrangeInputIO.json.hh
0007 //---------------------------------------------------------------------------//
0008 #pragma once
0009 
0010 #include <nlohmann/json.hpp>
0011 
0012 #include "OrangeData.hh"
0013 #include "OrangeInput.hh"
0014 
0015 namespace celeritas
0016 {
0017 //---------------------------------------------------------------------------//
0018 
0019 void from_json(nlohmann::json const& j, VolumeInput& value);
0020 void to_json(nlohmann::json& j, VolumeInput const& value);
0021 
0022 void from_json(nlohmann::json const& j, UnitInput& value);
0023 void to_json(nlohmann::json& j, UnitInput const& value);
0024 
0025 void from_json(nlohmann::json const& j, RectArrayInput& value);
0026 void to_json(nlohmann::json& j, RectArrayInput const& value);
0027 
0028 template<class T>
0029 void from_json(nlohmann::json const& j, Tolerance<>& value);
0030 template<class T>
0031 void to_json(nlohmann::json& j, Tolerance<T> const& value);
0032 
0033 void from_json(nlohmann::json const& j, OrangeInput& value);
0034 void to_json(nlohmann::json& j, OrangeInput const& value);
0035 
0036 //---------------------------------------------------------------------------//
0037 }  // namespace celeritas