diff options
author | Roland Reichwein <mail@reichwein.it> | 2023-03-03 16:55:33 +0100 |
---|---|---|
committer | Roland Reichwein <mail@reichwein.it> | 2023-03-03 16:55:33 +0100 |
commit | 96476044387e98ee1ee7a6eb992b521bd447813c (patch) | |
tree | caffaaef53a0afeafb5b68c460b42e98e72044c4 /diff.h | |
parent | c9fa963e71258c5adfb71cf1996cd1bcb33df0bb (diff) |
Diffstat (limited to 'diff.h')
-rw-r--r-- | diff.h | 37 |
1 files changed, 0 insertions, 37 deletions
@@ -1,37 +0,0 @@ -#pragma once - -#include <string> - -#include <boost/property_tree/ptree.hpp> - -class Diff -{ -public: - Diff(); - Diff(const std::string& old_version, const std::string& new_version); - void create(const std::string& old_version, const std::string& new_version); - - Diff(const boost::property_tree::ptree& ptree); - void create(const boost::property_tree::ptree& ptree); - - Diff(const std::string& xml); - void create(const std::string& xml); - - std::string apply(const std::string& old_version) const; - - bool empty() const; - - boost::property_tree::ptree get_structure() const; - std::string get_xml() const; - -private: - // diff replaces space from m_pos0 (inclusive) to m_pos1 (exclusive) with m_data - size_t m_pos0{}; - size_t m_pos1{}; - std::string m_data; -}; - -extern "C" { - const char* diff_create(const char* old_version, const char* new_version); - const char* diff_apply(const char* old_version, const char* diff); -} |