From bb1c49dfa484db080938cff6f8f70167c9026a1c Mon Sep 17 00:00:00 2001 From: David Robillard Date: Tue, 24 Jul 2007 19:26:47 +0000 Subject: Consistently rename all C++ files .cpp/.hpp. Fix (some) inclusion guard names to not clash with other libs. git-svn-id: http://svn.drobilla.net/lad/ingen@613 a436a847-0d15-0410-975c-d299462d15a1 --- src/libs/client/Store.h | 132 ------------------------------------------------ 1 file changed, 132 deletions(-) delete mode 100644 src/libs/client/Store.h (limited to 'src/libs/client/Store.h') diff --git a/src/libs/client/Store.h b/src/libs/client/Store.h deleted file mode 100644 index e481fc2d..00000000 --- a/src/libs/client/Store.h +++ /dev/null @@ -1,132 +0,0 @@ -/* This file is part of Ingen. - * Copyright (C) 2007 Dave Robillard - * - * 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 STORE_H -#define STORE_H - -#include -#include -#include -#include -#include -#include -#include -#include -#include "interface/EngineInterface.h" -using std::string; using std::map; using std::list; -using Ingen::Shared::EngineInterface; -using Raul::Path; -using Raul::Atom; - -namespace Ingen { -namespace Client { - -class SigClientInterface; -class ObjectModel; -class PluginModel; -class PatchModel; -class NodeModel; -class PortModel; -class ConnectionModel; - - -/** Automatically manages models of objects in the engine. - * - * \ingroup IngenClient - */ -class Store : public sigc::trackable { // FIXME: is trackable necessary? -public: - Store(SharedPtr engine, SharedPtr emitter); - - SharedPtr plugin(const string& uri); - SharedPtr object(const Path& path); - - void clear(); - - size_t num_object() { return _objects.size(); } - - typedef map > Plugins; - const Plugins& plugins() const { return _plugins; } - - typedef map > Objects; - const Objects& objects() const { return _objects; } - - sigc::signal > new_object_sig; -private: - - void add_object(SharedPtr object); - SharedPtr remove_object(const Path& path); - - void add_plugin(SharedPtr plugin); - - SharedPtr connection_patch(const Path& src_port_path, const Path& dst_port_path); - - // It would be nice to integrate these somehow.. - - void add_orphan(SharedPtr orphan); - void resolve_orphans(SharedPtr parent); - - void add_connection_orphan(SharedPtr orphan); - void resolve_connection_orphans(SharedPtr port); - - void add_plugin_orphan(SharedPtr orphan); - void resolve_plugin_orphans(SharedPtr plugin); - - void add_metadata_orphan(const Path& subject, const string& predicate, const Atom& value); - void resolve_metadata_orphans(SharedPtr subject); - - // Slots for SigClientInterface signals - void destruction_event(const Path& path); - void new_plugin_event(const string& uri, const string& type_uri, const string& name); - void new_patch_event(const Path& path, uint32_t poly); - void new_node_event(const string& plugin_uri, const Path& node_path, bool is_polyphonic, uint32_t num_ports); - void new_port_event(const Path& path, const string& data_type, bool is_output); - void patch_enabled_event(const Path& path); - void patch_disabled_event(const Path& path); - void patch_cleared_event(const Path& path); - void metadata_update_event(const Path& subject_path, const string& predicate, const Atom& value); - void control_change_event(const Path& port_path, float value); - void connection_event(const Path& src_port_path, const Path& dst_port_path); - void disconnection_event(const Path& src_port_path, const Path& dst_port_path); - - SharedPtr _engine; - SharedPtr _emitter; - - - Objects _objects; ///< Map, keyed by Ingen path - Plugins _plugins; ///< Map, keyed by plugin URI - - /** Objects we've received, but depend on the existance of another unknown object. - * Keyed by the path of the depended-on object (for tolerance of orderless comms) */ - map > > _orphans; - - /** Same idea, except with plugins instead of parents. - * It's unfortunate everything doesn't just have a URI and this was the same.. ahem.. */ - map > > _plugin_orphans; - - /** Not orphans OF metadata like the above, but orphans which are metadata */ - map > > _metadata_orphans; - - /** Ditto */ - list > _connection_orphans; -}; - - -} // namespace Client -} // namespace Ingen - -#endif // STORE_H -- cgit v1.2.1