From a7d83f19b08eb4c6f79a82fe60c2b86db13f4420 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 24 Nov 2018 13:44:03 +0100 Subject: Squashed 'waflib/' changes from 6e726eb1..5ea8f99f 5ea8f99f Improve test output spacing 0e23b29f Raise exception when test suite fails to ensure non-zero exit status d6de073b Show run time of unit tests 5b655541 Add short configure option for ultra-strict flags 4687ba6d Use gtest-like test output 258903d9 Fix failure count in test group summaries da07e738 Fix verbose tests with Python 3 git-subtree-dir: waflib git-subtree-split: 5ea8f99f6e1246079c1fe6bb590c38a53aadd40d --- ingen/Node.hpp | 106 --------------------------------------------------------- 1 file changed, 106 deletions(-) delete mode 100644 ingen/Node.hpp (limited to 'ingen/Node.hpp') diff --git a/ingen/Node.hpp b/ingen/Node.hpp deleted file mode 100644 index ca78aa3d..00000000 --- a/ingen/Node.hpp +++ /dev/null @@ -1,106 +0,0 @@ -/* - This file is part of Ingen. - Copyright 2007-2015 David Robillard - - Ingen is free software: you can redistribute it and/or modify it under the - terms of the GNU Affero General Public License as published by the Free - Software Foundation, either version 3 of the License, or 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 Affero General Public License for details. - - You should have received a copy of the GNU Affero General Public License - along with Ingen. If not, see . -*/ - -#ifndef INGEN_NODE_HPP -#define INGEN_NODE_HPP - -#include -#include -#include -#include - -#include "ingen/Resource.hpp" -#include "ingen/ingen.h" -#include "ingen/paths.hpp" -#include "ingen/types.hpp" -#include "lilv/lilv.h" - -namespace Raul { -class Path; -class Symbol; -} - -namespace Ingen { - -class Arc; -class FilePath; -class Store; -class URIs; - -/** A node in the audio graph. - * - * The key property of nodes is that all nodes have a path and a symbol, as - * well as a URI. - * - * To avoid ugly inheritance issues and the need for excessive use of - * dynamic_cast, this class contains some members which are only applicable to - * certain types of node. There is a type tag which can be used to determine - * the type of any Node. - * - * @ingroup Ingen - */ -class INGEN_API Node : public Resource -{ -public: - enum class GraphType { - GRAPH, - BLOCK, - PORT - }; - - typedef std::pair ArcsKey; - typedef std::map< ArcsKey, SPtr > Arcs; - - // Graphs only - Arcs& arcs() { return _arcs; } - const Arcs& arcs() const { return _arcs; } - - // Blocks and graphs only - virtual uint32_t num_ports() const { return 0; } - virtual Node* port(uint32_t index) const { return nullptr; } - virtual const Resource* plugin() const { return nullptr; } - - // Plugin blocks only - virtual LilvInstance* instance() { return nullptr; } - virtual bool save_state(const FilePath& dir) const { return false; } - - // All objects - virtual GraphType graph_type() const = 0; - virtual const Raul::Path& path() const = 0; - virtual const Raul::Symbol& symbol() const = 0; - virtual Node* graph_parent() const = 0; - - URI base_uri() const { - if (uri().string()[uri().string().size() - 1] == '/') { - return uri(); - } - return URI(uri().string() + '/'); - } - -protected: - friend class Store; - virtual void set_path(const Raul::Path& p) = 0; - - Node(const URIs& uris, const Raul::Path& path) - : Resource(uris, path_to_uri(path)) - {} - - Arcs _arcs; ///< Graphs only -}; - -} // namespace Ingen - -#endif // INGEN_NODE_HPP -- cgit v1.2.1