Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion SilKit/source/config/Configuration.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
//
// SPDX-License-Identifier: MIT

#include "Configuration.hpp"
#include "config/Configuration.hpp"
11 changes: 5 additions & 6 deletions SilKit/source/config/Configuration.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@

#pragma once

#include "util/StringHelpers.hpp"

#include "silkit/participant/exception.hpp"
#include "silkit/services/logging/LoggingDatatypes.hpp"

#include <algorithm>
#include <iostream>
#include <optional>
Expand All @@ -14,12 +19,6 @@
#include <vector>
#include <cctype>

#include "silkit/participant/exception.hpp"
#include "silkit/SilKitMacros.hpp"
#include "silkit/services/logging/LoggingDatatypes.hpp"

#include "StringHelpers.hpp"

namespace SilKit {
namespace Config {

Expand Down
6 changes: 3 additions & 3 deletions SilKit/source/config/ConfigurationTestUtils.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@

#pragma once

#include <memory>
#include <sstream>
#include "config/ParticipantConfiguration.hpp"

#include "silkit/services/logging/LoggingDatatypes.hpp"
#include "silkit/services/logging/string_utils.hpp"

#include "ParticipantConfiguration.hpp"
#include <memory>
#include <sstream>

namespace SilKit {
namespace Config {
Expand Down
2 changes: 1 addition & 1 deletion SilKit/source/config/ParticipantConfiguration.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
//
// SPDX-License-Identifier: MIT

#include "ParticipantConfiguration.hpp"
#include "config/ParticipantConfiguration.hpp"

#include <string>
#include <type_traits>
Expand Down
16 changes: 8 additions & 8 deletions SilKit/source/config/ParticipantConfiguration.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,7 @@

#pragma once

#include <array>
#include <chrono>
#include <iostream>
#include <optional>
#include <ostream>
#include <string>
#include <vector>
#include "config/Configuration.hpp"

#include "silkit/config/IParticipantConfiguration.hpp"
#include "silkit/services/flexray/FlexrayDatatypes.hpp"
Expand All @@ -19,7 +13,13 @@
#include "silkit/services/rpc/RpcDatatypes.hpp"
#include "silkit/services/datatypes.hpp"

#include "Configuration.hpp"
#include <array>
#include <chrono>
#include <iostream>
#include <optional>
#include <ostream>
#include <string>
#include <vector>

namespace SilKit {
namespace Config {
Expand Down
16 changes: 8 additions & 8 deletions SilKit/source/config/ParticipantConfigurationFromXImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,14 @@
//
// SPDX-License-Identifier: MIT

#include "ParticipantConfiguration.hpp"
#include "config/ParticipantConfigurationFromXImpl.hpp"

#include "config/ParticipantConfiguration.hpp"
#include "config/YamlParser.hpp"
#include "config/YamlValidator.hpp"
#include "util/FileHelpers.hpp"

#include "silkit/services/logging/string_utils.hpp"

#include <filesystem>
#include <fstream>
Expand All @@ -13,13 +20,6 @@
#include <utility>
#include <vector>

#include "FileHelpers.hpp"
#include "ParticipantConfigurationFromXImpl.hpp"
#include "silkit/services/logging/string_utils.hpp"

#include "YamlParser.hpp"
#include "YamlValidator.hpp"

#include "fmt/format.h"

namespace SilKit {
Expand Down
1 change: 1 addition & 0 deletions SilKit/source/config/ParticipantConfigurationFromXImpl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
// nor public), as it is used to implement the 'legacy' ABI functions.
// ================================================================================

#include <memory>
#include <string>

namespace SilKit {
Expand Down
13 changes: 7 additions & 6 deletions SilKit/source/config/Test_ParticipantConfiguration.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,19 @@
//
// SPDX-License-Identifier: MIT

#include "core/mock/nullconnection/NullConnectionParticipant.hpp"
#include "config/ParticipantConfiguration.hpp"
#include "config/ParticipantConfigurationFromXImpl.hpp"
#include "util/functional.hpp"

#include "silkit/services/all.hpp"

#include <chrono>
#include <cstdlib>
#include <thread>
#include <future>
#include <memory>

#include "NullConnectionParticipant.hpp"
#include "ParticipantConfiguration.hpp"
#include "ParticipantConfigurationFromXImpl.hpp"
#include "silkit/services/all.hpp"
#include "functional.hpp"

#include "gmock/gmock.h"
#include "gtest/gtest.h"

Expand Down
8 changes: 3 additions & 5 deletions SilKit/source/config/Test_Validation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
//
// SPDX-License-Identifier: MIT

#include "Validation.hpp"
#include "config/Validation.hpp"

#include "util/functional.hpp"

#include <chrono>
#include <functional>
Expand All @@ -11,10 +13,6 @@
#include "gmock/gmock.h"
#include "gtest/gtest.h"

#include "functional.hpp"

#include "Validation.hpp"

namespace {

using namespace std::chrono_literals;
Expand Down
7 changes: 3 additions & 4 deletions SilKit/source/config/Test_YamlParser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,14 @@
//
// SPDX-License-Identifier: MIT

#include "YamlParser.hpp"
#include "config/YamlParser.hpp"
#include "config/ParticipantConfiguration.hpp"

#include "ParticipantConfiguration.hpp"
#include <chrono>

#include "gmock/gmock.h"
#include "gtest/gtest.h"

#include <chrono>

namespace {

class Test_YamlParser : public testing::Test
Expand Down
9 changes: 4 additions & 5 deletions SilKit/source/config/Test_YamlValidator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,15 @@
//
// SPDX-License-Identifier: MIT

#include "YamlParser.hpp"
#include "YamlValidator.hpp"
#include "config/YamlParser.hpp"
#include "config/YamlValidator.hpp"
#include "config/ParticipantConfiguration.hpp"

#include "ParticipantConfiguration.hpp"
#include <fstream>

#include "gmock/gmock.h"
#include "gtest/gtest.h"

#include <fstream>

namespace {

class Test_YamlValidator : public testing::Test
Expand Down
2 changes: 1 addition & 1 deletion SilKit/source/config/Validation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
//
// SPDX-License-Identifier: MIT

#include "Validation.hpp"
#include "config/Validation.hpp"

#include <iostream>
#include <sstream>
Expand Down
2 changes: 1 addition & 1 deletion SilKit/source/config/Validation.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

#pragma once

#include "ParticipantConfiguration.hpp"
#include "config/ParticipantConfiguration.hpp"

namespace SilKit {
namespace Config {
Expand Down
2 changes: 1 addition & 1 deletion SilKit/source/config/YamlParser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
//
// SPDX-License-Identifier: MIT

#include "YamlParser.hpp"
#include "config/YamlParser.hpp"
11 changes: 6 additions & 5 deletions SilKit/source/config/YamlParser.hpp
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
#pragma once
// SPDX-FileCopyrightText: 2025 Vector Informatik GmbH
//
// SPDX-License-Identifier: MIT

#include <string>
#pragma once

#include "YamlReader.hpp"
#include "YamlWriter.hpp"
#include "YamlParserUtils.hpp"
#include "config/YamlReader.hpp"
#include "config/YamlWriter.hpp"
#include "config/YamlParserUtils.hpp"

#include <string>

#include "rapidyaml.hpp"

Expand Down
2 changes: 1 addition & 1 deletion SilKit/source/config/YamlParserUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
//
// SPDX-License-Identifier: MIT

#include "YamlParserUtils.hpp"
#include "config/YamlParserUtils.hpp"

#include "silkit/participant/exception.hpp"

Expand Down
4 changes: 2 additions & 2 deletions SilKit/source/config/YamlParserUtils.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@

#pragma once

#include "silkit/participant/exception.hpp"

#include <map>
#include <string>
#include <vector>

#include "silkit/participant/exception.hpp"

#include "rapidyaml.hpp"

namespace VSilKit {
Expand Down
3 changes: 2 additions & 1 deletion SilKit/source/config/YamlReader.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
// SPDX-FileCopyrightText: 2025 Vector Informatik GmbH
//
// SPDX-License-Identifier: MIT
#include "YamlReader.hpp"

#include "config/YamlReader.hpp"

namespace VSilKit {

Expand Down
12 changes: 7 additions & 5 deletions SilKit/source/config/YamlReader.hpp
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
#pragma once

// SPDX-FileCopyrightText: 2025 Vector Informatik GmbH
//
// SPDX-License-Identifier: MIT

#pragma once

#include "silkit/participant/exception.hpp"

#include "config/ParticipantConfiguration.hpp"
#include "config/YamlParserUtils.hpp"

#include <string>
#include <memory>
#include <optional>
Expand All @@ -13,9 +18,6 @@

#include "rapidyaml.hpp"

#include "ParticipantConfiguration.hpp"
#include "YamlParserUtils.hpp"

namespace VSilKit {

template <typename Impl>
Expand Down
11 changes: 4 additions & 7 deletions SilKit/source/config/YamlValidator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@
//
// SPDX-License-Identifier: MIT

#include "YamlValidator.hpp"
#include "config/YamlValidator.hpp"

#include "config/Configuration.hpp"
#include "config/YamlParser.hpp"

#include <stdexcept>
#include <set>
Expand All @@ -11,14 +14,8 @@
#include <vector>
#include <sstream>


#include "Configuration.hpp"
#include "rapidyaml.hpp"

//#include "YamlConversion.hpp"
//#include "SilKitYamlHelper.hpp" // ParserContext
#include "YamlParser.hpp" // ParserContext

namespace {

inline auto to_string(ryml::csubstr stringView) -> std::string
Expand Down
2 changes: 1 addition & 1 deletion SilKit/source/config/YamlWriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
//
// SPDX-License-Identifier: MIT

#include "YamlWriter.hpp"
#include "config/YamlWriter.hpp"

namespace VSilKit {

Expand Down
7 changes: 4 additions & 3 deletions SilKit/source/config/YamlWriter.hpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
#pragma once
// SPDX-FileCopyrightText: 2025 Vector Informatik GmbH
//
// SPDX-License-Identifier: MIT

#pragma once

#include "config/ParticipantConfiguration.hpp"

#include <string>
#include <memory>
#include <sstream>
Expand All @@ -12,8 +15,6 @@

#include "rapidyaml.hpp"

#include "ParticipantConfiguration.hpp"

namespace VSilKit {

template <typename Impl>
Expand Down
Loading