#pragma once #include "filesystem_fs.h" #include #include "vcpkg_expected.h" #include "BinaryParagraph.h" #include "VcpkgPaths.h" #include "VersionT.h" namespace vcpkg::Paragraphs { using ParagraphDataMap = std::unordered_map; Expected get_single_paragraph(const fs::path& control_path); Expected> get_paragraphs(const fs::path& control_path); Expected parse_single_paragraph(const std::string& str); Expected> parse_paragraphs(const std::string& str); Expected try_load_port(const fs::path& control_path); Expected try_load_cached_package(const VcpkgPaths& paths, const PackageSpec& spec); std::vector load_all_ports(const fs::path& ports_dir); std::map extract_port_names_and_versions(const std::vector& source_paragraphs); }