diff options
author | Taybin Rutkin <taybin@taybin.com> | 2006-12-01 06:01:30 +0000 |
---|---|---|
committer | Taybin Rutkin <taybin@taybin.com> | 2006-12-01 06:01:30 +0000 |
commit | 927553f6b83add18d03f4bae55421743342d5704 (patch) | |
tree | d5379ff2b00477f274f28a608732375449b02672 /libs/ardour/ardour/audio_library.h | |
parent | c103132ae60973dc4ee0831a70b5c6aa1b3d9747 (diff) |
PBD::strip_whitespace_edges() returns the empty string if the passed string is
all whitespace. This allows for some mild code cleanup. It's also declared in
the PBD namespace now.
sfdb-v4 implemented. Instead of fields that go across all files, there is now
just one tag field where you can enter comma delimited tags. Searching for
tags to follow soon. I recommend trashing your current ~/.ardour2/sfdb file.
git-svn-id: svn://localhost/ardour2/trunk@1182 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/ardour/audio_library.h')
-rw-r--r-- | libs/ardour/ardour/audio_library.h | 49 |
1 files changed, 7 insertions, 42 deletions
diff --git a/libs/ardour/ardour/audio_library.h b/libs/ardour/ardour/audio_library.h index f5ac6da654..4edf6d94e4 100644 --- a/libs/ardour/ardour/audio_library.h +++ b/libs/ardour/ardour/audio_library.h @@ -1,6 +1,5 @@ /* - Copyright (C) 2003 Paul Davis - Author: Taybin Rutkin + Copyright (C) 2003-2006 Paul Davis This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -16,7 +15,6 @@ along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - $Id$ */ #ifndef __ardour_audio_library_h__ @@ -26,63 +24,30 @@ #include <map> #include <vector> -#include <sigc++/signal.h> - -#include <pbd/stateful.h> - using std::vector; using std::string; using std::map; namespace ARDOUR { -class AudioLibrary : public Stateful +class AudioLibrary { public: AudioLibrary (); ~AudioLibrary (); - static string state_node_name; - - XMLNode& get_state (void); - int set_state (const XMLNode&); - - void set_paths (vector<string> paths); - vector<string> get_paths (); - void scan_paths (); - - void add_member (string member); - void remove_member (string uri); - - void search_members_and (vector<string>& results, - const map<string,string>& fields); - void search_members_or (vector<string>& results, - const map<string,string>& fields); + void set_tags (string member, vector<string> tags); + vector<string> get_tags (string member); - void add_field (string field); - void get_fields (vector<string>& fields); - void remove_field (string field); - string get_field (string uri, string field); - void set_field (string uri, string field, string literal); - string get_label (string uri); - void set_label (string uri, string name); + void search_members_and (vector<string>& results, const vector<string> tags); void save_changes(); - - sigc::signal<void> fields_changed; private: - vector<string> sfdb_paths; - - string field_uri (string name); - - bool is_rdf_type (string uri, string type); - void remove_uri (string uri); - string src; - void initialize_db(); - void compact_vector (vector<string>& vec); + string path2uri (string); + bool safe_file_extension (string); }; |