Skip to content
Snippets Groups Projects
Commit 79b61e1d authored by Pierre-Alain Loizeau's avatar Pierre-Alain Loizeau Committed by Pierre-Alain Loizeau
Browse files

Add pre-processor include guards in all of YAML interface lib files

parent 23e0325c
No related branches found
No related tags found
1 merge request!2057Try to fix online-offline yaml include conflict in installed version
Pipeline #33547 passed
/* Copyright (C) 2023 FIAS Frankfurt Institute for Advanced Studies, Frankfurt / Main /* Copyright (C) 2023 FIAS Frankfurt Institute for Advanced Studies, Frankfurt / Main
SPDX-License-Identifier: GPL-3.0-only SPDX-License-Identifier: GPL-3.0-only
Authors: Felix Weiglhofer [committer] */ Authors: Felix Weiglhofer [committer] */
#ifndef CBM_YAML_BASETYPES_H
#define CBM_YAML_BASETYPES_H
#pragma once #pragma once
#include "Definitions.h" #include "Definitions.h"
...@@ -139,3 +141,4 @@ namespace cbm::algo::yaml ...@@ -139,3 +141,4 @@ namespace cbm::algo::yaml
} // namespace cbm::algo::yaml } // namespace cbm::algo::yaml
#endif // CBM_YAML_BASETYPES_H
/* Copyright (C) 2023 FIAS Frankfurt Institute for Advanced Studies, Frankfurt / Main /* Copyright (C) 2023 FIAS Frankfurt Institute for Advanced Studies, Frankfurt / Main
SPDX-License-Identifier: GPL-3.0-only SPDX-License-Identifier: GPL-3.0-only
Authors: Felix Weiglhofer [committer] */ Authors: Felix Weiglhofer [committer] */
#ifndef CBM_YAML_PROPERTY_H
#define CBM_YAML_PROPERTY_H
#pragma once #pragma once
#include "Definitions.h" #include "Definitions.h"
...@@ -82,3 +84,5 @@ namespace cbm::algo::yaml ...@@ -82,3 +84,5 @@ namespace cbm::algo::yaml
#define CBM_YAML_MERGE_PROPERTY() \ #define CBM_YAML_MERGE_PROPERTY() \
public: \ public: \
static constexpr bool MergeProperty = true static constexpr bool MergeProperty = true
#endif // CBM_YAML_PROPERTY_H
/* Copyright (C) 2023 FIAS Frankfurt Institute for Advanced Studies, Frankfurt / Main /* Copyright (C) 2023 FIAS Frankfurt Institute for Advanced Studies, Frankfurt / Main
SPDX-License-Identifier: GPL-3.0-only SPDX-License-Identifier: GPL-3.0-only
Authors: Felix Weiglhofer [committer] */ Authors: Felix Weiglhofer [committer] */
#ifndef CBM_YAML_YAML_H
#define CBM_YAML_YAML_H
#pragma once #pragma once
#include "Definitions.h" #include "Definitions.h"
...@@ -305,3 +307,5 @@ namespace cbm::algo::yaml ...@@ -305,3 +307,5 @@ namespace cbm::algo::yaml
#define CBM_YAML_INSTANTIATE(type) \ #define CBM_YAML_INSTANTIATE(type) \
template type cbm::algo::yaml::Read<type>(const YAML::Node& node); \ template type cbm::algo::yaml::Read<type>(const YAML::Node& node); \
template std::string cbm::algo::yaml::Dump::operator()<type>(const type& value, int floatPrecision); template std::string cbm::algo::yaml::Dump::operator()<type>(const type& value, int floatPrecision);
#endif // CBM_YAML_YAML_H
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment