summaryrefslogtreecommitdiffstats
path: root/include/ingen/Node.hpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-04-13 04:59:03 +0000
committerDavid Robillard <d@drobilla.net>2011-04-13 04:59:03 +0000
commit8b2f670248c92776e375bd30c0815a4ff259bb0e (patch)
tree0f130bf4f118209788d2792b06de9f8b0aefebc6 /include/ingen/Node.hpp
parent793bef06e2a98561e266a32ee767410ea44d4c67 (diff)
downloadingen-8b2f670248c92776e375bd30c0815a4ff259bb0e.tar.gz
ingen-8b2f670248c92776e375bd30c0815a4ff259bb0e.tar.bz2
ingen-8b2f670248c92776e375bd30c0815a4ff259bb0e.zip
Consistent local or installed includes for interface headers.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@3143 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'include/ingen/Node.hpp')
-rw-r--r--include/ingen/Node.hpp53
1 files changed, 53 insertions, 0 deletions
diff --git a/include/ingen/Node.hpp b/include/ingen/Node.hpp
new file mode 100644
index 00000000..c97d1643
--- /dev/null
+++ b/include/ingen/Node.hpp
@@ -0,0 +1,53 @@
+/* This file is part of Ingen.
+ * Copyright (C) 2007-2009 David Robillard <http://drobilla.net>
+ *
+ * Ingen is free software; you can redistribute it and/or modify it under the
+ * terms of the GNU General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option) any later
+ * version.
+ *
+ * Ingen is distributed in the hope that it will be useful, but WITHOUT ANY
+ * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
+ * FOR A PARTICULAR PURPOSE. See the GNU General Public License for details.
+ *
+ * You should have received a copy of the GNU General Public License along
+ * with this program; if not, write to the Free Software Foundation, Inc.,
+ * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+#ifndef INGEN_INTERFACE_NODE_HPP
+#define INGEN_INTERFACE_NODE_HPP
+
+#include <stdint.h>
+
+#include "ingen/GraphObject.hpp"
+
+namespace Ingen {
+namespace Shared {
+
+class Port;
+class Plugin;
+
+
+/** A Node (or "module") in a Patch (which is also a Node).
+ *
+ * A Node is a unit with input/output ports, a process() method, and some other
+ * things.
+ *
+ * Purely virtual (except for the destructor).
+ *
+ * \ingroup interface
+ */
+class Node : public virtual GraphObject
+{
+public:
+ virtual uint32_t num_ports() const = 0;
+ virtual Port* port(uint32_t index) const = 0;
+ virtual const Plugin* plugin() const = 0;
+};
+
+
+} // namespace Shared
+} // namespace Ingen
+
+#endif // INGEN_INTERFACE_NODE_HPP