diff options
Diffstat (limited to 'src/serialisation/Serialiser.hpp')
-rw-r--r-- | src/serialisation/Serialiser.hpp | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/src/serialisation/Serialiser.hpp b/src/serialisation/Serialiser.hpp index fc26c387..fdc7b423 100644 --- a/src/serialisation/Serialiser.hpp +++ b/src/serialisation/Serialiser.hpp @@ -56,23 +56,23 @@ public: typedef GraphObject::Properties Properties; - void to_file(SharedPtr<GraphObject> object, - const std::string& filename); + void to_file(SharedPtr<const GraphObject> object, + const std::string& filename); - void write_bundle(SharedPtr<Patch> patch, - const std::string& uri); + void write_bundle(SharedPtr<const Patch> patch, + const std::string& uri); - std::string to_string(SharedPtr<GraphObject> object, - const std::string& base_uri, - const Properties& extra_rdf); + std::string to_string(SharedPtr<const GraphObject> object, + const std::string& base_uri, + const Properties& extra_rdf); void start_to_string(const Raul::Path& root, const std::string& base_uri); - void serialise(SharedPtr<GraphObject> object) throw (std::logic_error); + void serialise(SharedPtr<const GraphObject> object) throw (std::logic_error); - void serialise_connection(const Sord::Node& parent, - SharedPtr<Connection> c) throw (std::logic_error); + void serialise_connection(const Sord::Node& parent, + SharedPtr<const Connection> c) throw (std::logic_error); std::string finish(); @@ -81,12 +81,12 @@ private: void start_to_filename(const std::string& filename); - void serialise_patch(SharedPtr<Patch> p, - const Sord::Node& id); + void serialise_patch(SharedPtr<const Patch> p, + const Sord::Node& id); - void serialise_node(SharedPtr<Node> n, - const Sord::Node& class_id, - const Sord::Node& id); + void serialise_node(SharedPtr<const Node> n, + const Sord::Node& class_id, + const Sord::Node& id); void serialise_port(const Port* p, Resource::Graph context, @@ -98,9 +98,9 @@ private: Sord::Node path_rdf_node(const Raul::Path& path); - void write_manifest(const std::string& bundle_path, - SharedPtr<Patch> patch, - const std::string& patch_symbol); + void write_manifest(const std::string& bundle_path, + SharedPtr<const Patch> patch, + const std::string& patch_symbol); Raul::Path _root_path; SharedPtr<Shared::Store> _store; |