summaryrefslogtreecommitdiffstats
path: root/src/libs/client/Serializer.h
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2006-12-09 07:43:15 +0000
committerDavid Robillard <d@drobilla.net>2006-12-09 07:43:15 +0000
commitd5e8ce8127784fc67953ab3b6247e911be697cc2 (patch)
tree41ed069b23a9cab56b4443cf699b26080a590ae5 /src/libs/client/Serializer.h
parentd2d755b0db3b4779d581c7a70841609257250c12 (diff)
downloadingen-d5e8ce8127784fc67953ab3b6247e911be697cc2.tar.gz
ingen-d5e8ce8127784fc67953ab3b6247e911be697cc2.tar.bz2
ingen-d5e8ce8127784fc67953ab3b6247e911be697cc2.zip
Preliminary patch loading (just loads nodes from RDF).
git-svn-id: http://svn.drobilla.net/lad/ingen@214 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/libs/client/Serializer.h')
-rw-r--r--src/libs/client/Serializer.h24
1 files changed, 11 insertions, 13 deletions
diff --git a/src/libs/client/Serializer.h b/src/libs/client/Serializer.h
index 5fe00199..8ae18313 100644
--- a/src/libs/client/Serializer.h
+++ b/src/libs/client/Serializer.h
@@ -14,8 +14,8 @@
* 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#ifndef PATCHLIBRARIAN_H
-#define PATCHLIBRARIAN_H
+#ifndef SERIALIZER_H
+#define SERIALIZER_H
#include <map>
#include <utility>
@@ -36,6 +36,7 @@ using boost::optional;
namespace Ingen {
namespace Client {
+class PluginModel;
class PatchModel;
class NodeModel;
class PortModel;
@@ -49,20 +50,17 @@ class ModelEngineInterface;
#define NS_INGEN(x) RdfId(RdfId::RESOURCE, "http://codeson.net/ns/ingen#" x)
-/** Handles all patch saving and loading.
+/** Serializes Ingen objects (patches, nodes, etc) to RDF.
*
* \ingroup IngenClient
*/
class Serializer
{
public:
- Serializer(SharedPtr<ModelEngineInterface> engine);
- ~Serializer();
-
- void path(const string& path) { _patch_search_path = path; }
- const string& path() { return _patch_search_path; }
+ //void path(const string& path) { _patch_search_path = path; }
+ //const string& path() { return _patch_search_path; }
- string find_file(const string& filename, const string& additional_path = "");
+ //string find_file(const string& filename, const string& additional_path = "");
bool load_patch(bool merge,
const string& data_base_uri,
@@ -81,19 +79,19 @@ public:
private:
+ void serialize_plugin(SharedPtr<PluginModel> p);
+
void serialize_patch(SharedPtr<PatchModel> p, unsigned depth);
void serialize_node(SharedPtr<NodeModel> n, unsigned depth);
void serialize_port(SharedPtr<PortModel> p, unsigned depth);
RdfId path_to_node_id(const Path& path);
- RDFWriter _writer;
- string _patch_search_path;
- SharedPtr<ModelEngineInterface> _engine;
+ RDFWriter _writer;
};
} // namespace Client
} // namespace Ingen
-#endif // PATCHLIBRARIAN_H
+#endif // SERIALIZER_H