summaryrefslogtreecommitdiffstats
path: root/src/libs/serialisation
diff options
context:
space:
mode:
Diffstat (limited to 'src/libs/serialisation')
-rw-r--r--src/libs/serialisation/Serialiser.hpp21
1 files changed, 11 insertions, 10 deletions
diff --git a/src/libs/serialisation/Serialiser.hpp b/src/libs/serialisation/Serialiser.hpp
index e14560b7..26439bdf 100644
--- a/src/libs/serialisation/Serialiser.hpp
+++ b/src/libs/serialisation/Serialiser.hpp
@@ -56,21 +56,22 @@ class Serialiser
public:
Serialiser(Redland::World& world);
- void to_file(SharedPtr<GraphObject> object, const string& filename);
+ void to_file(SharedPtr<GraphObject> object, const std::string& filename);
- string to_string(SharedPtr<GraphObject> object,
- const string& base_uri,
- const GraphObject::Variables& extra_rdf);
+ std::string to_string(SharedPtr<GraphObject> object,
+ const std::string& base_uri,
+ const GraphObject::Variables& extra_rdf);
- void start_to_string(const string& base_uri);
- void serialise(SharedPtr<GraphObject> object) throw (std::logic_error);
- void serialise_connection(SharedPtr<Shared::Connection> c) throw (std::logic_error);
- string finish();
+ void start_to_string(const std::string& base_uri);
+ void serialise(SharedPtr<GraphObject> object) throw (std::logic_error);
+ void serialise_connection(SharedPtr<Shared::Connection> c) throw (std::logic_error);
+
+ std::string finish();
private:
enum Mode { TO_FILE, TO_STRING };
- void start_to_filename(const string& filename);
+ void start_to_filename(const std::string& filename);
void setup_prefixes();
@@ -90,7 +91,7 @@ private:
SharedPtr<GraphObject> _root_object;
Mode _mode;
NodeMap _node_map;
- string _base_uri;
+ std::string _base_uri;
Redland::World& _world;
Redland::Model* _model;
};