summaryrefslogtreecommitdiffstats
path: root/src/serialisation/Serialiser.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/serialisation/Serialiser.hpp')
-rw-r--r--src/serialisation/Serialiser.hpp25
1 files changed, 8 insertions, 17 deletions
diff --git a/src/serialisation/Serialiser.hpp b/src/serialisation/Serialiser.hpp
index 7fc641f6..b1f7b5ef 100644
--- a/src/serialisation/Serialiser.hpp
+++ b/src/serialisation/Serialiser.hpp
@@ -57,23 +57,11 @@ public:
typedef Shared::GraphObject::Properties Properties;
- struct Record {
- Record(SharedPtr<Shared::GraphObject> o, const std::string& u)
- : object(o), uri(u)
- {}
+ void to_file(SharedPtr<Shared::GraphObject> object,
+ const std::string& filename);
- const SharedPtr<Shared::GraphObject> object;
- const std::string uri;
- };
-
- typedef std::list<Record> Records;
-
- void to_file(const Record& record);
-
- void write_bundle(const Record& record);
-
- void write_manifest(const std::string& bundle_uri,
- const Records& records);
+ void write_bundle(SharedPtr<Shared::GraphObject> object,
+ const std::string& filename);
std::string to_string(SharedPtr<Shared::GraphObject> object,
const std::string& base_uri,
@@ -81,7 +69,6 @@ public:
void start_to_string(const Raul::Path& root, const std::string& base_uri);
void serialise(SharedPtr<Shared::GraphObject> object) throw (std::logic_error);
- void serialise_plugin(const Shared::Plugin& p);
void serialise_connection(SharedPtr<Shared::GraphObject> parent,
SharedPtr<Shared::Connection> c) throw (std::logic_error);
@@ -107,6 +94,10 @@ private:
Sord::Node path_rdf_node(const Raul::Path& path);
+ void write_manifest(const std::string& bundle_uri,
+ SharedPtr<Shared::Patch> patch,
+ const std::string& patch_symbol);
+
Raul::Path _root_path;
SharedPtr<Shared::Store> _store;
Mode _mode;