|
SlHelpers
|
Parses a patch into header and files patched. More...
#include <Patch.h>
Public Types | |
| using | Header = std::vector< std::string > |
| Type for a patch header. | |
| using | Paths = std::set< std::filesystem::path > |
| Type for patched paths. | |
Public Member Functions | |
| const auto & | header () const noexcept |
| Get header of this Patch. | |
| const auto & | paths () const noexcept |
| Get paths this Patch touches. | |
Static Public Member Functions | |
| static std::optional< Patch > | create (const std::filesystem::path &path) |
Create a new Patch from file at path. | |
| static std::optional< Patch > | create (std::istream &is) |
Create a new Patch from stream is. | |
| static auto | lastError () noexcept |
| Return the last error string if any. | |
Parses a patch into header and files patched.