#pragma once #include "filesystem_fs.h" #include #include "vcpkg_expected.h" #include "BinaryParagraph.h" #include "vcpkg_paths.h" namespace vcpkg::Paragraphs { 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 vcpkg_paths& paths, const package_spec& spec); std::vector load_all_ports(const fs::path& ports_dir); std::map extract_port_names_and_versions(const std::vector& source_paragraphs); }