summaryrefslogtreecommitdiffstats
path: root/src/libs/serialisation
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2008-01-01 19:52:36 +0000
committerDavid Robillard <d@drobilla.net>2008-01-01 19:52:36 +0000
commite9b0dd4e63141e79350b675ae5c64d787e3f8856 (patch)
treef4bb1a53538d59122e2ed762704d173df9a41b7a /src/libs/serialisation
parent4eae343332a4403bd45d3b3035ccbb2a6fe90db9 (diff)
downloadingen-e9b0dd4e63141e79350b675ae5c64d787e3f8856.tar.gz
ingen-e9b0dd4e63141e79350b675ae5c64d787e3f8856.tar.bz2
ingen-e9b0dd4e63141e79350b675ae5c64d787e3f8856.zip
RAUL code cleanup.
git-svn-id: http://svn.drobilla.net/lad/ingen@999 a436a847-0d15-0410-975c-d299462d15a1
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;
};