Remove most using declarations from header files.
authorCarl Hetherington <carl@carlh.net>
Tue, 12 May 2009 17:03:42 +0000 (17:03 +0000)
committerCarl Hetherington <carl@carlh.net>
Tue, 12 May 2009 17:03:42 +0000 (17:03 +0000)
git-svn-id: svn://localhost/ardour2/branches/3.0@5069 d708f5d6-7413-0410-9779-e7cbd77b26cf

198 files changed:
gtk2_ardour/ardour_dialog.cc
gtk2_ardour/ardour_ui.cc
gtk2_ardour/ardour_ui.h
gtk2_ardour/audio_region_view.cc
gtk2_ardour/audio_region_view.h
gtk2_ardour/audio_streamview.h
gtk2_ardour/audio_time_axis.cc
gtk2_ardour/audio_time_axis.h
gtk2_ardour/automation_line.h
gtk2_ardour/automation_selection.h
gtk2_ardour/automation_time_axis.cc
gtk2_ardour/automation_time_axis.h
gtk2_ardour/axis_view.cc
gtk2_ardour/axis_view.h
gtk2_ardour/crossfade_edit.h
gtk2_ardour/editor.h
gtk2_ardour/editor_edit_groups.cc
gtk2_ardour/editor_mixer.cc
gtk2_ardour/editor_region_list.cc
gtk2_ardour/editor_route_list.cc
gtk2_ardour/editor_selection_list.cc
gtk2_ardour/engine_dialog.h
gtk2_ardour/export_channel_selector.cc
gtk2_ardour/export_dialog.cc
gtk2_ardour/export_multiplicator.h
gtk2_ardour/export_timespan_selector.cc
gtk2_ardour/ghostregion.cc
gtk2_ardour/keyboard.h
gtk2_ardour/location_ui.cc
gtk2_ardour/main.cc
gtk2_ardour/marker.cc
gtk2_ardour/marker.h
gtk2_ardour/midi_streamview.h
gtk2_ardour/midi_time_axis.h
gtk2_ardour/mixer_strip.h
gtk2_ardour/mixer_ui.h
gtk2_ardour/option_editor.h
gtk2_ardour/opts.h
gtk2_ardour/panner2d.h
gtk2_ardour/panner_ui.cc
gtk2_ardour/panner_ui.h
gtk2_ardour/playlist_selection.h
gtk2_ardour/plugin_ui.h
gtk2_ardour/processor_box.cc
gtk2_ardour/processor_box.h
gtk2_ardour/region_gain_line.h
gtk2_ardour/region_selection.cc
gtk2_ardour/region_selection.h
gtk2_ardour/region_view.cc
gtk2_ardour/return_ui.cc
gtk2_ardour/route_processor_selection.cc
gtk2_ardour/route_time_axis.h
gtk2_ardour/route_ui.h
gtk2_ardour/selection.cc
gtk2_ardour/selection.h
gtk2_ardour/send_ui.cc
gtk2_ardour/session_import_dialog.cc
gtk2_ardour/session_import_dialog.h
gtk2_ardour/session_metadata_dialog.cc
gtk2_ardour/session_metadata_dialog.h
gtk2_ardour/splash.cc
gtk2_ardour/streamview.cc
gtk2_ardour/streamview.h
gtk2_ardour/tempo_dialog.cc
gtk2_ardour/tempo_dialog.h
gtk2_ardour/time_axis_view.cc
gtk2_ardour/time_axis_view.h
gtk2_ardour/track_selection.h
libs/ardour/ardour/audio_diskstream.h
libs/ardour/ardour/audio_library.h
libs/ardour/ardour/audio_playlist_importer.h
libs/ardour/ardour/audio_region_importer.h
libs/ardour/ardour/audio_track.h
libs/ardour/ardour/audio_track_importer.h
libs/ardour/ardour/audiofile_tagger.h
libs/ardour/ardour/audioplaylist.h
libs/ardour/ardour/audioregion.h
libs/ardour/ardour/audiosource.h
libs/ardour/ardour/automation_control.h
libs/ardour/ardour/broadcast_info.h
libs/ardour/ardour/click.h
libs/ardour/ardour/configuration_vars.h
libs/ardour/ardour/control_protocol_search_path.h
libs/ardour/ardour/cycle_timer.h
libs/ardour/ardour/diskstream.h
libs/ardour/ardour/element_import_handler.h
libs/ardour/ardour/element_importer.h
libs/ardour/ardour/export.h
libs/ardour/ardour/export_channel_configuration.h
libs/ardour/ardour/export_failed.h
libs/ardour/ardour/export_file_io.h
libs/ardour/ardour/export_filename.h
libs/ardour/ardour/export_format_base.h
libs/ardour/ardour/export_format_manager.h
libs/ardour/ardour/export_format_specification.h
libs/ardour/ardour/export_formats.h
libs/ardour/ardour/export_handler.h
libs/ardour/ardour/export_preset.h
libs/ardour/ardour/export_processor.h
libs/ardour/ardour/export_profile_manager.h
libs/ardour/ardour/export_timespan.h
libs/ardour/ardour/file_source.h
libs/ardour/ardour/filesystem_paths.h
libs/ardour/ardour/io.h
libs/ardour/ardour/io_processor.h
libs/ardour/ardour/location.h
libs/ardour/ardour/location_importer.h
libs/ardour/ardour/midi_patch_manager.h
libs/ardour/ardour/midi_playlist.h
libs/ardour/ardour/midi_region.h
libs/ardour/ardour/panner.h
libs/ardour/ardour/playlist.h
libs/ardour/ardour/playlist_factory.h
libs/ardour/ardour/plugin.h
libs/ardour/ardour/plugin_insert.h
libs/ardour/ardour/processor.h
libs/ardour/ardour/recent_sessions.h
libs/ardour/ardour/region.h
libs/ardour/ardour/region_factory.h
libs/ardour/ardour/route.h
libs/ardour/ardour/route_group.h
libs/ardour/ardour/route_group_specialized.h
libs/ardour/ardour/session.h
libs/ardour/ardour/session_directory.h
libs/ardour/ardour/session_metadata.h
libs/ardour/ardour/session_state_utils.h
libs/ardour/ardour/session_utils.h
libs/ardour/ardour/sndfile_helpers.h
libs/ardour/ardour/sndfilesource.h
libs/ardour/ardour/tape_file_matcher.h
libs/ardour/ardour/template_utils.h
libs/ardour/ardour/tempo.h
libs/ardour/ardour/tempo_map_importer.h
libs/ardour/ardour/track.h
libs/ardour/ardour/vst_plugin.h
libs/ardour/audio_library.cc
libs/ardour/audio_playlist_importer.cc
libs/ardour/audio_region_importer.cc
libs/ardour/audio_track_importer.cc
libs/ardour/audiofilesource.cc
libs/ardour/broadcast_info.cc
libs/ardour/bundle.cc
libs/ardour/chan_count.cc
libs/ardour/control_protocol_search_path.cc
libs/ardour/element_import_handler.cc
libs/ardour/element_importer.cc
libs/ardour/export_channel_configuration.cc
libs/ardour/export_file_io.cc
libs/ardour/export_filename.cc
libs/ardour/export_formats.cc
libs/ardour/export_handler.cc
libs/ardour/export_preset.cc
libs/ardour/export_profile_manager.cc
libs/ardour/file_source.cc
libs/ardour/filesystem_paths.cc
libs/ardour/filter.cc
libs/ardour/find_session.cc
libs/ardour/import.cc
libs/ardour/jack_slave.cc
libs/ardour/location_importer.cc
libs/ardour/midi_clock_slave.cc
libs/ardour/mtc_slave.cc
libs/ardour/named_selection.cc
libs/ardour/playlist_factory.cc
libs/ardour/plugin.cc
libs/ardour/session_directory.cc
libs/ardour/session_events.cc
libs/ardour/session_metadata.cc
libs/ardour/session_state_utils.cc
libs/ardour/session_time.cc
libs/ardour/session_utils.cc
libs/ardour/tape_file_matcher.cc
libs/ardour/template_utils.cc
libs/ardour/tempo_map_importer.cc
libs/gtkmm2ext/gtkmm2ext/gtk_ui.h
libs/gtkmm2ext/gtkmm2ext/textviewer.h
libs/gtkmm2ext/gtkmm2ext/window_title.h
libs/gtkmm2ext/window_title.cc
libs/midi++2/midi++/midnam_patch.h
libs/pbd/file_utils.cc
libs/pbd/filesystem.cc
libs/pbd/filesystem_paths.cc
libs/pbd/pathscanner.cc
libs/pbd/pbd/file_utils.h
libs/pbd/pbd/filesystem.h
libs/pbd/pbd/filesystem_paths.h
libs/pbd/pbd/memento_command.h
libs/pbd/pbd/pathscanner.h
libs/pbd/pbd/receiver.h
libs/pbd/pbd/search_path.h
libs/pbd/pbd/textreceiver.h
libs/pbd/pbd/transmitter.h
libs/pbd/pbd/xml++.h
libs/pbd/receiver.cc
libs/pbd/search_path.cc
libs/pbd/stateful.cc
libs/pbd/textreceiver.cc
libs/pbd/xml++.cc

index c3d238a9c0f3f33b8e3916250478c24340c174c1..7c78677d3ebde3d341d462c15388268cb7f612ab 100644 (file)
@@ -29,6 +29,7 @@
 #include "public_editor.h"
 #include "utils.h"
 
+using namespace std;
 using namespace sigc;
 using namespace Gtk;
 
index 370f1ff70150a12e87151452e5eaa6cd0fcff7fb..b8478d222ad006082f6df4821dd3eb41d10ad4a9 100644 (file)
@@ -2325,7 +2325,7 @@ ARDOUR_UI::get_session_parameters (bool should_be_new)
 
                        if (likely_new) {
 
-                               ustring existing = Glib::build_filename (session_path, session_name);
+                               Glib::ustring existing = Glib::build_filename (session_path, session_name);
                                
                                if (!ask_about_loading_existing_session (existing)) {
                                        ARDOUR_COMMAND_LINE::session_name = ""; // cancel that
index f87e007ddd287cfa15075696fbad241e10d1bc13..81e0e0da5cccf1a8547f3c9d4a95155260c7217e 100644 (file)
@@ -156,8 +156,8 @@ class ARDOUR_UI : public Gtkmm2ext::UI
        int unload_session (bool hide_stuff = false);
        void close_session();
 
-       int  save_state_canfail (string state_name = "");
-       void save_state (const string & state_name = "");
+       int  save_state_canfail (std::string state_name = "");
+       void save_state (const std::string & state_name = "");
 
        static double gain_to_slider_position (ARDOUR::gain_t g);
        static ARDOUR::gain_t slider_position_to_gain (double pos);
@@ -185,7 +185,7 @@ class ARDOUR_UI : public Gtkmm2ext::UI
        static sigc::signal<void>      SuperRapidScreenUpdate;
        static sigc::signal<void,nframes_t, bool, nframes_t> Clock;
 
-       void name_io_setup (ARDOUR::AudioEngine&, string&, ARDOUR::IO& io, bool in);
+       void name_io_setup (ARDOUR::AudioEngine&, std::string&, ARDOUR::IO& io, bool in);
 
        XMLNode* editor_settings() const;
        XMLNode* mixer_settings () const;
@@ -283,7 +283,7 @@ class ARDOUR_UI : public Gtkmm2ext::UI
        void startup ();
        void shutdown ();
 
-       int  ask_about_saving_session (const string & why);
+       int  ask_about_saving_session (const std::string & why);
 
        /* periodic safety backup, to be precise */
        gint autosave_session();
@@ -483,7 +483,7 @@ class ARDOUR_UI : public Gtkmm2ext::UI
        void recent_session_row_activated (const Gtk::TreePath& path, Gtk::TreeViewColumn* col);
 
        struct RecentSessionsSorter {
-           bool operator() (std::pair<string,string> a, std::pair<string,string> b) const {
+               bool operator() (std::pair<std::string,std::string> a, std::pair<std::string,std::string> b) const {
                    return cmp_nocase(a.first, b.first) == -1;
            }
        };
@@ -627,7 +627,7 @@ class ARDOUR_UI : public Gtkmm2ext::UI
 
        Gtk::MenuItem *cleanup_item;
 
-       void display_cleanup_results (ARDOUR::Session::cleanup_report& rep, const gchar* list_title, const string & msg);
+       void display_cleanup_results (ARDOUR::Session::cleanup_report& rep, const gchar* list_title, const std::string & msg);
        void cleanup ();
        void flush_trash ();
 
index df44b3a4aa4498482811b1b223f2dfc524a26e75..86ddbeff83a18fe29e1c35f398a3a07f79c9e6d6 100644 (file)
@@ -56,6 +56,7 @@
 
 #define MUTED_ALPHA 10
 
+using namespace std;
 using namespace sigc;
 using namespace ARDOUR;
 using namespace PBD;
index 7c40a5a4e58671e7166c75d86b60f574a3aa5f5e..33d7c2ac1e5d5860ac881d8380e1a35b8f3373bf 100644 (file)
@@ -125,8 +125,8 @@ class AudioRegionView : public RegionView
            WaveformLogScaled = 0x10,
     };
 
-    vector<ArdourCanvas::WaveView *> waves;
-    vector<ArdourCanvas::WaveView *> tmp_waves; ///< see ::create_waves()
+    std::vector<ArdourCanvas::WaveView *> waves;
+    std::vector<ArdourCanvas::WaveView *> tmp_waves; ///< see ::create_waves()
     ArdourCanvas::Polygon*           sync_mark; ///< polgyon for sync position 
     ArdourCanvas::SimpleLine*        zero_line;
     ArdourCanvas::Polygon*           fade_in_shape;
@@ -168,7 +168,7 @@ class AudioRegionView : public RegionView
 
     void color_handler ();
 
-    vector<GnomeCanvasWaveViewCache*> wave_caches;
+    std::vector<GnomeCanvasWaveViewCache*> wave_caches;
 
   private:
 
index e8a2c64a0378291bbc40cf7ae43b293d66459d86..9c1335042b19d232dc346915c8f9e1849c1f6059 100644 (file)
@@ -106,14 +106,14 @@ class AudioStreamView : public StreamView
        
        double _amplitude_above_axis;
        
-       typedef list<CrossfadeView*> CrossfadeViewList;
+       typedef std::list<CrossfadeView*> CrossfadeViewList;
        CrossfadeViewList crossfade_views;
        bool              crossfades_visible;
 
 
        std::list<sigc::connection>                  rec_data_ready_connections;
        nframes_t                                    last_rec_data_frame;
-       map<boost::shared_ptr<ARDOUR::Source>, bool> rec_data_ready_map;
+       std::map<boost::shared_ptr<ARDOUR::Source>, bool> rec_data_ready_map;
 
        bool outline_region;
 
index 6f8acc9651763572c4dba4c0b67075d35456b3d7..6ce54f788210119078c3041ccb3def1e3d0723f4 100644 (file)
@@ -69,6 +69,7 @@
 
 #include "i18n.h"
 
+using namespace std;
 using namespace ARDOUR;
 using namespace PBD;
 using namespace Gtk;
index bd2fa6b5d61d5b1466ff2c35e2aec6285dcc426d..d3fe93fdc6e1e9bcff0be998ca172bbcca87bd6a 100644 (file)
@@ -86,7 +86,7 @@ class AudioTimeAxisView : public RouteTimeAxisView
        
        void first_idle ();
 
-       XMLNode* get_child_xml_node (const string & childname);
+       XMLNode* get_child_xml_node (const std::string & childname);
 
        void set_waveform_shape (Editing::WaveformShape);
        void set_waveform_scale (Editing::WaveformScale);
index b312cbd68522e3f361d2eae7cbca8752b9ffadec..136196cd72b3b1755a1094fc71d14f80c309f311 100644 (file)
@@ -55,7 +55,7 @@ namespace Gnome {
 class AutomationLine : public sigc::trackable, public PBD::StatefulThingWithGoingAway
 {
   public:
-       AutomationLine (const string& name, TimeAxisView&, ArdourCanvas::Group&,
+       AutomationLine (const std::string& name, TimeAxisView&, ArdourCanvas::Group&,
                        boost::shared_ptr<ARDOUR::AutomationList>,
                        const Evoral::TimeConverter<double, ARDOUR::sframes_t>* converter = 0);
        virtual ~AutomationLine ();
@@ -82,7 +82,7 @@ class AutomationLine : public sigc::trackable, public PBD::StatefulThingWithGoin
        ControlPoint* nth (uint32_t);
        uint32_t npoints() const { return control_points.size(); }
 
-       string  name()    const { return _name; }
+       std::string  name()    const { return _name; }
        bool    visible() const { return _visible; }
        guint32 height()  const { return _height; }
 
@@ -106,9 +106,9 @@ class AutomationLine : public sigc::trackable, public PBD::StatefulThingWithGoin
        void show_selection();
        void hide_selection ();
 
-       string get_verbose_cursor_string (double) const;
-       string fraction_to_string (double) const;
-       double string_to_fraction (string const &) const;
+       std::string get_verbose_cursor_string (double) const;
+       std::string fraction_to_string (double) const;
+       double string_to_fraction (std::string const &) const;
        void   view_to_model_coord (double& x, double& y) const;
        void   model_to_view_coord (double& x, double& y) const;
 
@@ -132,7 +132,7 @@ class AutomationLine : public sigc::trackable, public PBD::StatefulThingWithGoin
        
   protected:
 
-       string    _name;
+       std::string    _name;
        guint32   _height;
        uint32_t  _line_color;
        
index fb19c0b5e0d3697de4a49cc3792df22a1a9f69e7..f132ea95d8c3655b4505efd3834b1c9caef3e8c0 100644 (file)
@@ -26,6 +26,6 @@ namespace ARDOUR {
        class AutomationList;
 }
 
-struct AutomationSelection : list< boost::shared_ptr<ARDOUR::AutomationList> > {};
+struct AutomationSelection : std::list<boost::shared_ptr<ARDOUR::AutomationList> > {};
 
 #endif /* __ardour_gtk_automation_selection_h__ */
index bd0da7caf812b137fb6acb1e500bcaf22a4841e3..78faf66944652dde94376979067c903a0269f686 100644 (file)
@@ -40,6 +40,7 @@
 
 #include "i18n.h"
 
+using namespace std;
 using namespace ARDOUR;
 using namespace PBD;
 using namespace Gtk;
index 6df4536ca62c22c1e28214e12da87156e28a99ba..b323d1d3bfcbfb53fed10f547a45adf6fbbde1b5 100644 (file)
@@ -20,7 +20,6 @@
 #ifndef __ardour_gtk_automation_time_axis_h__
 #define __ardour_gtk_automation_time_axis_h__
 
-#include <vector>
 #include <list>
 #include <string>
 #include <utility>
 #include "simplerect.h"
 #include "automation_controller.h"
 
-using std::vector;
-using std::list;
-using std::string;
-
 namespace ARDOUR {
        class Session;
        class Route;
@@ -67,8 +62,8 @@ class AutomationTimeAxisView : public TimeAxisView {
                                TimeAxisView& parent,
                                bool show_regions,
                                ArdourCanvas::Canvas& canvas,
-                               const string & name, /* translatable */
-                               const string & plug_name = "");
+                               const std::string & name, /* translatable */
+                               const std::string & plug_name = "");
 
        ~AutomationTimeAxisView();
        
@@ -82,8 +77,8 @@ class AutomationTimeAxisView : public TimeAxisView {
        boost::shared_ptr<AutomationLine> line() { return _line; }
 
        void set_selected_points (PointSelection&);
-       void get_selectables (nframes_t start, nframes_t end, double top, double bot, list<Selectable *>&);
-       void get_inverted_selectables (Selection&, list<Selectable*>& results);
+       void get_selectables (nframes_t start, nframes_t end, double top, double bot, std::list<Selectable *>&);
+       void get_inverted_selectables (Selection&, std::list<Selectable*>& results);
 
        void show_timestretch (nframes_t start, nframes_t end) {}
        void hide_timestretch () {}
@@ -100,7 +95,7 @@ class AutomationTimeAxisView : public TimeAxisView {
        guint32 show_at (double y, int& nth, Gtk::VBox *parent);
        void hide ();
        
-       static const string state_node_name;
+       static const std::string state_node_name;
        XMLNode* get_state_node();
        
        boost::shared_ptr<ARDOUR::AutomationControl> control()    { return _control; }
@@ -117,7 +112,7 @@ class AutomationTimeAxisView : public TimeAxisView {
        boost::shared_ptr<AutomationLine> _line;
        AutomationStreamView*             _view;
        
-       string _name;
+       std::string _name;
        bool    ignore_toggle;
 
        bool    first_call_to_set_height;
index e4632dc9ca0bd8a105927168afb0783bf3ed4d9d..8e817c435c4547240d780a9494eb8605b276fb34 100644 (file)
 #include "axis_view.h"
 #include "i18n.h"
 
+using namespace std;
 using namespace Gtk;
 using namespace Gtkmm2ext;
 
-
 list<Gdk::Color> AxisView::used_colors;
 
 AxisView::AxisView (ARDOUR::Session& sess) : _session(sess)
index 187443dab6d16ec9e6bad46afa2be7a658614e5a..9bd39eec3e1bfbe41ed334940f342839cf6b2501 100644 (file)
@@ -49,7 +49,7 @@ class AxisView : public virtual Selectable
 
        ARDOUR::Session& session() const { return _session; }
 
-       virtual string name() const = 0;
+       virtual std::string name() const = 0;
 
        virtual bool marked_for_display() const { return _marked_for_display; }
        virtual void set_marked_for_display (bool yn) {
@@ -79,7 +79,7 @@ class AxisView : public virtual Selectable
        ARDOUR::Session& _session;
        Gdk::Color _color;
 
-       static list<Gdk::Color> used_colors;
+       static std::list<Gdk::Color> used_colors;
 
        Gtk::Label name_label;
 
index 4b905a85c23ec846b818161692e44b1e26f0cc31..694625a9b5f16ad04c34ce4e0c52df3d99a3517b 100644 (file)
@@ -61,14 +61,14 @@ class CrossfadeEditor : public ArdourDialog
                    : x (a), y (b) {}
        };
        
-       struct Preset : public list<PresetPoint> {
+       struct Preset : public std::list<PresetPoint> {
            const char* name;
            const char* image_name;
 
            Preset (const char* n, const char* x) : name (n), image_name (x) {}
        };
        
-       typedef list<Preset*> Presets;
+       typedef std::list<Preset*> Presets;
        
        static Presets* fade_in_presets;
        static Presets* fade_out_presets;
@@ -108,10 +108,10 @@ class CrossfadeEditor : public ArdourDialog
        struct Half {
            ArdourCanvas::Line*     line;
            ArdourCanvas::Polygon*  shading;
-           list<Point*>            points;
+           std::list<Point*>       points;
            ARDOUR::AutomationList  normative_curve; /* 0 - 1.0, linear */
            ARDOUR::AutomationList  gain_curve;      /* 0 - 2.0, gain mapping */
-           vector<ArdourCanvas::WaveView*>  waves;
+           std::vector<ArdourCanvas::WaveView*>  waves;
            
            Half();
        };
@@ -125,8 +125,8 @@ class CrossfadeEditor : public ArdourDialog
        WhichFade current;
        
        bool point_grabbed;
-       vector<Gtk::Button*> fade_out_buttons;
-       vector<Gtk::Button*> fade_in_buttons;
+       std::vector<Gtk::Button*> fade_out_buttons;
+       std::vector<Gtk::Button*> fade_in_buttons;
 
        Gtk::VBox vpacker2;
 
index 167ad65b1f0ebd7647d2b0f29b48e6e14268053e..87e738fc7602dd8011f64cdc6f8b381399fa96e0 100644 (file)
@@ -507,7 +507,7 @@ class Editor : public PublicEditor
 
            void hide();
            void show ();
-           void set_name (const string&);
+           void set_name (const std::string&);
            void set_position (nframes64_t start, nframes64_t end = 0);
            void set_color_rgba (uint32_t);
        };
@@ -522,7 +522,7 @@ class Editor : public PublicEditor
        void hide_marker (ArdourCanvas::Item*, GdkEvent*);
        void clear_marker_display ();
        void mouse_add_new_marker (nframes64_t where, bool is_cd=false, bool is_xrun=false);
-       bool choose_new_marker_name(string &name);
+       bool choose_new_marker_name(std::string &name);
        void update_cd_marker_display ();
        void ensure_cd_marker_updated (LocationMarkers * lam, ARDOUR::Location * location);
 
@@ -546,9 +546,9 @@ class Editor : public PublicEditor
 
        /* functions to be passed to mapover_tracks(), possibly with sigc::bind()-supplied arguments */
 
-       void mapped_get_equivalent_regions (RouteTimeAxisView&, uint32_t, RegionView*, vector<RegionView*>*) const;
-       void mapped_use_new_playlist (RouteTimeAxisView&, uint32_t, vector<boost::shared_ptr<ARDOUR::Playlist> > const &);
-       void mapped_use_copy_playlist (RouteTimeAxisView&, uint32_t, vector<boost::shared_ptr<ARDOUR::Playlist> > const &);
+       void mapped_get_equivalent_regions (RouteTimeAxisView&, uint32_t, RegionView*, std::vector<RegionView*>*) const;
+       void mapped_use_new_playlist (RouteTimeAxisView&, uint32_t, std::vector<boost::shared_ptr<ARDOUR::Playlist> > const &);
+       void mapped_use_copy_playlist (RouteTimeAxisView&, uint32_t, std::vector<boost::shared_ptr<ARDOUR::Playlist> > const &);
        void mapped_clear_playlist (RouteTimeAxisView&, uint32_t);
 
        /* end */
@@ -624,8 +624,8 @@ class Editor : public PublicEditor
        
        bool track_canvas_motion (GdkEvent*);
 
-       void set_verbose_canvas_cursor (const string &, double x, double y);
-       void set_verbose_canvas_cursor_text (const string &);
+       void set_verbose_canvas_cursor (const std::string &, double x, double y);
+       void set_verbose_canvas_cursor_text (const std::string &);
        void show_verbose_canvas_cursor();
        void hide_verbose_canvas_cursor();
 
@@ -866,7 +866,7 @@ class Editor : public PublicEditor
        boost::shared_ptr<ARDOUR::Region> find_next_region (nframes64_t, ARDOUR::RegionPoint, int32_t dir, TrackViewList&, TimeAxisView ** = 0);
        nframes64_t find_next_region_boundary (nframes64_t, int32_t dir, const TrackViewList&);
 
-       vector<nframes64_t> region_boundary_cache;
+       std::vector<nframes64_t> region_boundary_cache;
        void build_region_boundary_cache ();
 
        Gtk::HBox           top_hbox;
@@ -1127,7 +1127,7 @@ class Editor : public PublicEditor
        int ensure_cursor (nframes64_t* pos);
 
        void handle_new_region (boost::weak_ptr<ARDOUR::Region>);
-       void handle_new_regions (vector<boost::weak_ptr<ARDOUR::Region> >& );
+       void handle_new_regions (std::vector<boost::weak_ptr<ARDOUR::Region> >& );
        void handle_region_removed (boost::weak_ptr<ARDOUR::Region>);
        void add_region_to_region_display (boost::shared_ptr<ARDOUR::Region>);
        void add_regions_to_region_display (std::vector<boost::weak_ptr<ARDOUR::Region> > & );
@@ -1141,7 +1141,7 @@ class Editor : public PublicEditor
        bool no_region_list_redisplay;
        void insert_into_tmp_regionlist(boost::shared_ptr<ARDOUR::Region>);
 
-       list<boost::shared_ptr<ARDOUR::Region> > tmp_region_list;
+       std::list<boost::shared_ptr<ARDOUR::Region> > tmp_region_list;
 
        void cut_copy (Editing::CutCopyOp);
        bool can_cut_copy () const;
@@ -1246,7 +1246,7 @@ class Editor : public PublicEditor
        bool zoomed_to_region;
        void temporal_zoom_session ();
        void temporal_zoom (gdouble scale);
-       void temporal_zoom_by_frame (nframes64_t start, nframes64_t end, const string & op);
+       void temporal_zoom_by_frame (nframes64_t start, nframes64_t end, const std::string & op);
        void temporal_zoom_to_frame (bool coarser, nframes64_t frame);
 
        void amplitude_zoom (gdouble scale);
@@ -1263,7 +1263,7 @@ class Editor : public PublicEditor
        void external_audio_dialog ();
        void session_import_dialog ();
 
-       int  check_whether_and_how_to_import(string, bool all_or_nothing = true);
+       int  check_whether_and_how_to_import(std::string, bool all_or_nothing = true);
        bool check_multichannel_status (const std::vector<Glib::ustring>& paths);
 
        SoundFileOmega* sfbrowser;
@@ -1273,15 +1273,15 @@ class Editor : public PublicEditor
        bool  idle_drop_paths  (std::vector<Glib::ustring> paths, nframes64_t frame, double ypos);
        void  drop_paths_part_two  (const std::vector<Glib::ustring>& paths, nframes64_t frame, double ypos);
        
-       void do_import (vector<Glib::ustring> paths, Editing::ImportDisposition, Editing::ImportMode mode, ARDOUR::SrcQuality, nframes64_t&);
-       void do_embed (vector<Glib::ustring> paths, Editing::ImportDisposition, Editing::ImportMode mode,  nframes64_t&);
+       void do_import (std::vector<Glib::ustring> paths, Editing::ImportDisposition, Editing::ImportMode mode, ARDOUR::SrcQuality, nframes64_t&);
+       void do_embed (std::vector<Glib::ustring> paths, Editing::ImportDisposition, Editing::ImportMode mode,  nframes64_t&);
 
-       int  import_sndfiles (vector<Glib::ustring> paths, Editing::ImportMode mode,  ARDOUR::SrcQuality, nframes64_t& pos,
+       int  import_sndfiles (std::vector<Glib::ustring> paths, Editing::ImportMode mode,  ARDOUR::SrcQuality, nframes64_t& pos,
                              int target_regions, int target_tracks, boost::shared_ptr<ARDOUR::Track>, bool, uint32_t total);
-       int  embed_sndfiles (vector<Glib::ustring> paths, bool multiple_files, bool& check_sample_rate, Editing::ImportMode mode, 
+       int  embed_sndfiles (std::vector<Glib::ustring> paths, bool multiple_files, bool& check_sample_rate, Editing::ImportMode mode, 
                             nframes64_t& pos, int target_regions, int target_tracks, boost::shared_ptr<ARDOUR::Track>&);
 
-       int add_sources (vector<Glib::ustring> paths, ARDOUR::SourceList& sources, nframes64_t& pos, Editing::ImportMode,
+       int add_sources (std::vector<Glib::ustring> paths, ARDOUR::SourceList& sources, nframes64_t& pos, Editing::ImportMode,
                         int target_regions, int target_tracks, boost::shared_ptr<ARDOUR::Track>&, bool add_channel_suffix);
        int finish_bringing_in_material (boost::shared_ptr<ARDOUR::Region> region, uint32_t, uint32_t,  nframes64_t& pos, Editing::ImportMode mode,
                                      boost::shared_ptr<ARDOUR::Track>& existing_track);
@@ -1324,7 +1324,7 @@ class Editor : public PublicEditor
        /* to support this ... */
 
        void import_audio (bool as_tracks);
-       void do_import (vector<Glib::ustring> paths, bool split, bool as_tracks);
+       void do_import (std::vector<Glib::ustring> paths, bool split, bool as_tracks);
 
        void move_to_start ();
        void move_to_end ();
@@ -1412,7 +1412,7 @@ class Editor : public PublicEditor
        /// Snap threshold in pixels
        double snap_threshold;
 
-       void handle_gui_changes (const string &, void *);
+       void handle_gui_changes (const std::string &, void *);
        bool ignore_gui_changes;
 
        void    hide_all_tracks (bool with_select);
@@ -1653,7 +1653,7 @@ public:
        Gtk::Menu* cd_marker_menu;
        ArdourCanvas::Item* marker_menu_item;
 
-       typedef list<Marker*> Marks;
+       typedef std::list<Marker*> Marks;
        Marks metric_marks;
 
        void remove_metric_marks ();
@@ -2074,23 +2074,23 @@ public:
        /* audio export */
 
        int  write_region_selection(RegionSelection&);
-       bool write_region (string path, boost::shared_ptr<ARDOUR::AudioRegion>);
+       bool write_region (std::string path, boost::shared_ptr<ARDOUR::AudioRegion>);
        void bounce_region_selection ();
        void bounce_range_selection (bool replace, bool enable_processing);
        void external_edit_region ();
 
        int write_audio_selection (TimeSelection&);
-       bool write_audio_range (ARDOUR::AudioPlaylist&, const ARDOUR::ChanCount& channels, list<ARDOUR::AudioRange>&);
+       bool write_audio_range (ARDOUR::AudioPlaylist&, const ARDOUR::ChanCount& channels, std::list<ARDOUR::AudioRange>&);
 
        void write_selection ();
 
        XMLNode *before; /* used in *_reversible_command */
 
-       void begin_reversible_command (string cmd_name);
+       void begin_reversible_command (std::string cmd_name);
        void commit_reversible_command ();
 
        void update_title ();   
-       void update_title_s (const string & snapshot_name);
+       void update_title_s (const std::string & snapshot_name);
 
        struct State {
            Selection* selection;
@@ -2172,8 +2172,8 @@ public:
        bool _xfade_visibility;
        
 #ifdef WITH_CMT
-       void handle_new_imageframe_time_axis_view(const string & track_name, void* src) ;
-       void handle_new_imageframe_marker_time_axis_view(const string & track_name, TimeAxisView* marked_track) ;
+       void handle_new_imageframe_time_axis_view(const std::string & track_name, void* src) ;
+       void handle_new_imageframe_marker_time_axis_view(const std::string & track_name, TimeAxisView* marked_track) ;
 
        void start_imageframe_grab(ArdourCanvas::Item*, GdkEvent*) ;
        void start_markerview_grab(ArdourCanvas::Item*, GdkEvent*) ;
@@ -2236,13 +2236,13 @@ public:
        
        /* audio filters */
 
-       void apply_filter (ARDOUR::Filter&, string cmd);
+       void apply_filter (ARDOUR::Filter&, std::string cmd);
 
        /* handling cleanup */
 
        int playlist_deletion_dialog (boost::shared_ptr<ARDOUR::Playlist>);
 
-       vector<sigc::connection> session_connections;
+       std::vector<sigc::connection> session_connections;
 
        /* tracking step changes of track height */
 
@@ -2274,7 +2274,7 @@ public:
        bool on_key_press_event (GdkEventKey*);
        bool on_key_release_event (GdkEventKey*);
 
-       void session_state_saved (string);
+       void session_state_saved (std::string);
 
        Glib::RefPtr<Gtk::Action>              undo_action;
        Glib::RefPtr<Gtk::Action>              redo_action;
index 55b264f87f6c25b42fc6f978bd87e9d4662c5fe3..a0e7372ded3b91d889490b93bd9f19e2bf0e3bf9 100644 (file)
@@ -35,6 +35,7 @@
 
 #include "i18n.h"
 
+using namespace std;
 using namespace sigc;
 using namespace ARDOUR;
 using namespace PBD;
index 1b9b2a85dfdb17a7704bce566f70a4676a7037c4..25c195dcb11f8f62cb0385daf45115219b6160ab 100644 (file)
@@ -34,6 +34,7 @@
 
 #include "i18n.h"
 
+using namespace std;
 using namespace Gtkmm2ext;
 using namespace PBD;
 
index 9d7aa86e5dbdd48d97c2f1f444a5e069599904f3..46ad668f4d30e6574352d8eeafba271b2e1a8ca9 100644 (file)
@@ -45,6 +45,7 @@
 
 #include "i18n.h"
 
+using namespace std;
 using namespace sigc;
 using namespace ARDOUR;
 using namespace PBD;
index 4765050ba5232354b2ebb7eba5b8f826d1ac3a92..00b4a3656d400327a2f6f1b03e8a8701bfa2f9f8 100644 (file)
@@ -39,6 +39,7 @@
 
 #include "i18n.h"
 
+using namespace std;
 using namespace sigc;
 using namespace ARDOUR;
 using namespace PBD;
index 7f818ebe2be30f2c654178b868482f6cbdcec65f..fab22e8f8917a5dbdd43443a5404c1aafd20a8d9 100644 (file)
@@ -38,6 +38,7 @@
 
 #include "i18n.h"
 
+using namespace std;
 using namespace sigc;
 using namespace ARDOUR;
 using namespace PBD;
index d9741e3765f0116e418ae1d1e9f2a56c608f2c5e..a6ebf1e8e65fc64fd1bde87faa9b5646189b7511 100644 (file)
@@ -83,7 +83,7 @@ class EngineControl : public Gtk::VBox {
 
        std::map<std::string,std::vector<std::string> > devices;
        std::vector<std::string> backend_devs;
-       void enumerate_devices (const string& driver);
+       void enumerate_devices (const std::string& driver);
 
 #ifdef __APPLE__
        std::vector<std::string> enumerate_coreaudio_devices ();
index 5700aaa92921134dd8f7d9d078424dcdcf0e0573..2f66e58fe5fd0ac694d2899856b5994def0712c3 100644 (file)
@@ -37,6 +37,8 @@
 
 #include "i18n.h"
 
+using namespace std;
+using namespace Glib;
 using namespace ARDOUR;
 using namespace PBD;
 
index a6a6b8dfcc2796d16ed857da17e21810deb34dd4..fd39aca3355e105b1303a408cfa48a155bfcf17b 100644 (file)
@@ -234,7 +234,7 @@ ExportDialog::update_warnings ()
        if (!warnings->conflicting_filenames.empty()) {
                list_files_hbox.show ();
                for (std::list<Glib::ustring>::iterator it = warnings->conflicting_filenames.begin(); it != warnings->conflicting_filenames.end(); ++it) {
-                       ustring::size_type pos = it->find_last_of ("/");
+                       Glib::ustring::size_type pos = it->find_last_of ("/");
                        list_files_string += "\n" + it->substr (0, pos + 1) + "<b>" + it->substr (pos + 1) + "</b>";
                }
        }
index 60c6914bf5b076f6ae91d012d34dd98c59d95ea5..679c6bc1d31f15cc1e6a880b0e99a3ef0e0a9778 100644 (file)
@@ -35,7 +35,6 @@
 #include <gtkmm.h>
 #include <boost/shared_ptr.hpp>
 
-using std::list;
 using ARDOUR::ExportProfileManager;
 
 class ExportMultiplicator : public Gtk::EventBox {
index 2ed01715fd59f1b8e7308be1069201c52a48237a..e716e47be1b8f32f189dacde3ad8723f2f45ced6 100644 (file)
@@ -36,6 +36,7 @@
 
 #include "i18n.h"
 
+using namespace Glib;
 using namespace ARDOUR;
 using namespace PBD;
 
index 27de6560893bb9cfdda6f49fd229172eb8d805b1..cfd9d3ea438e1f7e4ad880cc634410638ecd74e1 100644 (file)
@@ -29,6 +29,7 @@
 #include "simplerect.h"
 #include "waveview.h"
 
+using namespace std;
 using namespace Editing;
 using namespace ArdourCanvas;
 using namespace ARDOUR;
index a10fdbd6ba9799f9d530586d7ddabc7d94a322e1..29052993348cebf7f35e41765bf8d685943a5350 100644 (file)
@@ -33,8 +33,6 @@
 
 #include "selection.h"
 
-using std::string;
-
 class Keyboard : public sigc::trackable, PBD::Stateful
 {
   public:
index 64c551f0d1125dcba33476fe525c34841b474a21..31c9da1552a93a63e1cd0abd6e2c24ac1f0f8731 100644 (file)
@@ -38,6 +38,7 @@
 
 #include "i18n.h"
 
+using namespace std;
 using namespace ARDOUR;
 using namespace PBD;
 using namespace Gtk;
index 0a95b9a94b6074e707b6369a7c044febced0c427..7c57b7535b1c548696ae5c423705585ee16c17a2 100644 (file)
@@ -50,6 +50,7 @@
 
 #include "i18n.h"
 
+using namespace std;
 using namespace Gtk;
 using namespace ARDOUR_COMMAND_LINE;
 using namespace ARDOUR;
index 7e0a846ec96ba27043d7db0664796f23241cadde..9bc475214ac24f2709942ef92a6f2f6e5135575f 100644 (file)
@@ -29,6 +29,7 @@
 
 #include "i18n.h"
 
+using namespace std;
 using namespace ARDOUR;
 
 Marker::Marker (PublicEditor& ed, ArdourCanvas::Group& parent, guint32 rgba, const string& annotation, 
index 8a82a902711ad2f95d7a5a8d1baeb8fcd28a1839..d1bc12561f63086ce9e7706bc7580c9b0d8706bb 100644 (file)
@@ -50,7 +50,7 @@ class Marker : public PBD::Destructible
        };
 
 
-       Marker (PublicEditor& editor, ArdourCanvas::Group& parent, guint32 rgba, const string& text, Type, 
+       Marker (PublicEditor& editor, ArdourCanvas::Group& parent, guint32 rgba, const std::string& text, Type, 
                nframes_t frame = 0, bool handle_events = true);
 
        virtual ~Marker ();
@@ -63,7 +63,7 @@ class Marker : public PBD::Destructible
        void set_line_vpos (double y_origin, double height);
 
        void set_position (nframes_t);
-       void set_name (const string&);
+       void set_name (const std::string&);
        void set_color_rgba (uint32_t rgba);
        
        nframes64_t position() const { return frame_position; }
@@ -98,7 +98,7 @@ class Marker : public PBD::Destructible
 class TempoMarker : public Marker
 {
   public:
-        TempoMarker (PublicEditor& editor, ArdourCanvas::Group& parent, guint32 rgba, const string& text, ARDOUR::TempoSection&);
+        TempoMarker (PublicEditor& editor, ArdourCanvas::Group& parent, guint32 rgba, const std::string& text, ARDOUR::TempoSection&);
        ~TempoMarker ();
 
        ARDOUR::TempoSection& tempo() const { return _tempo; }
@@ -110,7 +110,7 @@ class TempoMarker : public Marker
 class MeterMarker : public Marker
 {
   public:
-        MeterMarker (PublicEditor& editor, ArdourCanvas::Group& parent, guint32 rgba, const string& text, ARDOUR::MeterSection&);
+        MeterMarker (PublicEditor& editor, ArdourCanvas::Group& parent, guint32 rgba, const std::string& text, ARDOUR::MeterSection&);
        ~MeterMarker ();
 
        ARDOUR::MeterSection& meter() const { return _meter; }
index 2780cfa3da3e1473a8645ee059d675dce2b99737..a844d8d5056442f0cd64c7136eae1971e8bae25b 100644 (file)
@@ -58,8 +58,8 @@ class MidiStreamView : public StreamView
        ~MidiStreamView ();
 
        void set_selected_regionviews (RegionSelection&);
-       void get_selectables (jack_nframes_t start, jack_nframes_t end, list<Selectable* >&);
-       void get_inverted_selectables (Selection&, list<Selectable* >& results);
+       void get_selectables (jack_nframes_t start, jack_nframes_t end, std::list<Selectable* >&);
+       void get_inverted_selectables (Selection&, std::list<Selectable* >& results);
 
        enum VisibleNoteRange {
                FullRange,
index 228e05176b71c3219ebba2055af93126a72df1d0..acf9c32ea55f12478703e196259cf111826e466f 100644 (file)
@@ -82,12 +82,12 @@ class MidiTimeAxisView : public RouteTimeAxisView
                return _channel_selector.mode_changed; 
        }
        
-       sigc::signal<void, string, string>& signal_midi_patch_settings_changed() {
+       sigc::signal<void, std::string, std::string>& signal_midi_patch_settings_changed() {
                return _midi_patch_settings_changed;
        }
        
   private:
-       sigc::signal<void, string, string>  _midi_patch_settings_changed;
+       sigc::signal<void, std::string, std::string>  _midi_patch_settings_changed;
                        
        void model_changed();
        void custom_device_mode_changed();
index fdd56921111d76e959f3a5b4e20b5b4b98473848..e2fa2e52d56b2539272ace55eb2bbb5db4847f1e 100644 (file)
@@ -231,7 +231,7 @@ class MixerStrip : public RouteUI, public Gtk::EventBox
 
        Gtk::Style *passthru_style;
 
-       void route_gui_changed (string, void*);
+       void route_gui_changed (std::string, void*);
        void show_route_color ();
        void show_passthru_color ();
 
index b445cc99db83847148d3940199b7f7a521564553..932f828404c9842e9f694804aace1ad128a33371 100644 (file)
@@ -115,7 +115,7 @@ class Mixer_UI : public Gtk::Window
 
        void pane_allocation_handler (Gtk::Allocation&, Gtk::Paned*);
        
-       list<MixerStrip *> strips;
+       std::list<MixerStrip *> strips;
 
        bool strip_scroller_button_release (GdkEventButton*);
 
index 5fc0dd02b0cd879e2f782cdd8291248bc342f811..802a088e20d8834b37bd229411b6bccd956fe1b0 100644 (file)
@@ -189,8 +189,8 @@ class OptionEditor : public ArdourDialog
        void setup_click_editor ();
        void clear_click_editor ();
 
-       void click_chosen (const string & paths);
-       void click_emphasis_chosen (const string & paths);
+       void click_chosen (const std::string & paths);
+       void click_emphasis_chosen (const std::string & paths);
 
        void click_browse_clicked ();
        void click_emphasis_browse_clicked ();
index 08e38be88d5a35ced96c29d0cee67021c1be9ddf..71cd687b8bbe460d150dee23b5d24058cda448ca 100644 (file)
 #include <string>
 #include <glibmm/ustring.h>
 
-using std::string;
-
 namespace ARDOUR_COMMAND_LINE {
 
-extern string session_name;
+extern std::string session_name;
 extern bool   show_key_actions;
 extern bool   no_splash;
 extern bool   just_version;
-extern string jack_client_name;
+extern std::string jack_client_name;
 extern bool   use_vst;
 extern bool   new_session;
 extern char*  curvetest_file;
 extern bool   try_hw_optimization;
 extern bool   use_gtk_theme;
-extern string keybindings_path;
+extern std::string keybindings_path;
 extern Glib::ustring menus_file;
 extern bool   finder_invoked_ardour;
 
index 1abac7fe5a6cc72b2b4ca12ef3db50e61444b66f..e70f9faea546bde1c0e4ad7a379c0cd07eb09051 100644 (file)
@@ -22,7 +22,6 @@
 
 #include <sys/types.h>
 #include <map>
-#include <string>
 #include <vector>
 
 #include <glibmm/refptr.h>
@@ -33,9 +32,6 @@
 #include <gtkmm/spinbutton.h>
 #include <gtkmm/adjustment.h>
 
-using std::map;
-using std::string;
-
 namespace ARDOUR {
        class Panner;
 }
index 4777c82479f77a6ef5bbdb7ffa5126866eec1fa0..c8c933348bc988934a2141df46b8347d48829f76 100644 (file)
@@ -39,6 +39,7 @@
 
 #include "i18n.h"
 
+using namespace std;
 using namespace ARDOUR;
 using namespace PBD;
 using namespace Gtkmm2ext;
index 3fb4632d13d0c366ae0d1c2d57078b05c5577274..fa0b7ce2e8896c512df9ae354bf8f582fcfbadc6 100644 (file)
@@ -70,7 +70,7 @@ class PannerUI : public Gtk::HBox
 
        void effective_pan_display ();
 
-       void set_meter_strip_name (string name);
+       void set_meter_strip_name (std::string name);
        boost::shared_ptr<PBD::Controllable> get_controllable();
 
   private:
index 14366418e69af04852bbd23152063cbb7ac86a35..a29be49793f39b9ae55137f5de25a72e66988b2b 100644 (file)
@@ -27,6 +27,6 @@ namespace ARDOUR {
        class Playlist;
 }
 
-struct PlaylistSelection : list<boost::shared_ptr<ARDOUR::Playlist> > {};
+struct PlaylistSelection : std::list<boost::shared_ptr<ARDOUR::Playlist> > {};
 
 #endif /* __ardour_gtk_playlist_selection_h__ */
index 1e0498212cde6cda851689c4ee2b99b0c1e865cc..4ad7c213ac599acc21dc0e321181b8f8c2eb551d 100644 (file)
@@ -178,9 +178,9 @@ class GenericPluginUI : public PlugUIBase, public Gtk::VBox
            /* input */
            
            Gtk::ComboBoxText*        combo;
-           std::map<string, float>*  combo_map;
+           std::map<std::string, float>*  combo_map;
            Gtk::ToggleButton*        button;
-               boost::shared_ptr<AutomationController>  controller;
+           boost::shared_ptr<AutomationController>  controller;
            Gtkmm2ext::ClickBox*       clickbox;
            Gtk::Label         label;
            bool               logarithmic;
@@ -207,7 +207,7 @@ class GenericPluginUI : public PlugUIBase, public Gtk::VBox
        
        void build ();
        ControlUI* build_control_ui (guint32 port_index, boost::shared_ptr<ARDOUR::AutomationControl>);
-       std::vector<string> setup_scale_values(guint32 port_index, ControlUI* cui);
+       std::vector<std::string> setup_scale_values(guint32 port_index, ControlUI* cui);
        void parameter_changed (ControlUI* cui);
        void toggle_parameter_changed (ControlUI* cui);
        void update_control_display (ControlUI* cui);
index 3c2de7edd743f5cecfade5005bdebf9a1bb7c572..f9b4cc0e6ecd7813e52e6c04ce6697620ff2499f 100644 (file)
@@ -74,6 +74,7 @@
 class AUPluginUI;
 #endif
 
+using namespace std;
 using namespace sigc;
 using namespace ARDOUR;
 using namespace PBD;
index 37c442d2833ea530b12a798c83633dd042868fc8..3286c14e6cb6755cb09d86aee01b020a0d3f4489 100644 (file)
@@ -141,7 +141,7 @@ class ProcessorBox : public Gtk::HBox, public PluginInterestedObject
        Gtk::Menu *processor_menu;
        gint processor_menu_map_handler (GdkEventAny *ev);
        Gtk::Menu * build_processor_menu ();
-       void build_processor_tooltip (Gtk::EventBox&, string);
+       void build_processor_tooltip (Gtk::EventBox&, std::string);
        void show_processor_menu (gint arg);
 
        void choose_send ();
@@ -162,7 +162,7 @@ class ProcessorBox : public Gtk::HBox, public PluginInterestedObject
        void row_deleted (const Gtk::TreeModel::Path& path);
        void show_processor_active (boost::weak_ptr<ARDOUR::Processor>);
        void show_processor_name (boost::weak_ptr<ARDOUR::Processor>);
-       string processor_name (boost::weak_ptr<ARDOUR::Processor>);
+       std::string processor_name (boost::weak_ptr<ARDOUR::Processor>);
 
        void remove_processor_gui (boost::shared_ptr<ARDOUR::Processor>);
 
@@ -185,7 +185,7 @@ class ProcessorBox : public Gtk::HBox, public PluginInterestedObject
        void clear_processors ();
        void rename_processors ();
 
-       typedef vector<boost::shared_ptr<ARDOUR::Processor> > ProcSelection;
+       typedef std::vector<boost::shared_ptr<ARDOUR::Processor> > ProcSelection;
 
        void for_selected_processors (void (ProcessorBox::*pmf)(boost::shared_ptr<ARDOUR::Processor>));
        void get_selected_processors (ProcSelection&);
index dc24e6a5a66e2889739c7cbd86ec6baea8aa4196..7950c9b0e7b58248b1a0a73b65b4f65c52f588d8 100644 (file)
@@ -35,7 +35,7 @@ class AudioRegionView;
 class AudioRegionGainLine : public AutomationLine
 {
   public:
-  AudioRegionGainLine (const string & name, ARDOUR::Session&, AudioRegionView&, ArdourCanvas::Group& parent, boost::shared_ptr<ARDOUR::AutomationList>);
+       AudioRegionGainLine (const std::string & name, ARDOUR::Session&, AudioRegionView&, ArdourCanvas::Group& parent, boost::shared_ptr<ARDOUR::AutomationList>);
        
        void start_drag (ControlPoint*, nframes_t x, float fraction);
        void end_drag (ControlPoint*);
index ac8a783a419ba8b061f5d8a1cf9c7179ab4cf42a..13e2bdb7f4a92aead3b291da08d1c8b60d6e5cef 100644 (file)
@@ -24,6 +24,7 @@
 #include "region_selection.h"
 #include "time_axis_view.h"
 
+using namespace std;
 using namespace ARDOUR;
 using namespace PBD;
 using namespace sigc;
index ee0cdab008258f5ff9679a8d7748c8560f30d470..305fc69afd22cc0123fe78875b315e1b8c905563 100644 (file)
@@ -24,9 +24,6 @@
 #include <sigc++/signal.h>
 #include "ardour/types.h"
 
-using std::list;
-using std::set;
-
 class RegionView;
 class TimeAxisView;
 
@@ -71,7 +68,7 @@ class RegionSelection : public std::list<RegionView*>, public sigc::trackable
        nframes_t _current_start; ///< start position for the selection
        nframes_t _current_end; ///< end position for the selection
 
-       list<RegionView *> _bylayer; ///< list of regions sorted by layer
+       std::list<RegionView *> _bylayer; ///< list of regions sorted by layer
 };
 
 #endif /* __ardour_gtk_region_selection_h__ */
index 7efde0ddf2c0c2a11b6fba329d6a95118200e89a..0ae2db4463fdcbee7108d3110d34f852bcb0a189 100644 (file)
@@ -49,6 +49,7 @@
 
 #include "i18n.h"
 
+using namespace std;
 using namespace sigc;
 using namespace ARDOUR;
 using namespace PBD;
index 5423415bd2c618a14c9a9bbb6efd218124d70ae3..ac06529d38aea4812f8647defc1723b45905714e 100644 (file)
@@ -28,6 +28,7 @@
 #include "ardour_ui.h"
 #include "gui_thread.h"
 
+using namespace std;
 using namespace ARDOUR;
 using namespace PBD;
 
@@ -114,8 +115,8 @@ ReturnUIWindow::ReturnUIWindow (boost::shared_ptr<Return> s, Session& ss)
                        mem_fun (*this, &ReturnUIWindow::return_going_away));
 
        signal_delete_event().connect (bind (
-                       ptr_fun (just_hide_it),
-                       reinterpret_cast<Window *> (this)));
+                                              sigc::ptr_fun (just_hide_it),
+                                              reinterpret_cast<Window *> (this)));
 }
 
 ReturnUIWindow::~ReturnUIWindow ()
index 0b02a2837ab86bbad377aa1250a8fc11e7d13b4f..243a32b0c51c54981de4fe2ff4078d30fc2fd5c6 100644 (file)
@@ -29,6 +29,7 @@
 
 #include "i18n.h"
 
+using namespace std;
 using namespace ARDOUR;
 using namespace PBD;
 using namespace sigc;
index 9c386bafa3656dd394042015f96cb9aa0eb4b01d..cc0e46548e3cf5338c965f8fbe5f8c3a922f1ff8 100644 (file)
@@ -83,8 +83,8 @@ public:
        void selection_click (GdkEventButton*);
        void set_selected_points (PointSelection&);
        void set_selected_regionviews (RegionSelection&);
-       void get_selectables (nframes_t start, nframes_t end, double top, double bot, list<Selectable *>&);
-       void get_inverted_selectables (Selection&, list<Selectable*>&);
+       void get_selectables (nframes_t start, nframes_t end, double top, double bot, std::list<Selectable *>&);
+       void get_inverted_selectables (Selection&, std::list<Selectable*>&);
        bool show_automation(Evoral::Parameter param);
        void set_layer_display (LayerDisplay d);
        LayerDisplay layer_display () const;
@@ -99,12 +99,12 @@ public:
        TimeAxisView::Children get_child_list();
 
        /* The editor calls these when mapping an operation across multiple tracks */
-       void use_new_playlist (bool prompt, vector<boost::shared_ptr<ARDOUR::Playlist> > const &);
-       void use_copy_playlist (bool prompt, vector<boost::shared_ptr<ARDOUR::Playlist> > const &);
+       void use_new_playlist (bool prompt, std::vector<boost::shared_ptr<ARDOUR::Playlist> > const &);
+       void use_copy_playlist (bool prompt, std::vector<boost::shared_ptr<ARDOUR::Playlist> > const &);
        void clear_playlist ();
 
        /* group playlist name resolving */
-       std::string resolve_new_group_playlist_name(std::string &, vector<boost::shared_ptr<ARDOUR::Playlist> > const &);
+       std::string resolve_new_group_playlist_name(std::string &, std::vector<boost::shared_ptr<ARDOUR::Playlist> > const &);
 
        
        void build_playlist_menu (Gtk::Menu *);
@@ -118,7 +118,7 @@ public:
        /* This is a bit nasty to expose :/ */
        struct RouteAutomationNode {
                Evoral::Parameter                         param;
-           Gtk::CheckMenuItem*                       menu_item;
+               Gtk::CheckMenuItem*                       menu_item;
                boost::shared_ptr<AutomationTimeAxisView> track;
            
                RouteAutomationNode (Evoral::Parameter par, Gtk::CheckMenuItem* mi, boost::shared_ptr<AutomationTimeAxisView> tr)
@@ -131,12 +131,12 @@ public:
 
        XMLNode* get_automation_child_xml_node (Evoral::Parameter param) { return RouteUI::get_automation_child_xml_node (param); }
        
-       typedef map<Evoral::Parameter, RouteAutomationNode*> AutomationTracks;
+       typedef std::map<Evoral::Parameter, RouteAutomationNode*> AutomationTracks;
        AutomationTracks automation_tracks() { return _automation_tracks; }
 
        boost::shared_ptr<AutomationTimeAxisView> automation_child(Evoral::Parameter param);
        
-       string              name() const;
+       std::string         name() const;
        StreamView*         view() const { return _view; }
        ARDOUR::RouteGroup* edit_group() const;
        boost::shared_ptr<ARDOUR::Playlist> playlist() const;
@@ -157,9 +157,9 @@ protected:
 
        struct ProcessorAutomationNode {
                Evoral::Parameter                         what;
-           Gtk::CheckMenuItem*                       menu_item;
+               Gtk::CheckMenuItem*                       menu_item;
                boost::shared_ptr<AutomationTimeAxisView> view;
-           RouteTimeAxisView&                        parent;
+               RouteTimeAxisView&                        parent;
 
            ProcessorAutomationNode (Evoral::Parameter w, Gtk::CheckMenuItem* mitem, RouteTimeAxisView& p)
                    : what (w), menu_item (mitem), parent (p) {}
@@ -171,7 +171,7 @@ protected:
            boost::shared_ptr<ARDOUR::Processor> processor;
            bool                                 valid;
            Gtk::Menu*                           menu;
-           vector<ProcessorAutomationNode*>     lines;
+           std::vector<ProcessorAutomationNode*>     lines;
 
            ProcessorAutomationInfo (boost::shared_ptr<ARDOUR::Processor> i) 
                    : processor (i), valid (true), menu (0) {}
@@ -302,9 +302,9 @@ protected:
        void _set_track_mode (ARDOUR::Track* track, ARDOUR::TrackMode mode, Gtk::RadioMenuItem* reset_item, Gtk::RadioMenuItem* reset_item_2);
        void track_mode_changed ();
 
-       list<ProcessorAutomationInfo*> processor_automation;
+       std::list<ProcessorAutomationInfo*> processor_automation;
 
-       typedef vector<boost::shared_ptr<AutomationLine> > ProcessorAutomationCurves;
+       typedef std::vector<boost::shared_ptr<AutomationLine> > ProcessorAutomationCurves;
        ProcessorAutomationCurves processor_automation_curves;
        
        // Set from XML so context menu automation buttons can be correctly initialized
@@ -323,9 +323,9 @@ protected:
        XMLNode* underlay_xml_node;
        bool set_underlay_state();
 
-       typedef list<StreamView*> UnderlayList;
+       typedef std::list<StreamView*> UnderlayList;
        UnderlayList _underlay_streams;
-       typedef list<RouteTimeAxisView*> UnderlayMirrorList;
+       typedef std::list<RouteTimeAxisView*> UnderlayMirrorList;
        UnderlayMirrorList _underlay_mirrors;
 };
 
index 320dab9dae7671aa4a44a64df59eb8944cf58af7..4ec6fd3ce81f9cb0c4ca3ff1e106eafcd67bf178 100644 (file)
@@ -65,7 +65,7 @@ class RouteUI : public virtual AxisView
        
        boost::shared_ptr<ARDOUR::Diskstream> get_diskstream() const;
 
-       string name() const;
+       std::string name() const;
 
        // protected: XXX sigh this should be here
 
@@ -83,8 +83,8 @@ class RouteUI : public virtual AxisView
        BindableToggleButton* solo_button;
        BindableToggleButton* rec_enable_button;
        
-       virtual string solo_button_name () const { return "SoloButton"; }
-       virtual string safe_solo_button_name () const { return "SafeSoloButton"; }
+       virtual std::string solo_button_name () const { return "SoloButton"; }
+       virtual std::string safe_solo_button_name () const { return "SafeSoloButton"; }
        
        Gtk::Menu* mute_menu;
        Gtk::Menu* solo_menu;
@@ -164,8 +164,8 @@ class RouteUI : public virtual AxisView
 
        void set_remote_control_id (uint32_t id, Gtk::CheckMenuItem* item);
 
-       void reversibly_apply_route_boolean (string name, void (ARDOUR::Route::*func)(bool, void*), bool, void *);
-       void reversibly_apply_track_boolean (string name, void (ARDOUR::Track::*func)(bool, void*), bool, void *);
+       void reversibly_apply_route_boolean (std::string name, void (ARDOUR::Route::*func)(bool, void*), bool, void *);
+       void reversibly_apply_track_boolean (std::string name, void (ARDOUR::Track::*func)(bool, void*), bool, void *);
 
        void adjust_latency ();
        void save_as_template ();
index da0047eefc36da4949f83f81141aeee12817b148..92546e5ef45186a4cc243b00f5f230d8fbac1404 100644 (file)
@@ -33,6 +33,7 @@
 
 #include "i18n.h"
 
+using namespace std;
 using namespace ARDOUR;
 using namespace PBD;
 using namespace sigc;
index 1e2257fc15fc934df2bbde8af2aac410e471a33e..f0af31eafef08c326eff0b8849035b485c38f040 100644 (file)
@@ -148,7 +148,7 @@ class Selection : public sigc::trackable
        void remove (boost::shared_ptr<ARDOUR::AutomationList>);
        void remove (boost::shared_ptr<ARDOUR::Playlist>);
        void remove (const std::list<boost::shared_ptr<ARDOUR::Playlist> >&);
-       void remove (const list<Selectable*>&);
+       void remove (const std::list<Selectable*>&);
        void remove (Marker*);
 
        void replace (uint32_t time_index, nframes_t start, nframes_t end);
index 664092d39f04a8e8efa01eb9e88e9a5e892de0fa..672d5f3d20b7142fdf3e6b06e8680b7ab84d0bd7 100644 (file)
@@ -28,6 +28,7 @@
 #include "ardour_ui.h"
 #include "gui_thread.h"
 
+using namespace std;
 using namespace ARDOUR;
 using namespace PBD;
 
@@ -132,8 +133,8 @@ SendUIWindow::SendUIWindow (boost::shared_ptr<Send> s, Session& ss)
                        mem_fun (*this, &SendUIWindow::send_going_away));
 
        signal_delete_event().connect (bind (
-                       ptr_fun (just_hide_it),
-                       reinterpret_cast<Window *> (this)));
+                                              sigc::ptr_fun (just_hide_it),
+                                              reinterpret_cast<Window *> (this)));
 }
 
 SendUIWindow::~SendUIWindow ()
index 2d1f6a100776c3ac9b6469ab49a6ca57eff3d124..d79f977b3e4827c84127ec0592ef0b1e760907bb 100644 (file)
@@ -34,6 +34,7 @@
 #include "prompter.h"
 #include "i18n.h"
 
+using namespace std;
 using namespace ARDOUR;
 
 SessionImportDialog::SessionImportDialog (ARDOUR::Session & target) :
index cf1f5b0a4ec246ce5c9156293e8f75f80f645534..74da13855a380bdd4eeb48a49b06efa931ba15be 100644 (file)
@@ -34,8 +34,6 @@
 
 #include "ardour_dialog.h"
 
-using std::string;
-
 namespace ARDOUR {
        class Session;
 }
@@ -56,16 +54,16 @@ class SessionImportDialog : public ArdourDialog
        
   private:
 
-       void load_session (const string& filename);
+       void load_session (const std::string& filename);
        void fill_list ();
        void browse ();
        void do_merge ();
        void end_dialog ();
-       void update (string path);
+       void update (std::string path);
        void show_info(const Gtk::TreeModel::Path& path, Gtk::TreeViewColumn* column);
        
-       std::pair<bool, string> open_rename_dialog (string text, string name);
-       bool open_prompt_dialog (string text);
+       std::pair<bool, std::string> open_rename_dialog (std::string text, std::string name);
+       bool open_prompt_dialog (std::string text);
 
        // Data
        HandlerList        handlers;
index 6038b8b5ae6653d8bf7d03535ff12f2583fccb5f..18d5eaf1aa01d140db56e1c12b8946356823e99f 100644 (file)
@@ -30,6 +30,9 @@
 #include "ardour/session_directory.h"
 #include "ardour/session_utils.h"
 
+using namespace std;
+using namespace Glib;
+
 #define CALL_MEMBER_FN(object,ptrToMember)  ((object).*(ptrToMember))
 
 /*** MetadataField ***/
index e06dbe010cb3dc923a2e9c0db6ba1783a9fa0af3..defd54061887e008c26c820ed08635f0d13f8e55 100644 (file)
 
 #include "ardour/session_metadata.h"
 
-using std::string;
-using Glib::ustring;
-
 class MetadataField;
 typedef boost::shared_ptr<MetadataField> MetadataPtr; 
 
 /// Wraps a metadata field to be used in a GUI
 class MetadataField {
   public:
-       MetadataField (ustring const & field_name);
+       MetadataField (Glib::ustring const & field_name);
        virtual ~MetadataField();
        virtual MetadataPtr copy () = 0;
        
        virtual void save_data (ARDOUR::SessionMetadata & data) const = 0;
        virtual void load_data (ARDOUR::SessionMetadata const & data) = 0;
        
-       virtual ustring name() { return _name; }
-       virtual ustring value() { return _value; }
+       virtual Glib::ustring name() { return _name; }
+       virtual Glib::ustring value() { return _value; }
        
        /// Get widget containing name of field
        virtual Gtk::Widget & name_widget () = 0;
@@ -56,17 +53,17 @@ class MetadataField {
        /// Get widget for editing value
        virtual Gtk::Widget & edit_widget () = 0;
   protected:
-       ustring _name;
-       ustring _value;
+       Glib::ustring _name;
+       Glib::ustring _value;
 };
 
 /// MetadataField that contains text
 class TextMetadataField : public MetadataField {
   private:
-       typedef ustring (ARDOUR::SessionMetadata::*Getter) () const;
-       typedef void (ARDOUR::SessionMetadata::*Setter) (ustring const &);
+       typedef Glib::ustring (ARDOUR::SessionMetadata::*Getter) () const;
+       typedef void (ARDOUR::SessionMetadata::*Setter) (Glib::ustring const &);
   public:
-       TextMetadataField (Getter getter, Setter setter, ustring const & field_name, guint width = 50);
+       TextMetadataField (Getter getter, Setter setter, Glib::ustring const & field_name, guint width = 50);
        MetadataPtr copy ();
        
        void save_data (ARDOUR::SessionMetadata & data) const;
@@ -94,7 +91,7 @@ class NumberMetadataField : public MetadataField {
        typedef uint32_t (ARDOUR::SessionMetadata::*Getter) () const;
        typedef void (ARDOUR::SessionMetadata::*Setter) (uint32_t);
   public:
-       NumberMetadataField (Getter getter, Setter setter, ustring const & field_name, guint numbers, guint width = 50);
+       NumberMetadataField (Getter getter, Setter setter, Glib::ustring const & field_name, guint numbers, guint width = 50);
        MetadataPtr copy ();
        
        void save_data (ARDOUR::SessionMetadata & data) const;
@@ -105,8 +102,8 @@ class NumberMetadataField : public MetadataField {
        Gtk::Widget & edit_widget ();
   private:
        void update_value ();
-       ustring uint_to_str (uint32_t i) const;
-       uint32_t str_to_uint (ustring const & str) const;
+       Glib::ustring uint_to_str (uint32_t i) const;
+       uint32_t str_to_uint (Glib::ustring const & str) const;
        
        Getter getter;
        Setter setter;
@@ -122,7 +119,7 @@ class NumberMetadataField : public MetadataField {
 /// Interface for MetadataFields
 class SessionMetadataSet {
   public:
-       SessionMetadataSet (ustring const & name);
+       SessionMetadataSet (Glib::ustring const & name);
        virtual ~SessionMetadataSet () {};
        
        void add_data_field (MetadataPtr field);
@@ -140,14 +137,14 @@ class SessionMetadataSet {
   protected:
        typedef std::list<MetadataPtr> DataList;
        DataList list;
-       ustring name;
+       Glib::ustring name;
        ARDOUR::Session *session;
 };
 
 /// Contains MetadataFields for editing
 class SessionMetadataSetEditable : public SessionMetadataSet {
   public:
-       SessionMetadataSetEditable (ustring const & name);
+       SessionMetadataSetEditable (Glib::ustring const & name);
        
        Gtk::Widget & get_widget () { return table; }
        Gtk::Widget & get_tab_widget ();
@@ -165,7 +162,7 @@ class SessionMetadataSetEditable : public SessionMetadataSet {
 /// Contains MetadataFields for importing
 class SessionMetadataSetImportable : public SessionMetadataSet {
   public:
-       SessionMetadataSetImportable (ustring const & name);
+       SessionMetadataSetImportable (Glib::ustring const & name);
        
        Gtk::Widget & get_widget () { return tree_view; }
        Gtk::Widget & get_tab_widget ();
@@ -183,8 +180,8 @@ class SessionMetadataSetImportable : public SessionMetadataSet {
        struct Columns : public Gtk::TreeModel::ColumnRecord
        {
          public:
-               Gtk::TreeModelColumn<ustring>     field;
-               Gtk::TreeModelColumn<ustring>     values;
+               Gtk::TreeModelColumn<Glib::ustring>     field;
+               Gtk::TreeModelColumn<Glib::ustring>     values;
                Gtk::TreeModelColumn<bool>        import;
                Gtk::TreeModelColumn<MetadataPtr> data;
        
@@ -199,7 +196,7 @@ class SessionMetadataSetImportable : public SessionMetadataSet {
        Gtk::CheckButton              select_all_check;
        
        void select_all ();
-       void selection_changed (ustring const & path);
+       void selection_changed (Glib::ustring const & path);
 };
 
 /// Metadata dialog interface
@@ -211,7 +208,7 @@ template <typename DataSet>
 class SessionMetadataDialog : public ArdourDialog
 {
   public:
-       SessionMetadataDialog (ustring const & name);
+       SessionMetadataDialog (Glib::ustring const & name);
 
   protected:
        void init_data ();
@@ -222,7 +219,7 @@ class SessionMetadataDialog : public ArdourDialog
        virtual void save_and_close ();
        virtual void end_dialog ();
        
-       void warn_user (ustring const & string);
+       void warn_user (Glib::ustring const & string);
        
        typedef std::list<Gtk::Widget *> WidgetList;
        typedef boost::shared_ptr<WidgetList> WidgetListPtr;
index e81a987aa1e6a52f29a79884a73bbd10b03506b6..bf4d9bc27f50f1fdcfbfec55480c7c84bc7a5399 100644 (file)
@@ -12,6 +12,7 @@
 
 using namespace Gtk;
 using namespace Glib;
+using namespace PBD;
 using namespace std;
 using namespace ARDOUR;
 
index 27131fa3e37d928dd677e75f71493f35d5aef78d..3251e748f5fa6394aa4a236d9071165f38d2d1e9 100644 (file)
@@ -41,6 +41,7 @@
 #include "gui_thread.h"
 #include "utils.h"
 
+using namespace std;
 using namespace ARDOUR;
 using namespace PBD;
 using namespace Editing;
index caea5487eeaecf8fe31842b27a2ada5ced8bf06b..546d51dee27d076555b48bfd8b4b01672c406ba8 100644 (file)
@@ -89,8 +89,8 @@ public:
        void         foreach_regionview (sigc::slot<void,RegionView*> slot);
 
        void set_selected_regionviews (RegionSelection&);
-       void get_selectables (nframes_t start, nframes_t end, list<Selectable* >&);
-       void get_inverted_selectables (Selection&, list<Selectable* >& results);
+       void get_selectables (nframes_t start, nframes_t end, std::list<Selectable* >&);
+       void get_inverted_selectables (Selection&, std::list<Selectable* >& results);
 
        virtual void update_contents_metrics(boost::shared_ptr<ARDOUR::Region> r) {}
        void add_region_view (boost::shared_ptr<ARDOUR::Region>);
@@ -135,14 +135,14 @@ protected:
        ArdourCanvas::Group*      canvas_group;
        ArdourCanvas::SimpleRect* canvas_rect; /* frame around the whole thing */
 
-       typedef list<RegionView* > RegionViewList;
+       typedef std::list<RegionView* > RegionViewList;
        RegionViewList  region_views;
 
        double _samples_per_unit;
 
        sigc::connection       screen_update_connection;
-       vector<RecBoxInfo>     rec_rects;
-       list< std::pair<boost::shared_ptr<ARDOUR::Region>,RegionView* > > rec_regions;
+       std::vector<RecBoxInfo>     rec_rects;
+       std::list< std::pair<boost::shared_ptr<ARDOUR::Region>,RegionView* > > rec_regions;
        bool                   rec_updating;
        bool                   rec_active;
        bool                   use_rec_regions;
@@ -150,7 +150,7 @@ protected:
        Gdk::Color region_color;      ///< Contained region color
        uint32_t   stream_base_color; ///< Background color
 
-       vector<sigc::connection> playlist_connections;
+       std::vector<sigc::connection> playlist_connections;
        sigc::connection         playlist_change_connection;
 
        ARDOUR::layer_t _layers;
@@ -158,7 +158,7 @@ protected:
        
        double height;
 
-       list<sigc::connection> rec_data_ready_connections;
+       std::list<sigc::connection> rec_data_ready_connections;
        jack_nframes_t         last_rec_data_frame;
 
 private:
index 7a59fe9ab0344b2b1efaf5cfa2267ffa54728f14..6bb50469dd2ce494288d81a15e57cbef6a63c0b8 100644 (file)
@@ -27,6 +27,7 @@
 
 #include "i18n.h"
 
+using namespace std;
 using namespace Gtk;
 using namespace Gtkmm2ext;
 using namespace ARDOUR;
index 3cdc29a3476e04b2f4678910866d5dea32b5135d..5f014ecbfb0e9e30d11eec5ab574fed204d86966 100644 (file)
@@ -38,7 +38,7 @@
 struct TempoDialog : public ArdourDialog 
 {
        Gtk::ComboBoxText note_types;
-       vector<string> strings;
+       std::vector<std::string> strings;
        Gtk::Adjustment   bpm_adjustment;
        Gtk::SpinButton   bpm_spinner;
        Gtk::Frame        bpm_frame;
@@ -54,8 +54,8 @@ struct TempoDialog : public ArdourDialog
        Gtk::Frame   when_frame;
        char buf[64];
     
-       TempoDialog (ARDOUR::TempoMap&, nframes_t, const string & action);
-       TempoDialog (ARDOUR::TempoSection&, const string & action);
+       TempoDialog (ARDOUR::TempoMap&, nframes_t, const std::string & action);
+       TempoDialog (ARDOUR::TempoSection&, const std::string & action);
 
        double get_bpm ();
        double get_note_type ();
@@ -74,7 +74,7 @@ struct MeterDialog : public ArdourDialog
 {
        Gtk::Entry   bpb_entry;
        Gtk::ComboBoxText note_types;
-       vector<string> strings;
+       std::vector<std::string> strings;
        Gtk::Frame   bpb_frame;
        Gtk::Button  ok_button;
        Gtk::Button  cancel_button;
@@ -82,8 +82,8 @@ struct MeterDialog : public ArdourDialog
        Gtk::Frame   when_frame;
        char buf[64];
     
-       MeterDialog (ARDOUR::TempoMap&, nframes_t, const string & action);
-       MeterDialog (ARDOUR::MeterSection&, const string & action);
+       MeterDialog (ARDOUR::TempoMap&, nframes_t, const std::string & action);
+       MeterDialog (ARDOUR::MeterSection&, const std::string & action);
 
        double get_bpb ();
        double get_note_type ();
index f62895c6f75edbbc70593353ea7748eb511459b5..b2b0bde460ed621812468ab9f5aee312cf09374c 100644 (file)
@@ -54,6 +54,7 @@
 
 #include "i18n.h"
 
+using namespace std;
 using namespace Gtk;
 using namespace Gdk;
 using namespace sigc; 
index 6f0b3310eb36167544babf71f6c363bd0758f389..56e70425488dc98b548989f23dccc31434cb9a98 100644 (file)
@@ -193,8 +193,8 @@ class TimeAxisView : public virtual AxisView, public PBD::Stateful
 
        void order_selection_trims (ArdourCanvas::Item *item, bool put_start_on_top);
 
-       virtual void get_selectables (nframes_t start, nframes_t end, double top, double bot, list<Selectable*>& results);
-       virtual void get_inverted_selectables (Selection&, list<Selectable *>& results);
+       virtual void get_selectables (nframes_t start, nframes_t end, double top, double bot, std::list<Selectable*>& results);
+       virtual void get_inverted_selectables (Selection&, std::list<Selectable *>& results);
 
        void add_ghost (RegionView*);
        void remove_ghost (RegionView*);
@@ -233,8 +233,8 @@ class TimeAxisView : public virtual AxisView, public PBD::Stateful
 
        uint32_t height;  /* in canvas units */
 
-       string controls_base_unselected_name;
-       string controls_base_selected_name;
+       std::string controls_base_unselected_name;
+       std::string controls_base_selected_name;
 
        bool name_entry_button_press (GdkEventButton *ev);
        bool name_entry_button_release (GdkEventButton *ev);
@@ -310,10 +310,10 @@ class TimeAxisView : public virtual AxisView, public PBD::Stateful
 
        ArdourCanvas::Group      *selection_group;
 
-       list<GhostRegion*> ghosts;
+       std::list<GhostRegion*> ghosts;
 
-       list<SelectionRect*> free_selection_rects;
-       list<SelectionRect*> used_selection_rects;
+       std::list<SelectionRect*> free_selection_rects;
+       std::list<SelectionRect*> used_selection_rects;
 
        SelectionRect* get_selection_rect(uint32_t id);
 
index 53f59e67cf98393a1e6ce18b288beb5bdc5dfa28..57b8469afba9ddd4d879839d0828ecad192cfadf 100644 (file)
@@ -24,6 +24,6 @@
 
 class TimeAxisView;
 
-struct TrackSelection : public list<TimeAxisView*> {};
+struct TrackSelection : public std::list<TimeAxisView*> {};
 
 #endif /* __ardour_gtk_track_selection_h__ */
index 7f4cdce6eca6314b49fea50b9e1269dc99e1db86..be95d737fb9146e5da274a69a43e2cd412334e8d 100644 (file)
@@ -55,14 +55,14 @@ class IO;
 class AudioDiskstream : public Diskstream
 {      
   public:
-       AudioDiskstream (Session &, const string& name, Diskstream::Flag f = Recordable);
+       AudioDiskstream (Session &, const std::string& name, Diskstream::Flag f = Recordable);
        AudioDiskstream (Session &, const XMLNode&);
        ~AudioDiskstream();
 
        float playback_buffer_load() const;
        float capture_buffer_load() const;
 
-       string input_source (uint32_t n=0) const {
+       std::string input_source (uint32_t n=0) const {
                boost::shared_ptr<ChannelList> c = channels.reader();
                if (n < c->size()) {
                        return (*c)[n]->source ? (*c)[n]->source->name() : "";
@@ -280,7 +280,7 @@ class AudioDiskstream : public Diskstream
        
        int use_new_write_source (uint32_t n=0);
 
-       int find_and_use_playlist (const string&);
+       int find_and_use_playlist (const std::string &);
 
        void allocate_temporary_buffers ();
 
index 86b5fb3aa216521dbb4e20cddd1ba9c9219e8843..ed18ae9cbf9cf616e47d5c8f298d7482b7b8442c 100644 (file)
 #include <map>
 #include <vector>
 
-using std::vector;
-using std::string;
-using std::map;
-
 namespace ARDOUR {
 
 class AudioLibrary
@@ -36,15 +32,15 @@ class AudioLibrary
        AudioLibrary ();
        ~AudioLibrary ();
 
-       void set_tags (string member, vector<string> tags);
-       vector<string> get_tags (string member);
+       void set_tags (std::string member, std::vector<std::string> tags);
+       std::vector<std::string> get_tags (std::string member);
 
-       void search_members_and (vector<string>& results, const vector<string> tags);
+       void search_members_and (std::vector<std::string>& results, const std::vector<std::string> tags);
 
        void save_changes();
        
   private:
-       string src;
+       std::string src;
 };
 
 extern AudioLibrary* Library;
index 52d715bcc0d6c12f30d7f8bcb3c8ca71a803b7c6..5ae87cea01ad84065f1aa98dc5e7c679cebea68d 100644 (file)
@@ -48,7 +48,7 @@ class AudioPlaylistImportHandler : public ElementImportHandler
 
        AudioPlaylistImportHandler (XMLTree const & source, Session & session, AudioRegionImportHandler & region_handler, const char * nodename = "Playlists");
        virtual ~AudioPlaylistImportHandler () {}
-       virtual string get_info () const;
+       virtual std::string get_info () const;
        
        void get_regions (XMLNode const & node, ElementList & list) const;
        void update_region_id (XMLProperty* id_prop);
@@ -64,7 +64,7 @@ class UnusedAudioPlaylistImportHandler : public AudioPlaylistImportHandler
   public:
        UnusedAudioPlaylistImportHandler (XMLTree const & source, Session & session, AudioRegionImportHandler & region_handler) :
                AudioPlaylistImportHandler (source, session, region_handler, X_("UnusedPlaylists")) { }
-       string get_info () const { return _("Audio Playlists (unused)"); }
+       std::string get_info () const { return _("Audio Playlists (unused)"); }
 };
 
 class AudioPlaylistImporter : public ElementImporter
@@ -74,7 +74,7 @@ class AudioPlaylistImporter : public ElementImporter
        AudioPlaylistImporter (AudioPlaylistImporter const & other);
        ~AudioPlaylistImporter ();
 
-       string get_info () const;
+       std::string get_info () const;
        
        void set_diskstream (PBD::ID const & id);
        PBD::ID const & orig_diskstream () const { return orig_diskstream_id; }
index ec70627428872db72cae37f6bfe49eae1783c18c..71e8718ce88456b0ba85a337473dcf4b4ad56519 100644 (file)
@@ -43,14 +43,14 @@ class AudioRegionImportHandler : public ElementImportHandler
   public:
        // Inerface implementation
        AudioRegionImportHandler (XMLTree const & source, Session & session);
-       string get_info () const;
+       std::string get_info () const;
        
        void create_regions_from_children (XMLNode const & node, ElementList & list);
        
        // Source management
-       bool check_source (string const & filename) const;
-       void add_source (string const & filename, boost::shared_ptr<Source> const & source);
-       boost::shared_ptr<Source> const & get_source (string const & filename) const;
+       bool check_source (std::string const & filename) const;
+       void add_source (std::string const & filename, boost::shared_ptr<Source> const & source);
+       boost::shared_ptr<Source> const & get_source (std::string const & filename) const;
 
        // Id management
        void register_id (PBD::ID & old_id, PBD::ID & new_id);
@@ -58,8 +58,8 @@ class AudioRegionImportHandler : public ElementImportHandler
 
   private:
        // Source management
-       typedef std::map<string, boost::shared_ptr<Source> > SourceMap;
-       typedef std::pair<string, boost::shared_ptr<Source> > SourcePair;
+       typedef std::map<std::string, boost::shared_ptr<Source> > SourceMap;
+       typedef std::pair<std::string, boost::shared_ptr<Source> > SourcePair;
        SourceMap sources;
 
        // Id management
@@ -75,7 +75,7 @@ class AudioRegionImporter : public ElementImporter
        ~AudioRegionImporter ();
 
        // Interface implementation
-       string get_info () const;
+       std::string get_info () const;
        Session::ImportStatus * get_import_status () { return &status; }
        
        // other stuff
@@ -93,7 +93,7 @@ class AudioRegionImporter : public ElementImporter
        AudioRegionImportHandler & handler;
        PBD::ID old_id;
        PBD::ID id;
-       std::list<string> filenames;
+       std::list<std::string> filenames;
        Session::ImportStatus status;
        
        bool parse_xml_region ();
index 484887e0b77f2c58b59e7a489fc9311497cc0594..145272b331119acadb4ab4a460f63c3de2626174 100644 (file)
@@ -32,7 +32,7 @@ class RouteGroup;
 class AudioTrack : public Track
 {
   public:
-       AudioTrack (Session&, string name, Route::Flag f = Route::Flag (0), TrackMode m = Normal);
+       AudioTrack (Session&, std::string name, Route::Flag f = Route::Flag (0), TrackMode m = Normal);
        AudioTrack (Session&, const XMLNode&);
        ~AudioTrack ();
 
@@ -44,7 +44,7 @@ class AudioTrack : public Track
 
        boost::shared_ptr<AudioDiskstream> audio_diskstream() const;
 
-       int use_diskstream (string name);
+       int use_diskstream (std::string name);
        int use_diskstream (const PBD::ID& id);
        
        int export_stuff (BufferSet& bufs, nframes_t nframes, nframes_t end_frame, bool enable_processing = true);
index 6e30f6e25b9bb6975f14697780eac395dc8eef21..59b5b520ac26c4e04aee3c08e789b62d50b9f209 100644 (file)
@@ -39,7 +39,7 @@ class AudioTrackImportHandler : public ElementImportHandler
   public:
        AudioTrackImportHandler (XMLTree const & source, Session & session, AudioPlaylistImportHandler & pl_handler);
        virtual ~AudioTrackImportHandler () {}
-       virtual string get_info () const;
+       virtual std::string get_info () const;
 
   private:
        AudioPlaylistImportHandler & pl_handler;
@@ -56,7 +56,7 @@ class AudioTrackImporter : public ElementImporter
                            AudioPlaylistImportHandler & pl_handler);
        ~AudioTrackImporter ();
 
-       string get_info () const;
+       std::string get_info () const;
 
   protected:
        bool _prepare_move ();
index 1b4c49ee9bfd639c476f1d4ec9a2fbab328bedb7..9da84df5618b83761c85dbb23bfac8bf05c3d9b4 100644 (file)
@@ -27,8 +27,6 @@
 #include "taglib/taglib.h"
 #include "taglib/xiphcomment.h"
 
-using std::string;
-
 namespace ARDOUR
 {
 
@@ -41,7 +39,7 @@ class AudiofileTagger
 
        /* Tags file with metadata, return true on success */
        
-       static bool tag_file (string const & filename, SessionMetadata const & metadata);
+       static bool tag_file (std::string const & filename, SessionMetadata const & metadata);
 
   private:
 
index 31cdd2ecd4ac2184a21f857263294f5fea4a88aa..b2e36a10f715683cca4ddcd23c11de1f9086dfe9 100644 (file)
@@ -40,9 +40,9 @@ class AudioPlaylist : public ARDOUR::Playlist
        
    public:
        AudioPlaylist (Session&, const XMLNode&, bool hidden = false);
-       AudioPlaylist (Session&, string name, bool hidden = false);
-       AudioPlaylist (boost::shared_ptr<const AudioPlaylist>, string name, bool hidden = false);
-       AudioPlaylist (boost::shared_ptr<const AudioPlaylist>, nframes_t start, nframes_t cnt, string name, bool hidden = false);
+       AudioPlaylist (Session&, std::string name, bool hidden = false);
+       AudioPlaylist (boost::shared_ptr<const AudioPlaylist>, std::string name, bool hidden = false);
+       AudioPlaylist (boost::shared_ptr<const AudioPlaylist>, nframes_t start, nframes_t cnt, std::string name, bool hidden = false);
 
        ~AudioPlaylist ();
 
index b2e2aa3eefe4f73c4c5340f3b32819a4b1c225c5..36b3db0bed2fcc94e1c20fd5f5cfdf34efd121cd 100644 (file)
@@ -36,8 +36,6 @@ class XMLNode;
 
 namespace ARDOUR {
 
-using std::vector;
-
 class Route;
 class Playlist;
 class Session;
@@ -136,7 +134,7 @@ class AudioRegion : public Region
        void set_envelope_active (bool yn);
        void set_default_envelope ();
 
-       int separate_by_channel (ARDOUR::Session&, vector<boost::shared_ptr<Region> >&) const;
+       int separate_by_channel (ARDOUR::Session&, std::vector<boost::shared_ptr<Region> >&) const;
        
        /* automation */
        
@@ -169,10 +167,10 @@ class AudioRegion : public Region
        friend class Crossfade;
 
        AudioRegion (boost::shared_ptr<AudioSource>, nframes_t start, nframes_t length);
-       AudioRegion (boost::shared_ptr<AudioSource>, nframes_t start, nframes_t length, const string& name, layer_t = 0, Region::Flag flags = Region::DefaultFlags);
-       AudioRegion (const SourceList &, nframes_t start, nframes_t length, const string& name, layer_t = 0, Region::Flag flags = Region::DefaultFlags);
-       AudioRegion (boost::shared_ptr<const AudioRegion>, nframes_t start, nframes_t length, const string& name, layer_t = 0, Region::Flag flags = Region::DefaultFlags);
-       AudioRegion (boost::shared_ptr<const AudioRegion>, const SourceList&, nframes_t length, const string& name, layer_t = 0, Region::Flag flags = Region::DefaultFlags);
+       AudioRegion (boost::shared_ptr<AudioSource>, nframes_t start, nframes_t length, const std::string& name, layer_t = 0, Region::Flag flags = Region::DefaultFlags);
+       AudioRegion (const SourceList &, nframes_t start, nframes_t length, const std::string& name, layer_t = 0, Region::Flag flags = Region::DefaultFlags);
+       AudioRegion (boost::shared_ptr<const AudioRegion>, nframes_t start, nframes_t length, const std::string& name, layer_t = 0, Region::Flag flags = Region::DefaultFlags);
+       AudioRegion (boost::shared_ptr<const AudioRegion>, const SourceList&, nframes_t length, const std::string& name, layer_t = 0, Region::Flag flags = Region::DefaultFlags);
        AudioRegion (boost::shared_ptr<const AudioRegion>);
        AudioRegion (boost::shared_ptr<AudioSource>, const XMLNode&);
        AudioRegion (SourceList &, const XMLNode&);
index 56a24ab4a5197d85157aca9329024a6e4cf32276..d097025e522cba869b1c31cad38c0c3642c515aa 100644 (file)
@@ -20,9 +20,6 @@
 #ifndef __ardour_audio_source_h__
 #define __ardour_audio_source_h__
 
-#include <list>
-#include <vector>
-
 #include <boost/shared_ptr.hpp>
 #include <boost/enable_shared_from_this.hpp>
 
@@ -38,9 +35,6 @@
 #include "pbd/stateful.h" 
 #include "pbd/xml++.h"
 
-using std::list;
-using std::vector;
-
 namespace ARDOUR {
 
 class AudioSource : virtual public Source,
index 74b8a54aada8147bd84f4c6d82696936957c10c6..f9b21b932c9e8d7351206510c7f96683dd4de772 100644 (file)
@@ -38,9 +38,9 @@ class AutomationControl : public PBD::Controllable, public Evoral::Control
 {
 public:
        AutomationControl(ARDOUR::Session&,
-                       const Evoral::Parameter& parameter,
-                       boost::shared_ptr<ARDOUR::AutomationList> l=boost::shared_ptr<ARDOUR::AutomationList>(),
-                       const string& name="");
+                         const Evoral::Parameter& parameter,
+                         boost::shared_ptr<ARDOUR::AutomationList> l=boost::shared_ptr<ARDOUR::AutomationList>(),
+                         const std::string& name="");
        
        boost::shared_ptr<AutomationList> alist() const {
                return boost::dynamic_pointer_cast<AutomationList>(_list);
index dbad062b2b5f6d87555500cf4040c5994993302d..8dfb697d083bb9bf85bfb036157413e06107afb1 100644 (file)
@@ -28,8 +28,6 @@
 
 #include "ardour/types.h"
 
-using std::string;
-
 namespace ARDOUR
 {
 
@@ -44,7 +42,7 @@ class BroadcastInfo
        ~BroadcastInfo ();
        
        /// Returns last error sring from libsndfile
-       string get_error () const { return error; }
+       std::string get_error () const { return error; }
        
        /* Convenience functions */
        
@@ -52,25 +50,25 @@ class BroadcastInfo
        
        /* Reading */
        
-       bool load_from_file (string const & filename);
+       bool load_from_file (std::string const & filename);
        bool load_from_file (SNDFILE* sf);
        
-       string get_description () const;
+       std::string get_description () const;
        int64_t get_time_reference () const;
        struct tm get_origination_time () const;
-       string get_originator () const;
-       string get_originator_ref () const;
+       std::string get_originator () const;
+       std::string get_originator_ref () const;
        
        /* Writing */
        
-       bool write_to_file (string const & filename);
+       bool write_to_file (std::string const & filename);
        bool write_to_file (SNDFILE* sf);
        
-       void set_description (string const & desc);
+       void set_description (std::string const & desc);
        void set_time_reference (int64_t when);
        void set_origination_time (struct tm * now = 0); // if 0, use time generated at construction
-       void set_originator (string const & str = "");
-       void set_originator_ref (string const & str = "");
+       void set_originator (std::string const & str = "");
+       void set_originator_ref (std::string const & str = "");
        
        /* State info */
        
@@ -83,7 +81,7 @@ class BroadcastInfo
        struct tm _time;
        
        void update_error ();
-       string error;
+       std::string error;
        
        bool _has_info;
 };
index ae744478f1a4ee6974307559854b1134c505ede7..8488df47a66a7cb6f64655bbb5ac89e206a509f5 100644 (file)
@@ -27,7 +27,7 @@ namespace ARDOUR {
 class ClickIO : public IO
 {
 public:
-       ClickIO (Session& s, const string& name) : IO (s, name) {}
+       ClickIO (Session& s, const std::string& name) : IO (s, name) {}
        ~ClickIO() {}
 
 protected:
index c91306d6dd1292e7dcb36cdf84f276826de73bf7..3091538e3864684ae1357c37c070c036353a3f55 100644 (file)
@@ -181,8 +181,8 @@ CONFIG_VARIABLE (DenormalModel, denormal_model, "denormal-model", DenormalNone)
 
 /* BWAV */
 
-CONFIG_VARIABLE (string, bwf_country_code, "bwf-country-code", "US")
-CONFIG_VARIABLE (string, bwf_organization_code, "bwf-organization-code", "US")
+CONFIG_VARIABLE (std::string, bwf_country_code, "bwf-country-code", "US")
+CONFIG_VARIABLE (std::string, bwf_organization_code, "bwf-organization-code", "US")
 
 /* these variables have custom set() methods (e.g. path globbing) */
 
index a8cd5b31789ed39b6da21a59f50632a0976037a7..69b13c493e7e98d932310979117319b2b669c43c 100644 (file)
@@ -24,8 +24,6 @@
 
 namespace ARDOUR {
 
-       using PBD::SearchPath;
-
        /**
         * return a SearchPath containing directories in which to look for 
         * control surface plugins.
@@ -35,7 +33,7 @@ namespace ARDOUR {
         * contain the user and system directories which may contain control
         * surface plugins.
         */
-       SearchPath control_protocol_search_path ();
+       PBD::SearchPath control_protocol_search_path ();
 
 } // namespace ARDOUR
 
index 2fccec84cff64d66cbbf4695f5f6ed9eb352c00a..28615330255e00a7aca6d37601ad30a6e46a23f8 100644 (file)
@@ -41,7 +41,7 @@ class CycleTimer {
        }
        ~CycleTimer() {
                _exit = get_cycles();
-               std::cerr << _name << ": " << (float) (_exit - _entry) / cycles_per_usec << " (" <<  _entry << ", " << _exit << ')' << endl;
+               std::cerr << _name << ": " << (float) (_exit - _entry) / cycles_per_usec << " (" <<  _entry << ", " << _exit << ')' << std::endl;
        }
 
        static float get_mhz ();
index 56400360d24994fec0f8639db058987df5acc8f5..a78f2e23a7558763d98a5da3f618e100e1532edf 100644 (file)
@@ -68,11 +68,11 @@ class Diskstream : public SessionObject, public boost::noncopyable
                NonLayered   = 0x8
        };
 
-       Diskstream (Session &, const string& name, Flag f = Recordable);
+       Diskstream (Session &, const std::string& name, Flag f = Recordable);
        Diskstream (Session &, const XMLNode&);
        virtual ~Diskstream();
        
-       bool set_name (const string& str);
+       bool set_name (const std::string& str);
 
        ARDOUR::IO* io() const { return _io; }
        void set_io (ARDOUR::IO& io);
@@ -149,7 +149,7 @@ class Diskstream : public SessionObject, public boost::noncopyable
        void remove_region_from_last_capture (boost::weak_ptr<Region> wregion);
 
        void move_processor_automation (boost::weak_ptr<Processor>,
-                       list< Evoral::RangeMove<nframes_t> > const &);
+                       std::list< Evoral::RangeMove<nframes_t> > const &);
 
        sigc::signal<void>            RecordEnableChanged;
        sigc::signal<void>            SpeedChanged;
@@ -215,7 +215,7 @@ class Diskstream : public SessionObject, public boost::noncopyable
 
        virtual void playlist_changed (Change);
        virtual void playlist_deleted (boost::weak_ptr<Playlist>);
-       virtual void playlist_ranges_moved (list< Evoral::RangeMove<nframes_t> > const &);
+       virtual void playlist_ranges_moved (std::list< Evoral::RangeMove<nframes_t> > const &);
 
        virtual void transport_stopped (struct tm&, time_t, bool abort) = 0;
        virtual void transport_looped (nframes_t transport_frame) = 0;
@@ -229,7 +229,7 @@ class Diskstream : public SessionObject, public boost::noncopyable
 
        virtual int use_new_write_source (uint32_t n=0) = 0;
 
-       virtual int find_and_use_playlist (const string&) = 0;
+       virtual int find_and_use_playlist (const std::string&) = 0;
 
        virtual void allocate_temporary_buffers () = 0;
 
index f56d3ce76d7cdfd0c7eade25b35ae6ebdf0a40a1..2401cf7a067ad0cb57b5880bb9a4043cdc8494ba 100644 (file)
@@ -27,7 +27,6 @@
 
 #include <boost/shared_ptr.hpp>
 
-using std::string;
 class XMLTree;
 
 namespace ARDOUR {
@@ -57,7 +56,7 @@ class ElementImportHandler
        /** Gets a textual representation of the element type
         * @return textual representation of element type
         */
-       virtual string get_info () const = 0;
+       virtual std::string get_info () const = 0;
        
        /// Elements this handler handles
        ElementList elements;
@@ -68,13 +67,13 @@ class ElementImportHandler
         * @param name name to check
         * @return true if name is not used
         */
-       bool check_name (const string & name) const;
+       bool check_name (const std::string & name) const;
        
        /// Adds name to the list of used names
-       void add_name (string name);
+       void add_name (std::string name);
        
        /// Removes name from the list of used names
-       void remove_name (const string & name);
+       void remove_name (const std::string & name);
        
        /// Checks wheter or not all elements can be imported cleanly
        static bool dirty () { return _dirty; }
@@ -103,7 +102,7 @@ class ElementImportHandler
        
   private:
        /// Set of names for duplicate checking
-       std::set<string> names;
+       std::set<std::string> names;
 };
 
 } // namespace ARDOUR
index 04f46f7a03c217fc0ec935485e3d39dae2949d69..4a69565838ffabd88b26c04b5f85c796df1b5e36 100644 (file)
@@ -29,8 +29,6 @@
 #include "ardour/types.h"
 #include "ardour/session.h"
 
-using std::string;
-
 class XMLTree;
 namespace ARDOUR {
 
@@ -45,12 +43,12 @@ class ElementImporter
        /** Returns the element name
         * @return the name of the element
         */
-       virtual string get_name () const { return name; };
+       virtual std::string get_name () const { return name; };
        
        /** Gets a textual representation of the element
         * @return a textual representation on this specific element
         */
-       virtual string get_info () const = 0;
+       virtual std::string get_info () const = 0;
        
        /** Gets import status, if applicable. */
        virtual Session::ImportStatus * get_import_status () { return 0; }
@@ -73,10 +71,10 @@ class ElementImporter
        bool broken () { return _broken; }
        
        /// Signal that requests for anew name
-       static sigc::signal <std::pair<bool, string>, string, string> Rename;
+       static sigc::signal <std::pair<bool, std::string>, std::string, std::string> Rename;
        
        /// Signal for ok/cancel prompting
-       static sigc::signal <bool, string> Prompt;
+       static sigc::signal <bool, std::string> Prompt;
        
   protected:
 
@@ -107,19 +105,19 @@ class ElementImporter
        bool queued () { return _queued; }
        
        /// Name of element
-       string  name;
+       std::string  name;
        
        /// The sample rate of the session from which we are importing
        nframes_t sample_rate;
        
        /// Converts smpte time to a string
-       string smpte_to_string(SMPTE::Time & time) const;
+       std::string smpte_to_string (SMPTE::Time & time) const;
        
        /// Converts samples so that times match the sessions sample rate
        nframes_t rate_convert_samples (nframes_t samples) const;
        
        /// Converts samples so that times match the sessions sample rate (for straight use in XML)
-       string rate_convert_samples (string const & samples) const;
+       std::string rate_convert_samples (std::string const & samples) const;
        
        /// Set element broken
        void set_broken () { _broken = true; }
index e2dfa17e0217e3786273d7bb361f570183eff594..ffc6ae5854e4a6c2f0d444342a7f63ffd77d093f 100644 (file)
 #include "ardour/ardour.h"
 #include "ardour/gdither.h"
 
-using std::map;
-using std::vector;
-using std::string;
-using std::pair;
-
 namespace ARDOUR 
 {
        class Port;
 
-       typedef pair<Port *, uint32_t> PortChannelPair;
-       typedef map<uint32_t, vector<PortChannelPair> > ExportPortMap;
+       typedef std::pair<Port *, uint32_t> PortChannelPair;
+       typedef std::map<uint32_t, std::vector<PortChannelPair> > ExportPortMap;
 
        struct ExportSpecification : public SF_INFO, public sigc::trackable {
 
@@ -52,14 +47,13 @@ namespace ARDOUR
            void init ();
            void clear ();
 
-
            int prepare (nframes_t blocksize, nframes_t frame_rate);
 
            int process (nframes_t nframes);
 
            /* set by the user */
 
-           string              path;
+           std::string    path;
            nframes_t      sample_rate;
 
            int            src_quality;
index 28e5e8e533739027112db57b5a3930bca17170ef..70b2bb00d9fef861b5f81e42305c0d98e53879de 100644 (file)
@@ -32,8 +32,6 @@
 
 #include "pbd/xml++.h"
 
-using Glib::ustring;
-
 namespace ARDOUR
 {
 
@@ -84,8 +82,8 @@ class ExportChannelConfiguration
        ChannelList const & get_channels () const { return channels; }
        bool all_channels_have_ports () const;
        
-       ustring name () const { return _name; }
-       void set_name (ustring name) { _name = name; }
+       Glib::ustring name () const { return _name; }
+       void set_name (Glib::ustring name) { _name = name; }
        void set_split (bool value) { split = value; }
        
        bool get_split () const { return split; }
@@ -127,7 +125,7 @@ class ExportChannelConfiguration
        FileConfigList  file_configs;
        
        bool            split; // Split to mono files
-       ustring        _name;
+       Glib::ustring  _name;
 };
 
 } // namespace ARDOUR
index f6ea1c13230de472ecebfddccedbcf7067c548f7..63256b458e67c8fb7d670c4043ddd6e68e651030 100644 (file)
@@ -27,8 +27,6 @@
 
 #include "i18n.h"
 
-using namespace PBD;
-
 namespace ARDOUR
 {
 
@@ -38,7 +36,7 @@ class ExportFailed : public std::exception
        ExportFailed (std::string const & reason) :
          reason (reason.c_str())
        {
-               error << string_compose (_("Export failed: %1"), reason) << endmsg;
+               PBD::error << string_compose (_("Export failed: %1"), reason) << endmsg;
        }
        
        ~ExportFailed () throw() { }
index 0b314819de0ed4c2dd652adc0b1a573ffe539af6..0df2f99e29b87a302e4e57e5144e0cb521107f87 100644 (file)
@@ -34,8 +34,6 @@
 #include "ardour/export_format_specification.h"
 #include "ardour/export_utilities.h"
 
-using Glib::ustring;
-
 namespace ARDOUR
 {
 
@@ -45,15 +43,15 @@ class ExportFileWriter
   public:
        virtual ~ExportFileWriter () {}
 
-       string filename () const { return _filename; }
+       std::string filename () const { return _filename; }
        nframes_t position () const { return _position; }
        
        void set_position (nframes_t position) { _position = position; }
        
   protected:
-       ExportFileWriter (string filename) : _filename (filename) {}
+       ExportFileWriter (std::string filename) : _filename (filename) {}
 
-       string _filename;
+       std::string _filename;
        nframes_t _position;
 };
 
@@ -65,7 +63,7 @@ class SndfileWriterBase : public ExportFileWriter
        SNDFILE * get_sndfile () const { return sndfile; }
 
   protected:
-       SndfileWriterBase (int channels, nframes_t samplerate, int format, string const & path);
+       SndfileWriterBase (int channels, nframes_t samplerate, int format, std::string const & path);
        virtual ~SndfileWriterBase ();
 
        SF_INFO        sf_info;
@@ -81,7 +79,7 @@ class SndfileWriter : public SndfileWriterBase, public GraphSink<T>
        // Should only be created vie ExportFileFactory and derived classes
   public: // protected
        friend class ExportFileFactory;
-       SndfileWriter (int channels, nframes_t samplerate, int format, string const & path);
+       SndfileWriter (int channels, nframes_t samplerate, int format, std::string const & path);
 
   public:
        nframes_t write (T * data, nframes_t frames);
@@ -165,12 +163,12 @@ class ExportFileFactory
        
        typedef std::pair<FloatSinkPtr, FileWriterPtr> FilePair;
 
-       static FilePair create (FormatPtr format, uint32_t channels, ustring const & filename);
+       static FilePair create (FormatPtr format, uint32_t channels, Glib::ustring const & filename);
        static bool check (FormatPtr format, uint32_t channels);
 
   private:
 
-       static FilePair create_sndfile (FormatPtr format, unsigned int channels, ustring const & filename);
+       static FilePair create_sndfile (FormatPtr format, unsigned int channels, Glib::ustring const & filename);
        static bool check_sndfile (FormatPtr format, unsigned int channels);
 };
 
index 94b13b65f095544bc6a77b047b9e89251bd74c7e..3dccda728ff786fb786d64b7fa5b091d980f1af1 100644 (file)
@@ -25,8 +25,6 @@
 #include <glibmm/ustring.h>
 #include "pbd/statefuldestructible.h"
 
-using Glib::ustring;
-
 namespace ARDOUR
 {
 
@@ -70,25 +68,25 @@ class ExportFilename {
        
        /* data access */
        
-       ustring get_path (FormatPtr format) const;
-       ustring get_folder () const { return folder; }
+       Glib::ustring get_path (FormatPtr format) const;
+       Glib::ustring get_folder () const { return folder; }
        
        TimeFormat get_time_format () const { return time_format; }
        DateFormat get_date_format () const { return date_format; }
-       ustring get_time_format_str (TimeFormat format) const;
-       ustring get_date_format_str (DateFormat format) const;
+       Glib::ustring get_time_format_str (TimeFormat format) const;
+       Glib::ustring get_date_format_str (DateFormat format) const;
        
-       ustring get_label () const { return label; }
+       Glib::ustring get_label () const { return label; }
        uint32_t get_revision () const { return revision; }
        
        /* data modification */
        
        void set_time_format (TimeFormat format);
        void set_date_format (DateFormat format);
-       void set_label (ustring value);
+       void set_label (Glib::ustring value);
        void set_revision (uint32_t value) { revision = value; }
        void set_channel (uint32_t value) { channel = value; }
-       bool set_folder (ustring path);
+       bool set_folder (Glib::ustring path);
        
        void set_timespan (TimespanPtr ts) { timespan = ts; }
        void set_channel_config (ChannelConfigPtr cc) { channel_config = cc; }
@@ -108,16 +106,16 @@ class ExportFilename {
 
        Session & session;
 
-       ustring   label;
+       Glib::ustring   label;
        uint32_t  revision;
        uint32_t  channel;
        
-       ustring   folder;
+       Glib::ustring   folder;
        
        DateFormat date_format;
        TimeFormat time_format;
        
-       ustring get_formatted_time (ustring const & format) const;
+       Glib::ustring get_formatted_time (Glib::ustring const & format) const;
        struct tm * time_struct; // Due to static allocation no destructor or copy-ctor is needed because of this
        
        TimespanPtr timespan;
@@ -125,12 +123,11 @@ class ExportFilename {
        
        /* Serialization helpers */
        
-       typedef std::pair<bool, ustring> FieldPair;
+       typedef std::pair<bool, Glib::ustring> FieldPair;
        
-       void add_field (XMLNode * node, ustring const & name, bool enabled, ustring const & value = "");
-       FieldPair get_field (XMLNode const & node, ustring const & name);
+       void add_field (XMLNode * node, Glib::ustring const & name, bool enabled, Glib::ustring const & value = "");
+       FieldPair get_field (XMLNode const & node, Glib::ustring const & name);
        FieldPair analyse_folder ();
-       
 };
 
 
index 7806a7d09358ef8a1de5240b275fbdd122ddc2cb..7d5757a77d3c558201ff70b0d1bf918bea6cbae1 100644 (file)
@@ -22,7 +22,6 @@
 #define __ardour_export_format_base_h__
 
 #include <set>
-#include <string>
 #include <algorithm>
 #include <boost/shared_ptr.hpp>
 #include <glibmm/ustring.h>
@@ -32,8 +31,6 @@
 #include "ardour/gdither_types.h"
 #include "ardour/ardour.h"
 
-using std::string;
-
 namespace ARDOUR
 {
 
index 4cf68edaa8a984d8cd8ee562b94d2381540ddce7..f69cfca986c344dc406643c4a00bd12e26fce533 100644 (file)
@@ -31,8 +31,6 @@
 
 #include "ardour/export_formats.h"
 
-using std::string;
-
 namespace ARDOUR
 {
 
index 9a3c8c43f88b360ee7d52eef58c358d174cb2bb3..a3f4d4fe1990cb45528287d5b18738dca0c67c54 100644 (file)
@@ -28,8 +28,6 @@
 #include "ardour/types.h"
 #include "ardour/export_format_base.h"
 
-using std::string;
-
 class XMLNode;
 
 namespace ARDOUR
index 1b571e91fb7d4251b58969af271a76a10f76551e..b7a791676722c1373c5f017bbfba21ff156605b7 100644 (file)
@@ -132,7 +132,7 @@ class HasSampleFormat {
        sigc::signal<void, bool, WeakDitherTypePtr> DitherTypeSelectChanged;
        sigc::signal<void, bool, WeakDitherTypePtr> DitherTypeCompatibleChanged;
        
-       static string get_sample_format_name (ExportFormatBase::SampleFormat format);
+       static std::string get_sample_format_name (ExportFormatBase::SampleFormat format);
 
   protected:
        /* State lists */
index b37ce0ce12ad3eaa5fb5be85fc6173d3bb51fc3f..c9450704082913f94fe82c9d71934ff66bdc1fbb 100644 (file)
@@ -124,7 +124,7 @@ class ExportHandler : public ExportElementFactory, public sigc::trackable
        /* CD Marker stuff */
        
        struct CDMarkerStatus {
-               CDMarkerStatus (string out_file, TimespanPtr timespan, FormatPtr format, string filename) :
+               CDMarkerStatus (std::string out_file, TimespanPtr timespan, FormatPtr format, std::string filename) :
                  out (out_file.c_str()), timespan (timespan), format (format), filename (filename),
                  track_number (1), track_position (0), track_duration (0), track_start_frame (0),
                  index_number (1), index_position (0)
@@ -134,7 +134,7 @@ class ExportHandler : public ExportElementFactory, public sigc::trackable
                std::ofstream  out;
                TimespanPtr    timespan;
                FormatPtr      format;
-               string         filename;
+               std::string    filename;
                Location *     marker;
                
                /* Track info */
index 56054ae2204791d55957509d10c1edf9440fbc5c..c518a208eaad1198edee2fe8a30b354ce2e11d6b 100644 (file)
@@ -26,8 +26,6 @@
 #include "pbd/uuid.h"
 #include "pbd/xml++.h"
 
-using std::string;
-
 namespace ARDOUR
 {
 
@@ -35,13 +33,13 @@ class Session;
 
 class ExportPreset {
   public:
-       ExportPreset (string filename, Session & s);
+       ExportPreset (std::string filename, Session & s);
        ~ExportPreset ();
 
        PBD::UUID const & id () const { return _id; }
-       string name () const { return _name; }
+       std::string name () const { return _name; }
 
-       void set_name (string const & name);
+       void set_name (std::string const & name);
 
        // Note: The set_..._state functions take ownership of the XMLNode
        void set_global_state (XMLNode & state);
@@ -55,14 +53,14 @@ class ExportPreset {
 
   private:
 
-       void set_id (string const & id);
+       void set_id (std::string const & id);
 
        XMLNode * get_instant_xml () const;
        void save_instant_xml () const;
        void remove_instant_xml () const;
 
        PBD::UUID  _id;
-       string     _name;
+       std::string _name;
 
        Session &   session;
        XMLTree     global;
index ed1690a170a277badd22644322300fd87bf653d4..832b2008481e2aa9da624e64f9e7116302dd5c38 100644 (file)
@@ -30,9 +30,6 @@
 #include "ardour/export_file_io.h"
 #include "ardour/export_utilities.h"
 
-using Glib::ustring;
-using std::list;
-
 namespace ARDOUR
 {
 
index 0f0144c0c7ba8497be41ff98dde1ed997af3433f..bf261cad4655ec1365064e802adfafc75bf5ba7c 100644 (file)
@@ -24,7 +24,6 @@
 #include <list>
 #include <vector>
 #include <map>
-#include <set>
 #include <stdexcept>
 
 #include <boost/shared_ptr.hpp>
 #include "ardour/location.h"
 #include "ardour/types.h"
 
-using std::string;
-using std::list;
-using std::set;
-
 namespace ARDOUR
 {
 
@@ -72,7 +67,7 @@ class ExportProfileManager
        
        PresetList const & get_presets () { return preset_list; }
        bool load_preset (PresetPtr preset);
-       PresetPtr save_preset (string const & name);
+       PresetPtr save_preset (std::string const & name);
        void remove_preset ();
 
   private:
index 6e410cbfae41b3c0d87110052e11dadb5fe2ec2d..8c1ce107303925fff518a3c9f70d61e3ea596c94 100644 (file)
@@ -30,8 +30,6 @@
 #include "ardour/export_channel.h"
 #include "ardour/ardour.h"
 
-using Glib::ustring;
-
 namespace ARDOUR
 {
 
@@ -53,11 +51,11 @@ class ExportTimespan : public sigc::trackable
   public:
        ~ExportTimespan ();
        
-       ustring name () const { return _name; }
-       void set_name (ustring name) { _name = name; }
+       Glib::ustring name () const { return _name; }
+       void set_name (Glib::ustring name) { _name = name; }
        
-       ustring range_id () const { return _range_id; }
-       void set_range_id (ustring range_id) { _range_id = range_id; }
+       Glib::ustring range_id () const { return _range_id; }
+       void set_range_id (Glib::ustring range_id) { _range_id = range_id; }
        
        /// Registers a channel to be read when export starts rolling
        void register_channel (ExportChannelPtr channel);
@@ -89,8 +87,8 @@ class ExportTimespan : public sigc::trackable
 
        TempFileMap    filemap;
        
-       ustring       _name;
-       ustring       _range_id;
+       Glib::ustring _name;
+       Glib::ustring _range_id;
 
 };
 
index 91a6988335448f7898fd9ad37b6d6766d03cd7fc..d5a4ce1d954b55e6d4efad33d66dac9587740c5c 100644 (file)
@@ -74,7 +74,7 @@ protected:
        uint16_t      _channel;
        bool          _is_embedded;
 
-       static map<DataType, Glib::ustring> search_paths;
+       static std::map<DataType, Glib::ustring> search_paths;
 };
 
 } // namespace ARDOUR
index cebb8c1e4e339dfda1887fa17eef84aac579e6ee..7e14c9a4faf7a8ce9265e618cdd2fe3196b3c834 100644 (file)
 
 namespace ARDOUR {
 
-       using namespace PBD;
-
        /**
         * @return the path to the directory used to store user specific ardour
         * configuration files.
         */
-       sys::path user_config_directory ();
+       PBD::sys::path user_config_directory ();
 
        /**
         * @return the path to the directory that contains the system wide ardour
         * modules.
         */
-       sys::path ardour_module_directory ();
+       PBD::sys::path ardour_module_directory ();
 
-       SearchPath ardour_search_path ();
+       PBD::SearchPath ardour_search_path ();
 
-       SearchPath system_config_search_path ();
+       PBD::SearchPath system_config_search_path ();
 
-       SearchPath system_data_search_path ();
+       PBD::SearchPath system_data_search_path ();
 
 } // namespace ARDOUR
 
index fbaf379a30b3d752115b8994337c43edb27471b3..8b236eadff91885bf2bbb400e6583b58206024a6 100644 (file)
@@ -45,9 +45,6 @@
 #include "ardour/types.h"
 #include "ardour/utils.h"
 
-using std::string;
-using std::vector;
-
 class XMLNode;
 
 namespace ARDOUR {
@@ -72,9 +69,9 @@ class UserBundle;
 class IO : public SessionObject, public AutomatableControls, public Latent
 {
   public:
-       static const string state_node_name;
+       static const std::string state_node_name;
 
-       IO (Session&, const string& name, DataType default_type = DataType::AUDIO,
+       IO (Session&, const std::string& name, DataType default_type = DataType::AUDIO,
                ChanCount in_min=ChanCount::ZERO, ChanCount in_max=ChanCount::INFINITE,
                ChanCount out_min=ChanCount::ZERO, ChanCount out_max=ChanCount::INFINITE);
        
@@ -98,7 +95,7 @@ class IO : public SessionObject, public AutomatableControls, public Latent
        DataType default_type() const         { return _default_type; }
        void     set_default_type(DataType t) { _default_type = t; }
        
-       bool set_name (const string& str);
+       bool set_name (const std::string& str);
 
        virtual void silence  (nframes_t);
 
@@ -140,19 +137,19 @@ class IO : public SessionObject, public AutomatableControls, public Latent
        boost::shared_ptr<Bundle> bundle_for_inputs () { return _bundle_for_inputs; }
        boost::shared_ptr<Bundle> bundle_for_outputs () { return _bundle_for_outputs; }
        
-       int add_input_port (string source, void *src, DataType type = DataType::NIL);
-       int add_output_port (string destination, void *src, DataType type = DataType::NIL);
+       int add_input_port (std::string source, void *src, DataType type = DataType::NIL);
+       int add_output_port (std::string destination, void *src, DataType type = DataType::NIL);
 
        int remove_input_port (Port *, void *src);
        int remove_output_port (Port *, void *src);
 
        int set_input (Port *, void *src);
 
-       int connect_input (Port *our_port, string other_port, void *src);
-       int connect_output (Port *our_port, string other_port, void *src);
+       int connect_input (Port *our_port, std::string other_port, void *src);
+       int connect_output (Port *our_port, std::string other_port, void *src);
 
-       int disconnect_input (Port *our_port, string other_port, void *src);
-       int disconnect_output (Port *our_port, string other_port, void *src);
+       int disconnect_input (Port *our_port, std::string other_port, void *src);
+       int disconnect_output (Port *our_port, std::string other_port, void *src);
 
        int disconnect_inputs (void *src);
        int disconnect_outputs (void *src);
@@ -310,8 +307,8 @@ class IO : public SessionObject, public AutomatableControls, public Latent
 
        /* AudioTrack::deprecated_use_diskstream_connections() needs these */
 
-       int set_inputs (const string& str);
-       int set_outputs (const string& str);
+       int set_inputs (const std::string& str);
+       int set_outputs (const std::string& str);
 
        void increment_output_offset (nframes_t);
        void cycle_start (nframes_t);
@@ -348,12 +345,12 @@ class IO : public SessionObject, public AutomatableControls, public Latent
        std::vector<UserBundleInfo> _bundles_connected_to_outputs; ///< user bundles connected to our outputs
        std::vector<UserBundleInfo> _bundles_connected_to_inputs; ///< user bundles connected to our inputs
 
-       static int parse_io_string (const string&, vector<string>& chns);
+       static int parse_io_string (const std::string&, std::vector<std::string>& chns);
 
-       static int parse_gain_string (const string&, vector<string>& chns);
+       static int parse_gain_string (const std::string&, std::vector<std::string>& chns);
        
-       int set_sources (vector<string>&, void *src, bool add);
-       int set_destinations (vector<string>&, void *src, bool add);
+       int set_sources (std::vector<std::string>&, void *src, bool add);
+       int set_destinations (std::vector<std::string>&, void *src, bool add);
 
        int ensure_inputs (ChanCount, bool clear, bool lockit, void *src);
        int ensure_outputs (ChanCount, bool clear, bool lockit, void *src);
@@ -367,7 +364,7 @@ class IO : public SessionObject, public AutomatableControls, public Latent
        int get_port_counts (const XMLNode& node);
        int create_ports (const XMLNode&);
        int make_connections (const XMLNode&);
-       boost::shared_ptr<Bundle> find_possible_bundle (const string &desired_name, const string &default_name, const string &connection_type_name);
+       boost::shared_ptr<Bundle> find_possible_bundle (const std::string &desired_name, const std::string &default_name, const std::string &connection_type_name);
 
        virtual void setup_peak_meters ();
        void meter ();
index e7dffb3138139f30b9e1149ba92061b4a0348e56..7f847c9221b6257941095aea766593dcbcf0c355 100644 (file)
@@ -31,8 +31,6 @@
 #include "ardour/ardour.h"
 #include "ardour/processor.h"
 
-using std::string;
-
 class XMLNode;
 
 namespace ARDOUR {
@@ -45,9 +43,9 @@ class IO;
 class IOProcessor : public Processor
 {
   public:
-       IOProcessor (Session&, const string& proc_name, const string io_name="",
+       IOProcessor (Session&, const std::string& proc_name, const std::string io_name="",
                     ARDOUR::DataType default_type = DataType::AUDIO);
-       IOProcessor (Session&, IO* io, const string& proc_name,
+       IOProcessor (Session&, IO* io, const std::string& proc_name,
                     ARDOUR::DataType default_type = DataType::AUDIO);
        virtual ~IOProcessor ();
        
index 5585711272bc27cefc47a4ff4277bd32ac935aff..5ee565fc1ee152e2578594b7b87f651dcc4c79ed 100644 (file)
@@ -36,8 +36,6 @@
 
 #include "ardour/ardour.h"
 
-using std::string;
-
 namespace ARDOUR {
 
 class Location : public PBD::StatefulDestructible
@@ -56,7 +54,7 @@ class Location : public PBD::StatefulDestructible
 
        Location (nframes_t sample_start,
                  nframes_t sample_end,
-                 const string &name,
+                 const std::string &name,
                  Flags bits = Flags(0))                
                
                : _name (name),
@@ -90,8 +88,8 @@ class Location : public PBD::StatefulDestructible
 
        int move_to (nframes_t pos);
 
-       const string& name() const { return _name; }
-       void set_name (const string &str) { _name = str; name_changed(this); }
+       const std::string& name() const { return _name; }
+       void set_name (const std::string &str) { _name = str; name_changed(this); }
 
        void set_auto_punch (bool yn, void *src);
        void set_auto_loop (bool yn, void *src);
@@ -123,14 +121,14 @@ class Location : public PBD::StatefulDestructible
    
        /* CD Track / CD-Text info */
 
-       std::map<string, string> cd_info;
-       XMLNode& cd_info_node (const string &, const string &);
+       std::map<std::string, std::string> cd_info;
+       XMLNode& cd_info_node (const std::string &, const std::string &);
 
        XMLNode& get_state (void);
        int set_state (const XMLNode&);
 
   private:
-       string        _name;
+       std::string   _name;
        nframes_t     _start;
        nframes_t     _end;
        Flags         _flags;
@@ -165,7 +163,7 @@ class Locations : public PBD::StatefulDestructible
        Location* end_location() const;
        Location* start_location() const;
 
-       int next_available_name(string& result,string base);
+       int next_available_name(std::string& result,std::string base);
        uint32_t num_range_markers() const;
 
        int set_current (Location *, bool want_lock = true);
index 2924a1de9289311ba536697ece187d7eb71db350..37895dbc9789250d128c0b83b034795367c6d0ca 100644 (file)
@@ -36,7 +36,7 @@ class LocationImportHandler : public ElementImportHandler
 {
   public:
        LocationImportHandler (XMLTree const & source, Session & session);
-       string get_info () const;
+       std::string get_info () const;
 };
 
 class LocationImporter : public ElementImporter
@@ -45,7 +45,7 @@ class LocationImporter : public ElementImporter
        LocationImporter (XMLTree const & source, Session & session, LocationImportHandler & handler, XMLNode const & node);
        ~LocationImporter ();
 
-       string get_info () const;
+       std::string get_info () const;
 
   protected:
        bool _prepare_move ();
index 2c1df39aa5905ab56559d0c4bc998910c49f9224..057d4f7b1d2efd9cad9c1a174d2499e8d02c4d2e 100644 (file)
@@ -64,8 +64,8 @@ public:
                { return _master_devices_by_model[model_name]; }
        
        boost::shared_ptr<ChannelNameSet> find_channel_name_set(
-                       string model, 
-                       string custom_device_mode, 
+                       std::string model, 
+                       std::string custom_device_mode, 
                        uint8_t channel) {
                boost::shared_ptr<MIDI::Name::MasterDeviceNames> master_device = master_device_by_model(model);
                
@@ -79,8 +79,8 @@ public:
 
        
        boost::shared_ptr<Patch> find_patch(
-                       string model, 
-                       string custom_device_mode, 
+                       std::string model, 
+                       std::string custom_device_mode, 
                        uint8_t channel, 
                        PatchPrimaryKey patch_key) {
                
@@ -94,8 +94,8 @@ public:
        }
        
        boost::shared_ptr<Patch> previous_patch(
-                       string model, 
-                       string custom_device_mode, 
+                       std::string model, 
+                       std::string custom_device_mode, 
                        uint8_t channel, 
                        PatchPrimaryKey patch_key) {
                
@@ -109,8 +109,8 @@ public:
        }
        
        boost::shared_ptr<Patch> next_patch(
-                       string model, 
-                       string custom_device_mode, 
+                       std::string model, 
+                       std::string custom_device_mode, 
                        uint8_t channel, 
                        PatchPrimaryKey patch_key) {
                
@@ -123,11 +123,11 @@ public:
                }
        }
        
-       std::list<string> custom_device_mode_names_by_model(std::string model_name) {
+       std::list<std::string> custom_device_mode_names_by_model(std::string model_name) {
                if (model_name != "") {
                        return master_device_by_model(model_name)->custom_device_mode_names();
                } else {
-                       return std::list<string>();
+                       return std::list<std::string>();
                }
        }
        
index ad66d7c1d6d62fa96e3ddc0ffb2218795c80d471..da8391a16bc1eab19a95cefbdf5899ae8dd028d7 100644 (file)
@@ -40,10 +40,10 @@ class MidiPlaylist : public ARDOUR::Playlist
 {
 public:
        MidiPlaylist (Session&, const XMLNode&, bool hidden = false);
-       MidiPlaylist (Session&, string name, bool hidden = false);
-       MidiPlaylist (boost::shared_ptr<const MidiPlaylist> other, string name, bool hidden = false);
+       MidiPlaylist (Session&, std::string name, bool hidden = false);
+       MidiPlaylist (boost::shared_ptr<const MidiPlaylist> other, std::string name, bool hidden = false);
        MidiPlaylist (boost::shared_ptr<const MidiPlaylist> other, nframes_t start, nframes_t cnt,
-                     string name, bool hidden = false);
+                     std::string name, bool hidden = false);
 
        ~MidiPlaylist ();
 
index 34ce5628522998352bf3f0d3b8739c356d762db2..6a4d49223751bf4c8046bb097a2bcf07529fca4e 100644 (file)
@@ -35,8 +35,6 @@
 
 class XMLNode;
 
-using std::vector;
-
 namespace ARDOUR {
 
 class Route;
@@ -72,7 +70,7 @@ class MidiRegion : public Region
        XMLNode& state (bool);
        int      set_state (const XMLNode&);
 
-       int separate_by_channel (ARDOUR::Session&, vector< boost::shared_ptr<Region> >&) const;
+       int separate_by_channel (ARDOUR::Session&, std::vector< boost::shared_ptr<Region> >&) const;
        
        /* automation */
        
index dcb34c8a04a6690dfa7946b966e8e35489cf8a39..be3de9a5a30bb34bfe76948c953635c8238b4263 100644 (file)
@@ -34,9 +34,6 @@
 #include "ardour/automation_control.h"
 #include "ardour/processor.h"
 
-using std::istream;
-using std::ostream;
-
 namespace ARDOUR {
 
 class Route;
@@ -84,7 +81,7 @@ class StreamPanner : public sigc::trackable, public PBD::Stateful
 
        /* old school automation loading */
 
-       virtual int load (istream&, string path, uint32_t&) = 0;
+       virtual int load (std::istream&, std::string path, uint32_t&) = 0;
 
   protected:
        friend class Panner;
@@ -126,7 +123,7 @@ class BaseStereoPanner : public StreamPanner
 
        /* old school automation loading */
 
-       int load (istream&, string path, uint32_t&);
+       int load (std::istream&, std::string path, uint32_t&);
 
   protected:
        float left;
@@ -150,7 +147,7 @@ class EqualPowerStereoPanner : public BaseStereoPanner
        void get_desired_coefficients (pan_t*) const;
 
        static StreamPanner* factory (Panner&, Evoral::Parameter param);
-       static string name;
+       static std::string name;
 
        XMLNode& state (bool full_state); 
        XMLNode& get_state (void); 
@@ -171,7 +168,7 @@ class Multi2dPanner : public StreamPanner
                                   nframes_t start, nframes_t end, nframes_t nframes, pan_t** buffers);
 
        static StreamPanner* factory (Panner&, Evoral::Parameter);
-       static string name;
+       static std::string name;
 
        XMLNode& state (bool full_state); 
        XMLNode& get_state (void);
@@ -179,7 +176,7 @@ class Multi2dPanner : public StreamPanner
 
        /* old school automation loading */
 
-       int load (istream&, string path, uint32_t&);
+       int load (std::istream&, std::string path, uint32_t&);
 
   private:
        void update ();
@@ -201,7 +198,7 @@ class Panner : public Processor
        };
 
        //Panner (std::string name, Session&, int _num_bufs);
-       Panner (string name, Session&);
+       Panner (std::string name, Session&);
        virtual ~Panner ();
 
        void clear_panners ();
index 63edad8805a9c3102ab0770a3c0e7d4b6331a22d..15aa041ed6faa810de32da80f2fb55305c4430ab 100644 (file)
@@ -55,12 +55,12 @@ class Playlist : public SessionObject,
                  public boost::noncopyable,
                  public boost::enable_shared_from_this<Playlist> {
   public:
-       typedef list<boost::shared_ptr<Region> >    RegionList;
+       typedef std::list<boost::shared_ptr<Region> >    RegionList;
 
        Playlist (Session&, const XMLNode&, DataType type, bool hidden = false);
-       Playlist (Session&, string name, DataType type, bool hidden = false);
-       Playlist (boost::shared_ptr<const Playlist>, string name, bool hidden = false);
-       Playlist (boost::shared_ptr<const Playlist>, nframes_t start, nframes_t cnt, string name, bool hidden = false);
+       Playlist (Session&, std::string name, DataType type, bool hidden = false);
+       Playlist (boost::shared_ptr<const Playlist>, std::string name, bool hidden = false);
+       Playlist (boost::shared_ptr<const Playlist>, nframes_t start, nframes_t cnt, std::string name, bool hidden = false);
 
        virtual ~Playlist ();  
 
@@ -73,7 +73,7 @@ class Playlist : public SessionObject,
        void release();
        bool used () const { return _refcnt != 0; }
 
-       bool set_name (const string& str);
+       bool set_name (const std::string& str);
 
        const DataType& data_type() const { return _type; }
 
@@ -105,8 +105,8 @@ class Playlist : public SessionObject,
        void shuffle (boost::shared_ptr<Region>, int dir);
        void update_after_tempo_map_change ();
 
-       boost::shared_ptr<Playlist> cut  (list<AudioRange>&, bool result_is_hidden = true);
-       boost::shared_ptr<Playlist> copy (list<AudioRange>&, bool result_is_hidden = true);
+       boost::shared_ptr<Playlist> cut  (std::list<AudioRange>&, bool result_is_hidden = true);
+       boost::shared_ptr<Playlist> copy (std::list<AudioRange>&, bool result_is_hidden = true);
        int                         paste (boost::shared_ptr<Playlist>, nframes_t position, float times);
 
        RegionList*                regions_at (nframes_t frame);
@@ -131,9 +131,9 @@ class Playlist : public SessionObject,
        sigc::signal<void>      Modified;
        sigc::signal<void>      NameChanged;
        sigc::signal<void>      LengthChanged;
-       sigc::signal<void, list< Evoral::RangeMove<nframes_t> > const &> RangesMoved;
+       sigc::signal<void, std::list< Evoral::RangeMove<nframes_t> > const &> RangesMoved;
 
-       static string bump_name (string old_name, Session&);
+       static std::string bump_name (std::string old_name, Session&);
 
        void freeze ();
        void thaw ();
@@ -193,9 +193,9 @@ class Playlist : public SessionObject,
        RegionList       pending_bounds;
        bool             pending_modified;
        bool             pending_length;
-       list< Evoral::RangeMove<nframes_t> > pending_range_moves;
+       std::list< Evoral::RangeMove<nframes_t> > pending_range_moves;
        bool             save_on_thaw;
-       string           last_save_reason;
+       std::string      last_save_reason;
        uint32_t         in_set_state;
        bool             first_set_state;
        bool            _hidden;
@@ -270,7 +270,7 @@ class Playlist : public SessionObject,
        nframes_t _get_maximum_extent() const;
 
        boost::shared_ptr<Playlist> cut_copy (boost::shared_ptr<Playlist> (Playlist::*pmf)(nframes_t, nframes_t, bool), 
-                                             list<AudioRange>& ranges, bool result_is_hidden);
+                                             std::list<AudioRange>& ranges, bool result_is_hidden);
        boost::shared_ptr<Playlist> cut (nframes_t start, nframes_t cnt, bool result_is_hidden);
        boost::shared_ptr<Playlist> copy (nframes_t start, nframes_t cnt, bool result_is_hidden);
 
index e0533526c94e671a1e18778c61841222bb5080b6..46e27d9b870da5030110a6ed0eedf4896a586044 100644 (file)
@@ -34,9 +34,9 @@ class PlaylistFactory {
        static sigc::signal<void,boost::shared_ptr<Playlist>, bool> PlaylistCreated;
 
        static boost::shared_ptr<Playlist> create (Session&, const XMLNode&, bool hidden = false, bool unused = false);
-       static boost::shared_ptr<Playlist> create (DataType type, Session&, string name, bool hidden = false);
-       static boost::shared_ptr<Playlist> create (boost::shared_ptr<const Playlist>, string name, bool hidden = false);
-       static boost::shared_ptr<Playlist> create (boost::shared_ptr<const Playlist>, nframes_t start, nframes_t cnt, string name, bool hidden = false);
+       static boost::shared_ptr<Playlist> create (DataType type, Session&, std::string name, bool hidden = false);
+       static boost::shared_ptr<Playlist> create (boost::shared_ptr<const Playlist>, std::string name, bool hidden = false);
+       static boost::shared_ptr<Playlist> create (boost::shared_ptr<const Playlist>, nframes_t start, nframes_t cnt, std::string name, bool hidden = false);
 };
 
 }
index 2cf3d3fc3422b2a43e16ac9e5cf5b3b5f645101d..f6de29ba41bd24e734de376111338e39af8670f8 100644 (file)
 #include <set>
 #include <map>
 
-using std::string;
-using std::vector;
-using std::set;
-using std::map;
-
 namespace ARDOUR {
 
 class AudioEngine;
@@ -68,8 +63,8 @@ class PluginInfo {
                index(o.index) {}
        virtual ~PluginInfo () { }
 
-       string name;
-       string category;
+       std::string name;
+       std::string category;
        Glib::ustring creator;
        Glib::ustring path;
        ChanCount n_inputs;
@@ -103,7 +98,7 @@ class Plugin : public PBD::StatefulDestructible, public Latent
            bool toggled;
            bool logarithmic;
            bool sr_dependent;
-           string label;
+           std::string label;
            float lower;
            float upper;
            float step;
@@ -132,8 +127,8 @@ class Plugin : public PBD::StatefulDestructible, public Latent
                        nframes_t nframes, nframes_t offset) = 0;
        
        virtual std::set<Evoral::Parameter> automatable() const = 0;
-       virtual string describe_parameter (Evoral::Parameter) = 0;
-       virtual string state_node_name() const = 0;
+       virtual std::string describe_parameter (Evoral::Parameter) = 0;
+       virtual std::string state_node_name() const = 0;
        virtual void print_parameter (uint32_t, char*, uint32_t len) const = 0;
 
        virtual bool parameter_is_audio(uint32_t) const = 0;
@@ -141,19 +136,19 @@ class Plugin : public PBD::StatefulDestructible, public Latent
        virtual bool parameter_is_input(uint32_t) const = 0;
        virtual bool parameter_is_output(uint32_t) const = 0;
 
-       virtual bool save_preset(string uri) = 0;
-       virtual bool load_preset (const string uri);
+       virtual bool save_preset (std::string uri) = 0;
+       virtual bool load_preset (const std::string uri);
 
        struct PresetRecord {
                PresetRecord(const std::string& u, const std::string& l) : uri(u), label(l) {}
-               string uri;
-               string label;
+               std::string uri;
+               std::string label;
        };
 
        virtual std::vector<PresetRecord> get_presets();
 
-       const PresetRecord* preset_by_label(const string& label);
-       const PresetRecord* preset_by_uri(const string& uri);
+       const PresetRecord* preset_by_label(const std::string& label);
+       const PresetRecord* preset_by_uri(const std::string& uri);
 
        virtual bool has_editor() const = 0;
 
@@ -199,16 +194,16 @@ class Plugin : public PBD::StatefulDestructible, public Latent
        
        virtual void set_parameter (uint32_t which, float val) = 0;
        
-       bool save_preset (string uri, string domain /* vst, ladspa etc. */);
+       bool save_preset (std::string uri, std::string domain /* vst, ladspa etc. */);
 
        ARDOUR::AudioEngine&     _engine;
        ARDOUR::Session&         _session;
        PluginInfoPtr            _info;
        uint32_t                 _cycles;
-       map<string,PresetRecord>  presets;
+       std::map<std::string,PresetRecord>  presets;
 };
 
-PluginPtr find_plugin(ARDOUR::Session&, string unique_id, ARDOUR::PluginType);
+PluginPtr find_plugin(ARDOUR::Session&, std::string unique_id, ARDOUR::PluginType);
 
 } // namespace ARDOUR
  
index 89512df40cb2582cff27352339ec2d470536e99f..59ab6de2d807306bfe4f10a46692115cccda4472 100644 (file)
@@ -48,7 +48,7 @@ class PluginInsert : public Processor
        PluginInsert (Session&, const XMLNode&);
        ~PluginInsert ();
 
-       static const string port_automation_node_name;
+       static const std::string port_automation_node_name;
        
        XMLNode& state(bool);
        XMLNode& get_state(void);
@@ -99,7 +99,7 @@ class PluginInsert : public Processor
 
        PluginType type ();
 
-       string describe_parameter (Evoral::Parameter param);
+       std::string describe_parameter (Evoral::Parameter param);
 
        nframes_t signal_latency() const;
 
index 547cc87f88c670f386a00e1c96b9fc0a494d5b9c..757af64c872c2cc40c2f9c9c99c9877e191a5473 100644 (file)
@@ -47,9 +47,9 @@ class Route;
 class Processor : public SessionObject, public AutomatableControls, public Latent
 {
   public:
-       static const string state_node_name;
+       static const std::string state_node_name;
 
-       Processor(Session&, const string& name);
+       Processor(Session&, const std::string& name);
        
        virtual ~Processor() { }
        
index e32b67bcd853f2d3259d6352e1d5746fd31deffc..d713c4f3f15d530d08e5d61ceb9b3bea437de5c0 100644 (file)
 #include <utility>
 #include <string>
 
-using std::deque;
-using std::pair;
-using std::string;
-
 namespace ARDOUR {
-       typedef deque<pair<string,string> > RecentSessions;
+       typedef std::deque<std::pair<std::string,std::string> > RecentSessions;
 
        int read_recent_sessions (RecentSessions& rs);
-       int store_recent_sessions (string name, string path);
+       int store_recent_sessions (std::string name, std::string path);
        int write_recent_sessions (RecentSessions& rs);
 }; // namespace ARDOUR
 
index d9a8945baec3492a2d5aefd74d7c26d0f370aa29..b6b80efa84bd529e0af20965b0045efb60a17dc7 100644 (file)
@@ -163,7 +163,7 @@ class Region
        virtual bool should_save_state () const { return !(_flags & DoNotSaveState); };
 
        void freeze ();
-       void thaw (const string& why);
+       void thaw (const std::string& why);
 
        bool covers (nframes_t frame) const {
                return first_frame() <= frame && frame <= last_frame();
@@ -226,7 +226,7 @@ class Region
        const SourceList& sources() const { return _sources; }
        const SourceList& master_sources() const { return _master_sources; }
 
-       std::vector<string> master_source_names();
+       std::vector<std::string> master_source_names();
        void set_master_sources (const SourceList&);
        
        /* automation */
@@ -270,20 +270,20 @@ class Region
        friend class RegionFactory;
 
        Region (boost::shared_ptr<Source> src, nframes_t start, nframes_t length, 
-               const string& name, DataType type, layer_t = 0, Flag flags = DefaultFlags);
+               const std::string& name, DataType type, layer_t = 0, Flag flags = DefaultFlags);
        Region (const SourceList& srcs, nframes_t start, nframes_t length, 
-               const string& name, DataType type, layer_t = 0, Flag flags = DefaultFlags);
+               const std::string& name, DataType type, layer_t = 0, Flag flags = DefaultFlags);
        
-       Region (boost::shared_ptr<const Region>, nframes_t start, nframes_t length, const string& name, layer_t = 0, Flag flags = DefaultFlags);
-       Region (boost::shared_ptr<const Region>, nframes_t length, const string& name, layer_t = 0, Flag flags = DefaultFlags);
+       Region (boost::shared_ptr<const Region>, nframes_t start, nframes_t length, const std::string& name, layer_t = 0, Flag flags = DefaultFlags);
+       Region (boost::shared_ptr<const Region>, nframes_t length, const std::string& name, layer_t = 0, Flag flags = DefaultFlags);
        Region (boost::shared_ptr<const Region>);
        Region (boost::shared_ptr<Source> src, const XMLNode&);
        Region (const SourceList& srcs, const XMLNode&);
 
-       Region (Session& s, nframes_t start, nframes_t length, const string& name, DataType, layer_t = 0, Flag flags = DefaultFlags);
+       Region (Session& s, nframes_t start, nframes_t length, const std::string& name, DataType, layer_t = 0, Flag flags = DefaultFlags);
 
   protected:
-       void copy_stuff (boost::shared_ptr<const Region>, nframes_t start, nframes_t length, const string& name, layer_t, Flag flags);
+       void copy_stuff (boost::shared_ptr<const Region>, nframes_t start, nframes_t length, const std::string& name, layer_t, Flag flags);
 
        XMLNode& get_short_state (); /* used only by Session */
 
index 8cdf7df955734b81afdfc3ff89463688431fc85c..8da6dde25f1c9dc680763d604a0b3416784c9f6d 100644 (file)
@@ -54,9 +54,9 @@ class RegionFactory {
        static boost::shared_ptr<Region> create (boost::shared_ptr<AudioRegion>, nframes_t start, 
                                                 nframes_t length, const std::string& name, 
                                                 layer_t = 0, Region::Flag flags = Region::DefaultFlags, bool announce = true);
-       static boost::shared_ptr<Region> create (boost::shared_ptr<Region>, const SourceList&, const string& name, layer_t = 0, Region::Flag flags = Region::DefaultFlags, bool announce = true);
-       static boost::shared_ptr<Region> create (boost::shared_ptr<Source>, nframes_t start, nframes_t length, const string& name, layer_t = 0, Region::Flag flags = Region::DefaultFlags, bool announce = true);
-       static boost::shared_ptr<Region> create (const SourceList &, nframes_t start, nframes_t length, const string& name, layer_t = 0, Region::Flag flags = Region::DefaultFlags, bool announce = true);
+       static boost::shared_ptr<Region> create (boost::shared_ptr<Region>, const SourceList&, const std::string& name, layer_t = 0, Region::Flag flags = Region::DefaultFlags, bool announce = true);
+       static boost::shared_ptr<Region> create (boost::shared_ptr<Source>, nframes_t start, nframes_t length, const std::string& name, layer_t = 0, Region::Flag flags = Region::DefaultFlags, bool announce = true);
+       static boost::shared_ptr<Region> create (const SourceList &, nframes_t start, nframes_t length, const std::string& name, layer_t = 0, Region::Flag flags = Region::DefaultFlags, bool announce = true);
        static boost::shared_ptr<Region> create (Session&, XMLNode&, bool);
        static boost::shared_ptr<Region> create (SourceList &, const XMLNode&);
 };
index 2b54810577db3699e084eaa13cacd7ed65c20ce2..9537097f74e62a79bf5669e37f12f2a57b73abb9 100644 (file)
@@ -62,7 +62,7 @@ class Route : public IO
 {
   protected:
 
-       typedef list<boost::shared_ptr<Processor> > ProcessorList;
+       typedef std::list<boost::shared_ptr<Processor> > ProcessorList;
 
   public:
 
@@ -238,7 +238,7 @@ class Route : public IO
 
        sigc::signal<void,void*> SelectedChanged;
 
-       int set_control_outs (const vector<std::string>& ports);
+       int set_control_outs (const std::vector<std::string>& ports);
        boost::shared_ptr<ControlOutputs> control_outs() { return _control_outs; }
 
        bool feeds (boost::shared_ptr<Route>);
index 832d709a33ecbc417dc7e4c89b741d9ebedcc75f..fa69446528cefe6e399afb441556733e1a1fb18c 100644 (file)
@@ -28,9 +28,6 @@
 #include "pbd/stateful.h" 
 #include "ardour/types.h"
 
-using std::string;
-using std::list;
-
 namespace ARDOUR {
 
 class Route;
@@ -46,9 +43,9 @@ class RouteGroup : public PBD::Stateful, public sigc::trackable {
            Hidden = 0x4
     };
 
-    RouteGroup (Session& s, const string &n, Flag f = Flag(0));
+    RouteGroup (Session& s, const std::string &n, Flag f = Flag(0));
 
-    const string& name() { return _name; }
+    const std::string& name() { return _name; }
     void set_name (std::string str);
 
     bool is_active () const { return _flags & Active; }
@@ -71,19 +68,19 @@ class RouteGroup : public PBD::Stateful, public sigc::trackable {
     int remove (Route *);
 
     void apply (void (Route::*func)(void *), void *src) {
-           for (list<Route *>::iterator i = routes.begin(); i != routes.end(); i++) {
+           for (std::list<Route *>::iterator i = routes.begin(); i != routes.end(); i++) {
                    ((*i)->*func)(src);
            }
     }
 
     template<class T> void apply (void (Route::*func)(T, void *), T val, void *src) {
-           for (list<Route *>::iterator i = routes.begin(); i != routes.end(); i++) {
+           for (std::list<Route *>::iterator i = routes.begin(); i != routes.end(); i++) {
                    ((*i)->*func)(val, src);
            }
     }
 
     template<class T> void foreach_route (T *obj, void (T::*func)(Route&)) {
-           for (list<Route *>::iterator i = routes.begin(); i != routes.end(); i++) {
+           for (std::list<Route *>::iterator i = routes.begin(); i != routes.end(); i++) {
                    (obj->*func)(**i);
            }
     }
@@ -101,7 +98,7 @@ class RouteGroup : public PBD::Stateful, public sigc::trackable {
            changed();
     }
 
-    const list<Route*>& route_list() { return routes; }
+    const std::list<Route*>& route_list() { return routes; }
     
     sigc::signal<void> changed;
     sigc::signal<void,void*> FlagsChanged;
@@ -112,8 +109,8 @@ class RouteGroup : public PBD::Stateful, public sigc::trackable {
 
  private:
     Session& _session;
-    list<Route *> routes;
-    string _name;
+    std::list<Route *> routes;
+    std::string _name;
     Flag _flags;
 
     void remove_when_going_away (Route*);
index 73b6c74ee70f12f042462db0f4f6336ce681b389..b3e50b0869047b00bb5e787924fa91444c33d9e2 100644 (file)
@@ -28,7 +28,7 @@ namespace ARDOUR {
 template<class T> void 
 RouteGroup::apply (void (Track::*func)(T, void *), T val, void *src) 
 {
-       for (list<Route *>::iterator i = routes.begin(); i != routes.end(); i++) {
+       for (std::list<Route *>::iterator i = routes.begin(); i != routes.end(); i++) {
                Track *at;
                if ((at = dynamic_cast<Track*>(*i)) != 0) {
                        (at->*func)(val, this);
index 86a2f778dc28d5d6dd7a029f554ac123274d41e2..31bbded03b44f3e9f03cf23b0cf6fd01f5b0d8f8 100644 (file)
@@ -113,18 +113,13 @@ class Source;
 class TempoMap;
 class VSTPlugin;
 
-using std::vector;
-using std::string;
-using std::map;
-using std::set;
-
 class Session : public PBD::StatefulDestructible, public boost::noncopyable
 {
   private:
        typedef std::pair<boost::weak_ptr<Route>,bool> RouteBooleanState;
-       typedef vector<RouteBooleanState> GlobalRouteBooleanState;
+       typedef std::vector<RouteBooleanState> GlobalRouteBooleanState;
        typedef std::pair<boost::weak_ptr<Route>,MeterPoint> RouteMeterState;
-       typedef vector<RouteMeterState> GlobalRouteMeterState;
+       typedef std::vector<RouteMeterState> GlobalRouteMeterState;
 
   public:
        enum RecordState {
@@ -179,8 +174,8 @@ class Session : public PBD::StatefulDestructible, public boost::noncopyable
                        Route*       route;
                };
 
-               list<AudioRange> audio_range;
-               list<MusicRange> music_range;
+               std::list<AudioRange> audio_range;
+               std::list<MusicRange> music_range;
                
                boost::shared_ptr<Region> region;
 
@@ -226,15 +221,15 @@ class Session : public PBD::StatefulDestructible, public boost::noncopyable
        /* creating from an XML file */
 
        Session (AudioEngine&,
-                       const string& fullpath,
-                       const string& snapshot_name,
-                       string mix_template = "");
+                       const std::string& fullpath,
+                       const std::string& snapshot_name,
+                       std::string mix_template = "");
 
        /* creating a new Session */
 
        Session (AudioEngine&,
-                       string fullpath,
-                       string snapshot_name,
+                       std::string fullpath,
+                       std::string snapshot_name,
                        AutoConnectOption input_auto_connect,
                        AutoConnectOption output_auto_connect,
                        uint32_t control_out_channels,
@@ -245,10 +240,10 @@ class Session : public PBD::StatefulDestructible, public boost::noncopyable
 
        virtual ~Session ();
 
-       string path() const { return _path; }
-       string name() const { return _name; }
-       string snap_name() const { return _current_snapshot_name; }
-       string raid_path () const;
+       std::string path() const { return _path; }
+       std::string name() const { return _name; }
+       std::string snap_name() const { return _current_snapshot_name; }
+       std::string raid_path () const;
 
        void set_snap_name ();
 
@@ -277,12 +272,12 @@ class Session : public PBD::StatefulDestructible, public boost::noncopyable
 
        Glib::ustring peak_path (Glib::ustring) const;
 
-       static string change_source_path_by_name (string oldpath, string oldname, string newname, bool destructive);
+       static std::string change_source_path_by_name (std::string oldpath, std::string oldname, std::string newname, bool destructive);
 
-       string peak_path_from_audio_path (string) const;
-       string new_audio_source_name (const string&, uint32_t nchans, uint32_t chan, bool destructive);
-       string new_midi_source_name (const string&);
-       string new_source_path_from_name (DataType type, const string&);
+       std::string peak_path_from_audio_path (std::string) const;
+       std::string new_audio_source_name (const std::string&, uint32_t nchans, uint32_t chan, bool destructive);
+       std::string new_midi_source_name (const std::string&);
+       std::string new_source_path_from_name (DataType type, const std::string&);
        RouteList new_route_from_template (uint32_t how_many, const std::string& template_path);
 
        void process (nframes_t nframes);
@@ -293,7 +288,7 @@ class Session : public PBD::StatefulDestructible, public boost::noncopyable
 
        void add_diskstream (boost::shared_ptr<Diskstream>);
        boost::shared_ptr<Diskstream> diskstream_by_id (const PBD::ID& id);
-       boost::shared_ptr<Diskstream> diskstream_by_name (string name);
+       boost::shared_ptr<Diskstream> diskstream_by_name (std::string name);
        bool have_rec_enabled_diskstream () const;
 
        bool have_captured() const { return _have_captured; }
@@ -330,12 +325,12 @@ class Session : public PBD::StatefulDestructible, public boost::noncopyable
        template<class T> void foreach_route (T *obj, void (T::*func)(boost::shared_ptr<Route>));
        template<class T, class A> void foreach_route (T *obj, void (T::*func)(Route&, A), A arg);
 
-       boost::shared_ptr<Route> route_by_name (string);
+       boost::shared_ptr<Route> route_by_name (std::string);
        boost::shared_ptr<Route> route_by_id (PBD::ID);
        boost::shared_ptr<Route> route_by_remote_id (uint32_t id);
 
-       bool route_name_unique (string) const;
-       bool route_name_internal (string) const;
+       bool route_name_unique (std::string) const;
+       bool route_name_internal (std::string) const;
 
        bool get_record_enabled() const {
                return (record_status () >= Enabled);
@@ -437,7 +432,7 @@ class Session : public PBD::StatefulDestructible, public boost::noncopyable
 
        void set_auto_punch_location (Location *);
        void set_auto_loop_location (Location *);
-       int location_name(string& result, string base = string(""));
+       int location_name(std::string& result, std::string base = std::string(""));
 
        void reset_input_monitor_state ();
 
@@ -462,11 +457,11 @@ class Session : public PBD::StatefulDestructible, public boost::noncopyable
        static int rename_template (std::string old_name, std::string new_name);
        static int delete_template (std::string name);
 
-       sigc::signal<void,string> StateSaved;
+       sigc::signal<void,std::string> StateSaved;
        sigc::signal<void> StateReady;
 
-       vector<string*>* possible_states() const;
-       static vector<string*>* possible_states(string path);
+       std::vector<std::string*>* possible_states() const;
+       static std::vector<std::string*>* possible_states (std::string path);
 
        XMLNode& get_state();
        int      set_state(const XMLNode& node); // not idempotent
@@ -488,14 +483,14 @@ class Session : public PBD::StatefulDestructible, public boost::noncopyable
 
        StateOfTheState state_of_the_state() const { return _state_of_the_state; }
 
-       RouteGroup* add_edit_group (string);
-       RouteGroup* add_mix_group (string);
+       RouteGroup* add_edit_group (std::string);
+       RouteGroup* add_mix_group (std::string);
 
        void remove_edit_group (RouteGroup&);
        void remove_mix_group (RouteGroup&);
 
-       RouteGroup *mix_group_by_name (string);
-       RouteGroup *edit_group_by_name (string);
+       RouteGroup *mix_group_by_name (std::string);
+       RouteGroup *edit_group_by_name (std::string);
 
        sigc::signal<void,RouteGroup*> edit_group_added;
        sigc::signal<void,RouteGroup*> mix_group_added;
@@ -503,13 +498,13 @@ class Session : public PBD::StatefulDestructible, public boost::noncopyable
        sigc::signal<void>             mix_group_removed;
 
        void foreach_edit_group (sigc::slot<void,RouteGroup*> sl) {
-               for (list<RouteGroup *>::iterator i = edit_groups.begin(); i != edit_groups.end(); i++) {
+               for (std::list<RouteGroup *>::iterator i = edit_groups.begin(); i != edit_groups.end(); i++) {
                        sl (*i);
                }
        }
 
        void foreach_mix_group (sigc::slot<void,RouteGroup*> sl) {
-               for (list<RouteGroup *>::iterator i = mix_groups.begin(); i != mix_groups.end(); i++) {
+               for (std::list<RouteGroup *>::iterator i = mix_groups.begin(); i != mix_groups.end(); i++) {
                        sl (*i);
                }
        }
@@ -603,9 +598,9 @@ class Session : public PBD::StatefulDestructible, public boost::noncopyable
        sigc::signal<void,std::vector<boost::weak_ptr<Region> >& > RegionsAdded;
        sigc::signal<void,boost::weak_ptr<Region> > RegionRemoved;
 
-       int region_name (string& result, string base = string(""), bool newlevel = false);
-       string new_region_name (string);
-       string path_from_region_name (DataType type, string name, string identifier);
+       int region_name (std::string& result, std::string base = std::string(""), bool newlevel = false);
+       std::string new_region_name (std::string);
+       std::string path_from_region_name (DataType type, std::string name, std::string identifier);
 
        boost::shared_ptr<Region> find_whole_file_parent (boost::shared_ptr<Region const>);
 
@@ -620,7 +615,7 @@ class Session : public PBD::StatefulDestructible, public boost::noncopyable
        /* source management */
 
        struct ImportStatus : public InterThreadInfo {
-               string doing_what;
+               std::string doing_what;
 
                /* control info */
                uint32_t total;
@@ -634,8 +629,8 @@ class Session : public PBD::StatefulDestructible, public boost::noncopyable
        };
 
        void import_audiofiles (ImportStatus&);
-       bool sample_rate_convert (ImportStatus&, string infile, string& outfile);
-       string build_tmp_convert_name (string file);
+       bool sample_rate_convert (ImportStatus&, std::string infile, std::string& outfile);
+       std::string build_tmp_convert_name (std::string file);
 
        boost::shared_ptr<ExportHandler> get_export_handler ();
        boost::shared_ptr<ExportStatus> get_export_status ();
@@ -650,7 +645,7 @@ class Session : public PBD::StatefulDestructible, public boost::noncopyable
        void remove_source (boost::weak_ptr<Source>);
 
        struct cleanup_report {
-               vector<string> paths;
+               std::vector<std::string> paths;
                int64_t        space;
        };
 
@@ -686,7 +681,7 @@ class Session : public PBD::StatefulDestructible, public boost::noncopyable
 
        /* playlist management */
 
-       boost::shared_ptr<Playlist> playlist_by_name (string name);
+       boost::shared_ptr<Playlist> playlist_by_name (std::string name);
        void unassigned_playlists (std::list<boost::shared_ptr<Playlist> > & list);
        void add_playlist (boost::shared_ptr<Playlist>, bool unused = false);
        sigc::signal<void,boost::shared_ptr<Playlist> > PlaylistAdded;
@@ -699,7 +694,7 @@ class Session : public PBD::StatefulDestructible, public boost::noncopyable
 
        /* named selections */
 
-       NamedSelection* named_selection_by_name (string name);
+       NamedSelection* named_selection_by_name (std::string name);
        void add_named_selection (NamedSelection *);
        void remove_named_selection (NamedSelection *);
 
@@ -729,8 +724,8 @@ class Session : public PBD::StatefulDestructible, public boost::noncopyable
        /* flattening stuff */
 
        boost::shared_ptr<Region> write_one_track (AudioTrack&, nframes_t start, nframes_t end,
-                       bool overwrite, vector<boost::shared_ptr<Source> >&, InterThreadInfo& wot,
-                       bool enable_processing = true);
+                                                  bool overwrite, std::vector<boost::shared_ptr<Source> >&, InterThreadInfo& wot,
+                                                  bool enable_processing = true);
        int freeze (InterThreadInfo&);
 
        /* session-wide solo/mute/rec-enable */
@@ -779,7 +774,7 @@ class Session : public PBD::StatefulDestructible, public boost::noncopyable
 
        void add_bundle (boost::shared_ptr<Bundle>);
        void remove_bundle (boost::shared_ptr<Bundle>);
-       boost::shared_ptr<Bundle> bundle_by_name (string) const;
+       boost::shared_ptr<Bundle> bundle_by_name (std::string) const;
 
        sigc::signal<void,boost::shared_ptr<Bundle> > BundleAdded;
        sigc::signal<void,boost::shared_ptr<Bundle> > BundleRemoved;
@@ -787,10 +782,10 @@ class Session : public PBD::StatefulDestructible, public boost::noncopyable
        /* MIDI control */
 
        void midi_panic(void);
-       int set_mtc_port (string port_tag);
-       int set_mmc_port (string port_tag);
-       int set_midi_port (string port_tag);
-       int set_midi_clock_port (string port_tag);
+       int set_mtc_port (std::string port_tag);
+       int set_mmc_port (std::string port_tag);
+       int set_midi_port (std::string port_tag);
+       int set_midi_clock_port (std::string port_tag);
        MIDI::Port *mtc_port() const { return _mtc_port; }
        MIDI::Port *mmc_port() const { return _mmc_port; }
        MIDI::Port *midi_port() const { return _midi_port; }
@@ -835,10 +830,10 @@ class Session : public PBD::StatefulDestructible, public boost::noncopyable
 
        uint32_t undo_depth() const { return _history.undo_depth(); }
        uint32_t redo_depth() const { return _history.redo_depth(); }
-       string next_undo() const { return _history.next_undo(); }
-       string next_redo() const { return _history.next_redo(); }
+       std::string next_undo() const { return _history.next_undo(); }
+       std::string next_redo() const { return _history.next_redo(); }
 
-       void begin_reversible_command (const string& cmd_name);
+       void begin_reversible_command (const std::string& cmd_name);
        void commit_reversible_command (Command* cmd = 0);
 
        void add_command (Command *const cmd) {
@@ -939,8 +934,8 @@ class Session : public PBD::StatefulDestructible, public boost::noncopyable
 
        /* ranges */
 
-       void set_audio_range (list<AudioRange>&);
-       void set_music_range (list<MusicRange>&);
+       void set_audio_range (std::list<AudioRange>&);
+       void set_music_range (std::list<MusicRange>&);
 
        void request_play_range (bool yn);
        bool get_play_range () const { return _play_range; }
@@ -988,7 +983,7 @@ class Session : public PBD::StatefulDestructible, public boost::noncopyable
        void update_latency_compensation (bool, bool);
 
   private:
-       int  create (bool& new_session, const string& mix_template, nframes_t initial_length);
+       int  create (bool& new_session, const std::string& mix_template, nframes_t initial_length);
        void destroy ();
 
        nframes_t compute_initial_length ();
@@ -1155,8 +1150,8 @@ class Session : public PBD::StatefulDestructible, public boost::noncopyable
        MIDI::Port*             _mtc_port;
        MIDI::Port*             _midi_port;
        MIDI::Port*             _midi_clock_port;
-       string                  _path;
-       string                  _name;
+       std::string             _path;
+       std::string             _name;
        bool                     session_send_mmc;
        bool                     session_send_mtc;
        bool                     session_midi_feedback;
@@ -1172,7 +1167,7 @@ class Session : public PBD::StatefulDestructible, public boost::noncopyable
        void when_engine_running ();
        void graph_reordered ();
 
-       string _current_snapshot_name;
+       std::string _current_snapshot_name;
 
        XMLTree* state_tree;
        bool     state_was_pending;
@@ -1181,7 +1176,7 @@ class Session : public PBD::StatefulDestructible, public boost::noncopyable
        void     auto_save();
        int      load_options (const XMLNode&);
        XMLNode& get_options () const;
-       int      load_state (string snapshot_name);
+       int      load_state (std::string snapshot_name);
        bool     save_config_options_predicate (ConfigVariableBase::Owner owner) const;
 
        nframes_t _last_roll_location;
@@ -1276,7 +1271,7 @@ class Session : public PBD::StatefulDestructible, public boost::noncopyable
        sigc::connection auto_loop_changed_connection;
        void             auto_loop_changed (Location *);
 
-       typedef list<Event *> Events;
+       typedef std::list<Event *> Events;
        Events           events;
        Events           immediate_events;
        Events::iterator next_event;
@@ -1297,7 +1292,7 @@ class Session : public PBD::StatefulDestructible, public boost::noncopyable
        bool _remove_event (Event *);
        void _clear_event_type (Event::Type);
 
-       void first_stage_init (string path, string snapshot_name);
+       void first_stage_init (std::string path, std::string snapshot_name);
        int  second_stage_init (bool new_tracks);
        void find_current_end ();
        void remove_empty_sounds ();
@@ -1357,7 +1352,7 @@ class Session : public PBD::StatefulDestructible, public boost::noncopyable
        double step_speed;
 
        typedef sigc::slot<bool> MidiTimeoutCallback;
-       typedef list<MidiTimeoutCallback> MidiTimeoutList;
+       typedef std::list<MidiTimeoutCallback> MidiTimeoutList;
 
        MidiTimeoutList midi_timeouts;
        bool mmc_step_timeout ();
@@ -1450,8 +1445,8 @@ class Session : public PBD::StatefulDestructible, public boost::noncopyable
        int load_mix_groups (const XMLNode&);
 
 
-       list<RouteGroup *> edit_groups;
-       list<RouteGroup *> mix_groups;
+       std::list<RouteGroup *> edit_groups;
+       std::list<RouteGroup *> mix_groups;
 
        /* disk-streams */
 
@@ -1481,7 +1476,7 @@ class Session : public PBD::StatefulDestructible, public boost::noncopyable
        void catch_up_on_solo_mute_override ();
        void update_route_solo_state ();
        void modify_solo_mute (bool, bool);
-       void strip_portname_for_solo (string& portname);
+       void strip_portname_for_solo (std::string& portname);
 
        /* REGION MANAGEMENT */
 
@@ -1489,7 +1484,7 @@ class Session : public PBD::StatefulDestructible, public boost::noncopyable
        void update_region_name_map (boost::shared_ptr<Region>);
 
        mutable Glib::Mutex region_lock;
-       typedef map<PBD::ID,boost::shared_ptr<Region> > RegionList;
+       typedef std::map<PBD::ID,boost::shared_ptr<Region> > RegionList;
        RegionList regions;
 
        void add_region (boost::shared_ptr<Region>);
@@ -1517,7 +1512,7 @@ class Session : public PBD::StatefulDestructible, public boost::noncopyable
        /* PLAYLISTS */
 
        mutable Glib::Mutex playlist_lock;
-       typedef set<boost::shared_ptr<Playlist> > PlaylistList;
+       typedef std::set<boost::shared_ptr<Playlist> > PlaylistList;
        PlaylistList playlists;
        PlaylistList unused_playlists;
 
@@ -1526,7 +1521,7 @@ class Session : public PBD::StatefulDestructible, public boost::noncopyable
        void remove_playlist (boost::weak_ptr<Playlist>);
        void track_playlist (bool, boost::weak_ptr<Playlist>);
 
-       boost::shared_ptr<Playlist> playlist_factory (string name);
+       boost::shared_ptr<Playlist> playlist_factory (std::string name);
        boost::shared_ptr<Playlist> XMLPlaylistFactory (const XMLNode&);
 
        void playlist_length_changed ();
@@ -1535,12 +1530,12 @@ class Session : public PBD::StatefulDestructible, public boost::noncopyable
        /* NAMED SELECTIONS */
 
        mutable Glib::Mutex named_selection_lock;
-       typedef set<NamedSelection *> NamedSelectionList;
+       typedef std::set<NamedSelection *> NamedSelectionList;
        NamedSelectionList named_selections;
 
        int load_named_selections (const XMLNode&);
 
-       NamedSelection *named_selection_factory (string name);
+       NamedSelection *named_selection_factory (std::string name);
        NamedSelection *XMLNamedSelectionFactory (const XMLNode&);
 
        /* CURVES and AUTOMATION LISTS */
@@ -1566,10 +1561,10 @@ class Session : public PBD::StatefulDestructible, public boost::noncopyable
 
        /* INSERT AND SEND MANAGEMENT */
 
-       list<PortInsert *>              _port_inserts;
-       list<PluginInsert *>            _plugin_inserts;
-       list<Send *>                    _sends;
-       list<Return *>                  _returns;
+       std::list<PortInsert *>              _port_inserts;
+       std::list<PluginInsert *>            _plugin_inserts;
+       std::list<Send *>                    _sends;
+       std::list<Return *>                  _returns;
        boost::dynamic_bitset<uint32_t> send_bitset;
        boost::dynamic_bitset<uint32_t> return_bitset;
        boost::dynamic_bitset<uint32_t> insert_bitset;
@@ -1584,7 +1579,7 @@ class Session : public PBD::StatefulDestructible, public boost::noncopyable
 
        struct space_and_path {
                uint32_t blocks; /* 4kB blocks */
-               string path;
+               std::string path;
 
                space_and_path() {
                        blocks = 0;
@@ -1597,14 +1592,14 @@ class Session : public PBD::StatefulDestructible, public boost::noncopyable
                }
        };
 
-       void setup_raid_path (string path);
+       void setup_raid_path (std::string path);
 
-       vector<space_and_path> session_dirs;
-       vector<space_and_path>::iterator last_rr_session_dir;
+       std::vector<space_and_path> session_dirs;
+       std::vector<space_and_path>::iterator last_rr_session_dir;
        uint32_t _total_free_4k_blocks;
        Glib::Mutex space_lock;
 
-       string get_best_session_directory_for_new_source ();
+       std::string get_best_session_directory_for_new_source ();
        void refresh_disk_space ();
 
        mutable gint _playback_load;
@@ -1663,7 +1658,7 @@ class Session : public PBD::StatefulDestructible, public boost::noncopyable
                static Pool pool;
        };
 
-       typedef list<Click*> Clicks;
+       typedef std::list<Click*> Clicks;
 
        Clicks                 clicks;
        bool                  _clicking;
@@ -1684,11 +1679,11 @@ class Session : public PBD::StatefulDestructible, public boost::noncopyable
        void   clear_clicks ();
        void   click (nframes_t start, nframes_t nframes);
 
-       vector<Route*> master_outs;
+       std::vector<Route*> master_outs;
 
        /* range playback */
 
-       list<AudioRange> current_audio_range;
+       std::list<AudioRange> current_audio_range;
        bool _play_range;
        void set_play_range (bool yn);
        void setup_auto_play ();
index 3e35c42de25ffe5fe9fe35e0b25db661c2663d74..9a3f4d4d77b80b66c2fd51060dae90ec73d2d30a 100644 (file)
 
 namespace ARDOUR {
 
-using std::string;
-using std::vector;
-using PBD::sys::path;
-
 class SessionDirectory
 {
 public:
@@ -37,12 +33,12 @@ public:
        /**
         * @param session_path An absolute path to a session directory.
         */
-       SessionDirectory (const path& session_path);
+       SessionDirectory (const PBD::sys::path& session_path);
 
        /**
         * @return the absolute path to the root directory of the session
         */
-       const path root_path() const { return m_root_path; }
+       const PBD::sys::path root_path() const { return m_root_path; }
 
        /**
         * @return the absolute path to the directory in which 
@@ -53,47 +49,47 @@ public:
         * directory otherwise it will return the new location
         * of root_path()/interchange/session_name/audiofiles
         */
-       const path sound_path () const;
+       const PBD::sys::path sound_path () const;
        
        /**
         * @return the absolute path to the directory in which 
         * the session stores MIDI files, ie
         * root_path()/interchange/session_name/midifiles
         */
-       const path midi_path () const;
+       const PBD::sys::path midi_path () const;
        
        /**
         * @return the absolute path to the directory in which 
         * the session stores MIDNAM patch files, ie
         * root_path()/interchange/session_name/patchfiles
         */
-       const path midi_patch_path () const;
+       const PBD::sys::path midi_patch_path () const;
 
        /**
         * @return The absolute path to the directory in which all
         * peak files are stored for a session.
         */
-       const path peak_path () const;
+       const PBD::sys::path peak_path () const;
 
        /**
         * @return The absolute path to the directory that audio
         * files are moved to when they are no longer part of the
         * session.
         */
-       const path dead_sound_path () const;
+       const PBD::sys::path dead_sound_path () const;
        
        /**
         * @return The absolute path to the directory that midi
         * files are moved to when they are no longer part of the
         * session.
         */
-       const path dead_midi_path () const;
+       const PBD::sys::path dead_midi_path () const;
 
        /**
         * @return The absolute path to the directory that audio
         * files are created in by default when exporting.
         */
-       const path export_path () const;
+       const PBD::sys::path export_path () const;
 
        /**
         * @return true if session directory and all the required 
@@ -120,22 +116,22 @@ protected:
         * @return The path to the old style sound directory.
         * It isn't created by create().
         */
-       const path old_sound_path () const;
+       const PBD::sys::path old_sound_path () const;
 
        /**
         * @return The path to the directory under which source directories
         * are created for different source types.
         * i.e root_path()/interchange/session_name
         */
-       const path sources_root() const;
+       const PBD::sys::path sources_root() const;
 
        /**
         * @return a vector containing the fullpath of all subdirectories.
         */
-       const vector<PBD::sys::path> sub_directories () const;
+       const std::vector<PBD::sys::path> sub_directories () const;
 
        /// The path to the root of the session directory.
-       const path m_root_path;
+       const PBD::sys::path m_root_path;
 };
 
 } // namespace ARDOUR
index e579c5102b30bd8bba779f355de7e7592008da39..71dd59904cf3e0ed46ac56a9eaeb9b75bdebaf93 100644 (file)
@@ -31,9 +31,6 @@
 
 namespace ARDOUR {
 
-using std::string;
-using Glib::ustring;
-
 /** Represents metadata associated to a Session
  * Metadata can be accessed and edited via this class.
  * Exported files can also be tagged with this data.
@@ -45,68 +42,68 @@ class SessionMetadata : public PBD::StatefulDestructible
        ~SessionMetadata ();
        
        /*** Accessing ***/
-       ustring comment () const;
-       ustring copyright () const;
-       ustring isrc () const;
+       Glib::ustring comment () const;
+       Glib::ustring copyright () const;
+       Glib::ustring isrc () const;
        uint32_t year () const;
 
-       ustring grouping () const;
-       ustring title () const;
-       ustring subtitle () const;
+       Glib::ustring grouping () const;
+       Glib::ustring title () const;
+       Glib::ustring subtitle () const;
        
-       ustring artist () const;
-       ustring album_artist () const;
-       ustring lyricist () const;
-       ustring composer () const;
-       ustring conductor () const;
-       ustring remixer () const;
-       ustring arranger () const;
-       ustring engineer () const;
-       ustring producer () const;
-       ustring dj_mixer () const;
-       ustring mixer () const;
+       Glib::ustring artist () const;
+       Glib::ustring album_artist () const;
+       Glib::ustring lyricist () const;
+       Glib::ustring composer () const;
+       Glib::ustring conductor () const;
+       Glib::ustring remixer () const;
+       Glib::ustring arranger () const;
+       Glib::ustring engineer () const;
+       Glib::ustring producer () const;
+       Glib::ustring dj_mixer () const;
+       Glib::ustring mixer () const;
        
-       ustring album () const;
-       ustring compilation () const;
-       ustring disc_subtitle () const;
+       Glib::ustring album () const;
+       Glib::ustring compilation () const;
+       Glib::ustring disc_subtitle () const;
        uint32_t disc_number () const;
        uint32_t total_discs () const;
        uint32_t track_number () const;
        uint32_t total_tracks () const;
        
-       ustring genre () const;
+       Glib::ustring genre () const;
        
        /*** Editing ***/
-       void set_comment (const ustring &);
-       void set_copyright (const ustring &);
-       void set_isrc (const ustring &);
+       void set_comment (const Glib::ustring &);
+       void set_copyright (const Glib::ustring &);
+       void set_isrc (const Glib::ustring &);
        void set_year (uint32_t);
        
-       void set_grouping (const ustring &);
-       void set_title (const ustring &);
-       void set_subtitle (const ustring &);
+       void set_grouping (const Glib::ustring &);
+       void set_title (const Glib::ustring &);
+       void set_subtitle (const Glib::ustring &);
        
-       void set_artist (const ustring &);
-       void set_album_artist (const ustring &);
-       void set_lyricist (const ustring &);
-       void set_composer (const ustring &);
-       void set_conductor (const ustring &);
-       void set_remixer (const ustring &);
-       void set_arranger (const ustring &);
-       void set_engineer (const ustring &);
-       void set_producer (const ustring &);
-       void set_dj_mixer (const ustring &);
-       void set_mixer (const ustring &);
+       void set_artist (const Glib::ustring &);
+       void set_album_artist (const Glib::ustring &);
+       void set_lyricist (const Glib::ustring &);
+       void set_composer (const Glib::ustring &);
+       void set_conductor (const Glib::ustring &);
+       void set_remixer (const Glib::ustring &);
+       void set_arranger (const Glib::ustring &);
+       void set_engineer (const Glib::ustring &);
+       void set_producer (const Glib::ustring &);
+       void set_dj_mixer (const Glib::ustring &);
+       void set_mixer (const Glib::ustring &);
        
-       void set_album (const ustring &);
-       void set_compilation (const ustring &);
-       void set_disc_subtitle (const ustring &);
+       void set_album (const Glib::ustring &);
+       void set_compilation (const Glib::ustring &);
+       void set_disc_subtitle (const Glib::ustring &);
        void set_disc_number (uint32_t);
        void set_total_discs (uint32_t);
        void set_track_number (uint32_t);
        void set_total_tracks (uint32_t);
        
-       void set_genre (const ustring &);
+       void set_genre (const Glib::ustring &);
        
        /*** Serialization ***/
        XMLNode & get_state ();
@@ -114,17 +111,17 @@ class SessionMetadata : public PBD::StatefulDestructible
 
   private:
        
-       typedef std::pair<ustring, ustring> Property;
-       typedef std::map<ustring, ustring> PropertyMap;
+       typedef std::pair<Glib::ustring, Glib::ustring> Property;
+       typedef std::map<Glib::ustring, Glib::ustring> PropertyMap;
        PropertyMap map;
 
-       XMLNode * get_xml (const ustring & name);
+       XMLNode * get_xml (const Glib::ustring & name);
        
-       ustring get_value (const ustring & name) const;
-       uint32_t get_uint_value (const ustring & name) const;
+       Glib::ustring get_value (const Glib::ustring & name) const;
+       uint32_t get_uint_value (const Glib::ustring & name) const;
        
-       void set_value (const ustring & name, const ustring & value);
-       void set_value (const ustring & name, uint32_t value);
+       void set_value (const Glib::ustring & name, const Glib::ustring & value);
+       void set_value (const Glib::ustring & name, uint32_t value);
 };
 
 } // namespace ARDOUR
index f9b1cdb63f236051f2245e7e7f411c750d6e7cc3..a41456b8f7a7b344267004930b8e1e74a2168030 100644 (file)
 
 namespace ARDOUR {
 
-using std::string;
-using std::vector;
-using namespace PBD;
-
 /**
  * Attempt to create a backup copy of a file.
  *
@@ -38,7 +34,7 @@ using namespace PBD;
  *
  * @return true if successful, false otherwise.
  */
-bool create_backup_file (const sys::path & file_path);
+bool create_backup_file (const PBD::sys::path & file_path);
 
 /**
  * Get the absolute paths to all state files in the directory 
@@ -47,8 +43,8 @@ bool create_backup_file (const sys::path & file_path);
  * @param directory_path The absolute path to a directory.
  * @param result vector to contain resulting state files.
  */
-void get_state_files_in_directory (const sys::path & directory_path,
-               vector<sys::path>& result);
+void get_state_files_in_directory (const PBD::sys::path & directory_path,
+                                  std::vector<PBD::sys::path>& result);
 
 /**
  * Given a vector of paths to files, return a vector containing
@@ -58,7 +54,7 @@ void get_state_files_in_directory (const sys::path & directory_path,
  * @return a vector containing a list of file names without any 
  * filename extension.
  */
-vector<string> get_file_names_no_extension (const vector<sys::path> & file_paths);
+std::vector<std::string> get_file_names_no_extension (const std::vector<PBD::sys::path> & file_paths);
 
 } // namespace ARDOUR
 
index 8a9f6f584cc1ae30dc0d951a4884a5baf2137b78..f7e43e60732ab4ec785a799dda9d6a0d942887fd 100644 (file)
@@ -6,9 +6,7 @@
 
 namespace ARDOUR {
 
-using std::string;
-
-int find_session (string str, string& path, string& snapshot, bool& isnew);
+int find_session (std::string str, std::string& path, std::string& snapshot, bool& isnew);
 
 /**
  * Create a SessionDirectory at the path specified by
@@ -19,7 +17,7 @@ int find_session (string str, string& path, string& snapshot, bool& isnew);
  *
  * @see SessionDirectory
  */
-bool create_session_directory (const string& session_directory_path);
+bool create_session_directory (const std::string& session_directory_path);
 
 };
 
index cf6b15f3a4f523c862e7ba8c913d830d7e00e620..23ece80df210faf6188cfd828ff2ba8fed8d7c2c 100644 (file)
@@ -23,8 +23,6 @@
 #include <string>
 #include <stdint.h>
 
-using std::string;
-
 // Use this define when initializing arrarys for use in sndfile_*_format()
 #define SNDFILE_STR_LENGTH 32
 
@@ -44,15 +42,15 @@ extern const char * const sndfile_endian_formats_strings[SNDFILE_ENDIAN_FORMATS+
 
 extern int sndfile_endian_formats[SNDFILE_ENDIAN_FORMATS];
 
-int sndfile_bitdepth_format_from_string(string);
-int sndfile_header_format_from_string(string);
-int sndfile_endian_format_from_string(string);
-string sndfile_file_ending_from_string(string);
+int sndfile_bitdepth_format_from_string (std::string);
+int sndfile_header_format_from_string (std::string);
+int sndfile_endian_format_from_string (std::string);
+std::string sndfile_file_ending_from_string (std::string);
 
 int sndfile_data_width (int format);
 
 // It'd be nice if libsndfile did this for us
-string sndfile_major_format(int);
-string sndfile_minor_format(int);
+std::string sndfile_major_format (int);
+std::string sndfile_minor_format (int);
 
 #endif /* __sndfile_helpers_h__ */
index 6c4e61d5696cad6be21043f81950d05085eabbaa..d50dbad664082d87550c00fada3b588d6e9a5795 100644 (file)
@@ -60,7 +60,7 @@ class SndFileSource : public AudioFileSource {
        static void setup_standard_crossfades (nframes_t sample_rate);
        static const Source::Flag default_writable_flags;
 
-       static int get_soundfile_info (const Glib::ustring& path, SoundFileInfo& _info, string& error_msg);
+       static int get_soundfile_info (const Glib::ustring& path, SoundFileInfo& _info, std::string& error_msg);
 
   protected:
        void set_header_timeline_position ();
index 59ec18e818cbd1aa1ae7bffdabe0392d85194ddd..ff6e23dc796abe42c5ebd28dd837978413fe1fa8 100644 (file)
 
 namespace ARDOUR {
 
-using std::string;
-
 class TapeFileMatcher
 {
 public:
 
        TapeFileMatcher();
 
-       bool matches (const string& filename) const;
+       bool matches (const std::string& filename) const;
 
 private:
 
index 075bcf1e3c07a7ae0e6a92aea5fe13bc35d60391..f40ed1c5523a7433e4ec7f6929afe04d2d1ddbdd 100644 (file)
@@ -8,14 +8,11 @@
 
 namespace ARDOUR {
 
-       using std::vector;
-       using namespace PBD;
+       PBD::sys::path system_template_directory ();
+       PBD::sys::path system_route_template_directory ();
 
-       sys::path system_template_directory ();
-       sys::path system_route_template_directory ();
-
-       sys::path user_template_directory ();
-       sys::path user_route_template_directory ();
+       PBD::sys::path user_template_directory ();
+       PBD::sys::path user_route_template_directory ();
 
        struct TemplateInfo {
            std::string name;
index e82639ef517f405efa0463f53acbd0521063eab1..d88c5366d22a63a7570b924eebc873edea2649e5 100644 (file)
@@ -36,9 +36,6 @@
 
 class XMLNode;
 
-using std::list;
-using std::vector;
-
 namespace ARDOUR {
 class Meter;
 class Tempo {
@@ -123,7 +120,7 @@ class MeterSection : public MetricSection, public Meter {
                : MetricSection (start), Meter (bpb, note_type) {}
        MeterSection (const XMLNode&);
 
-       static const string xml_state_node_name;
+       static const std::string xml_state_node_name;
 
        XMLNode& get_state() const;
 };
@@ -136,12 +133,12 @@ class TempoSection : public MetricSection, public Tempo {
                : MetricSection (start), Tempo (qpm, note_type) {}
        TempoSection (const XMLNode&);
 
-       static const string xml_state_node_name;
+       static const std::string xml_state_node_name;
 
        XMLNode& get_state() const;
 };
 
-typedef list<MetricSection*> Metrics;
+typedef std::list<MetricSection*> Metrics;
 
 class TempoMap : public PBD::StatefulDestructible
 {
@@ -169,7 +166,7 @@ class TempoMap : public PBD::StatefulDestructible
                    : type (ty), frame (f), meter (&m), tempo (&t), bar (b), beat (e) {}
        };
 
-       typedef vector<BBTPoint> BBTPointList;
+       typedef std::vector<BBTPoint> BBTPointList;
        
        template<class T> void apply_with_metrics (T& obj, void (T::*method)(const Metrics&)) {
                Glib::RWLock::ReaderLock lm (lock);
index 6351596f74f80fe2a1b3ac9d92ff1e0c5a473c82..beacbc1e014e8643eabcb50e3d479910a7f5937d 100644 (file)
@@ -36,7 +36,7 @@ class TempoMapImportHandler : public ElementImportHandler
 {
   public:
        TempoMapImportHandler (XMLTree const & source, Session & session);
-       string get_info () const;
+       std::string get_info () const;
 };
 
 class TempoMapImporter : public ElementImporter
@@ -46,7 +46,7 @@ class TempoMapImporter : public ElementImporter
   public:
        TempoMapImporter (XMLTree const & source, Session & session, XMLNode const & node);
 
-       virtual string get_info () const;
+       virtual std::string get_info () const;
 
   protected:
        bool _prepare_move ();
index 96826e3eaaa9880bc994703de24cd665e7841197..700380417bfc349dad9e6c2481e5bfe90f1826c1 100644 (file)
@@ -34,7 +34,7 @@ class Region;
 class Track : public Route
 {
   public:
-       Track (Session&, string name, Route::Flag f = Route::Flag (0), TrackMode m = Normal, DataType default_type = DataType::AUDIO);
+       Track (Session&, std::string name, Route::Flag f = Route::Flag (0), TrackMode m = Normal, DataType default_type = DataType::AUDIO);
 
        virtual ~Track ();
        
@@ -60,7 +60,7 @@ class Track : public Route
 
        boost::shared_ptr<Diskstream> diskstream() const { return _diskstream; }
 
-       virtual int use_diskstream (string name) = 0;
+       virtual int use_diskstream (std::string name) = 0;
        virtual int use_diskstream (const PBD::ID& id) = 0;
 
        nframes_t update_total_latency();
@@ -122,7 +122,7 @@ class Track : public Route
            ~FreezeRecord();
 
            boost::shared_ptr<Playlist>        playlist;
-           vector<FreezeRecordProcessorInfo*> processor_info;
+           std::vector<FreezeRecordProcessorInfo*> processor_info;
            bool                               have_mementos;
            FreezeState                        state;
            gain_t                          gain;
index d4ca3b8b601625990b2ac97c605fe71c47684ad5..1cb7e376e4c825794577ce0a21160db55cf5db7e 100644 (file)
 #include <jack/types.h>
 #include "ardour/plugin.h"
 
-using std::string;
-using std::vector;
-using std::list;
-using std::map;
-
 struct _FSTHandle;
 struct _FST;
 typedef struct _FSTHandle FSTHandle;
@@ -76,8 +71,8 @@ class VSTPlugin : public ARDOUR::Plugin
                        ChanMapping in, ChanMapping out,
                        nframes_t nframes, nframes_t offset);
 
-       string describe_parameter (Evoral::Parameter);
-       string state_node_name() const { return "vst"; }
+       std::string describe_parameter (Evoral::Parameter);
+       std::string state_node_name() const { return "vst"; }
        void print_parameter (uint32_t, char*, uint32_t len) const;
 
        bool parameter_is_audio(uint32_t i) const { return false; }
@@ -85,8 +80,8 @@ class VSTPlugin : public ARDOUR::Plugin
        bool parameter_is_input(uint32_t i) const { return true; }
        bool parameter_is_output(uint32_t i) const { return false; }
 
-       bool load_preset (const string preset_label );
-       bool save_preset(string name);
+       bool load_preset (const std::string preset_label );
+       bool save_preset (std::string name);
 
        bool has_editor () const;
 
index b64a9ee08dc10ecdf6076151e69cedb3eeed7be9..3dc97c622ae19fdcac4d59c2dd6beee148577998 100644 (file)
@@ -35,6 +35,7 @@
 #include "i18n.h"
 
 using namespace std;
+using namespace PBD;
 using namespace ARDOUR;
 
 namespace {
index aaa237c860719e7d68683f285a7e88a0f54bb9f6..905169345ff488decfbac9914afbcadb6f2ac746 100644 (file)
@@ -31,6 +31,7 @@
 #include "ardour/playlist.h"
 #include "ardour/playlist_factory.h"
 
+using namespace std;
 using namespace PBD;
 using namespace ARDOUR;
 
index 90fc7bac4d88478031e3cd9ff26675dc1256259e..de5d6f7102cd97bde49576f0553cc5b3c2bf30be 100644 (file)
@@ -34,6 +34,7 @@
 
 #include "i18n.h"
 
+using namespace std;
 using namespace PBD;
 using namespace ARDOUR;
 
index f822cfb8328bdfd0bad9a102971fec6f1b55191d..dd453f34c3a3c497331b8eb301192d50099d1901 100644 (file)
@@ -32,6 +32,7 @@
 
 #include "i18n.h"
 
+using namespace std;
 using namespace PBD;
 using namespace ARDOUR;
 
index 48aaeb8d08ee6cc82a5c3c5ed65d44126b057234..3f5665ee9957a8c48f17753beabd390279f092fd 100644 (file)
@@ -58,6 +58,7 @@
 
 #include "i18n.h"
 
+using namespace std;
 using namespace ARDOUR;
 using namespace PBD;
 using namespace Glib;
index bf8c0b5260a0f9aa1a3c4f0b5393d237c5593571..bb8aedae882936af008e0a4480e7aca90bcdd6fd 100644 (file)
@@ -81,7 +81,7 @@ BroadcastInfo::set_from_session (Session const & session, int64_t time_ref)
 }
 
 bool
-BroadcastInfo::load_from_file (string const & filename)
+BroadcastInfo::load_from_file (std::string const & filename)
 {
        SNDFILE * file = 0;
        SF_INFO info;
@@ -112,7 +112,7 @@ BroadcastInfo::load_from_file (SNDFILE* sf)
        return true;
 }
 
-string
+std::string
 BroadcastInfo::get_description () const
 {
        return info->description;
@@ -136,12 +136,12 @@ BroadcastInfo::get_origination_time () const
 {
        struct tm ret;
        
-       string date = info->origination_date;
+       std::string date = info->origination_date;
        ret.tm_year = atoi (date.substr (0, 4)) - 1900;
        ret.tm_mon = atoi (date.substr (5, 2));
        ret.tm_mday = atoi (date.substr (8, 2));
        
-       string time = info->origination_time;
+       std::string time = info->origination_time;
        ret.tm_hour = atoi (time.substr (0,2));
        ret.tm_min = atoi (time.substr (3,2));
        ret.tm_sec = atoi (time.substr (6,2));
@@ -149,20 +149,20 @@ BroadcastInfo::get_origination_time () const
        return ret;
 }
 
-string
+std::string
 BroadcastInfo::get_originator () const
 {
        return info->originator;
 }
 
-string
+std::string
 BroadcastInfo::get_originator_ref () const
 {
        return info->originator_reference;
 }
 
 bool
-BroadcastInfo::write_to_file (string const & filename)
+BroadcastInfo::write_to_file (std::string const & filename)
 {
        SNDFILE * file = 0;
        SF_INFO info;
@@ -192,7 +192,7 @@ BroadcastInfo::write_to_file (SNDFILE* sf)
 }
 
 void
-BroadcastInfo::set_description (string const & desc)
+BroadcastInfo::set_description (std::string const & desc)
 {
        _has_info = true;
        
@@ -229,7 +229,7 @@ BroadcastInfo::set_origination_time (struct tm * now)
 }
 
 void
-BroadcastInfo::set_originator (string const & str)
+BroadcastInfo::set_originator (std::string const & str)
 {
        _has_info = true;
        
@@ -242,7 +242,7 @@ BroadcastInfo::set_originator (string const & str)
 }
 
 void
-BroadcastInfo::set_originator_ref (string const & str)
+BroadcastInfo::set_originator_ref (std::string const & str)
 {
        _has_info = true;
        
index 98d056a8f175be1e97664fa89a9556c70f412f79..c21f239a451cb7b60757d7804238703def4f21db 100644 (file)
@@ -28,6 +28,7 @@
 
 #include "i18n.h"
 
+using namespace std;
 using namespace ARDOUR;
 using namespace PBD;
 
index e60104dad8d2c42e622fbc5b8fc84edd67b3e1ca..b11c578455f316d04f4e9d65e947a14f6fd48efc 100644 (file)
@@ -26,6 +26,8 @@
 
 static const char* state_node_name = "Channels";
 
+using namespace std;
+
 namespace ARDOUR {
 
 // infinite/zero chan count stuff, for setting minimums and maximums, etc.
index e2b41375651b621c0ea25827919f2543ff55e154..a74195b4c0718b9b09c028281e3b546bc14184f9 100644 (file)
@@ -27,6 +27,8 @@ namespace {
        const char * const surfaces_env_variable_name = "ARDOUR_SURFACES_PATH";
 } // anonymous
 
+using namespace PBD;
+
 namespace ARDOUR {
 
 SearchPath
index 53b5741622cc72ff33050964019090016f0405d1..c360e8220677910845fb67a896674b08623bebc4 100644 (file)
@@ -22,6 +22,7 @@
 
 #include <algorithm>
 
+using namespace std;
 using namespace ARDOUR;
 
 bool ElementImportHandler::_dirty = false;
index 500ad8714709ab82c1370e79b9075d0d7c684a49..eb6e39d13ab643f283d905df7b6cbe39a3ce75e0 100644 (file)
@@ -28,6 +28,7 @@
 
 #include "i18n.h"
 
+using namespace std;
 using namespace PBD;
 using namespace ARDOUR;
 
index b835cca55944fd3864f216500873ff0dd4ba2fd4..4fe8c09cb6a1500f3178b501b8fcbf45aa91bccd 100644 (file)
@@ -34,6 +34,8 @@
 #include "pbd/convert.h"
 #include "pbd/pthread_utils.h"
 
+using namespace PBD;
+
 namespace ARDOUR
 {
 
index ebf6ff53b811cee2acebe8b095bcda1f55ff2e5d..2f8fdeacdf6f10d91e430d45d1ad2f62d858f42f 100644 (file)
@@ -27,6 +27,8 @@
 
 #include "i18n.h"
 
+using namespace std;
+using namespace Glib;
 using namespace PBD;
 
 namespace ARDOUR
index d2453caf37250e7254f828416f12e1abbf78af7f..539d4f2027183f646ac4fb60f9c094b5cdce1800 100644 (file)
@@ -34,6 +34,7 @@
 #include "i18n.h"
 
 using namespace PBD;
+using namespace Glib;
 
 namespace ARDOUR
 {
index d6337b0a5f9f9c4c0f4f4b4a1282b7fbc4269f39..a3fa389e8c5e8886be60c24f78223d335260e716 100644 (file)
@@ -22,6 +22,8 @@
 
 #include "i18n.h"
 
+using namespace std;
+
 namespace ARDOUR
 {
 
index c26ba7e1b3be49f5d784757b2980784b9b9617b6..d80001ac8822855285481260f4e14eb30fb6dd6f 100644 (file)
@@ -33,8 +33,8 @@
 #include "ardour/export_processor.h"
 #include "ardour/export_failed.h"
 
+using namespace std;
 using namespace PBD;
-using std::ofstream;
 
 namespace ARDOUR
 {
index b8e50987676f1238caf64513d39a2d2ee6f4dff1..093803daa6d8d0884d194b9771ba5a1ef04fdc2f 100644 (file)
@@ -22,6 +22,7 @@
 
 #include "ardour/session.h"
 
+using namespace std;
 using namespace ARDOUR;
 
 ExportPreset::ExportPreset (string filename, Session & s) :
index c0a537b92750bf3bc66936166e3745b54be644c4..529a4e3d9ff62b2b2f2d4aa04a43ad563b016da6 100644 (file)
@@ -42,6 +42,8 @@
 
 #include "i18n.h"
 
+using namespace std;
+using namespace Glib;
 using namespace PBD;
 
 namespace ARDOUR
index 38c968a5899124bd6c833dddf5e3e7c557dcc752..0fbea94cc1f286b57c9997bc63307c4668835327 100644 (file)
@@ -46,6 +46,7 @@
 
 #include "i18n.h"
 
+using namespace std;
 using namespace ARDOUR;
 using namespace PBD;
 using namespace Glib;
index bc2055c0dc7b21b306a2a460ea6f0bc3e1013e6f..7372c467a65bf2ca3d4dbf43ae4c0883a229d924 100644 (file)
@@ -27,6 +27,8 @@
 
 #define WITH_STATIC_PATHS 1
 
+using namespace PBD;
+
 namespace ARDOUR {
 
 using std::string;
index 14cec979a9f1f7e6e84ac36e4fe999e5ca4d7b56..32e942b924ed2da77eb606bea3a591ec91c3e82a 100644 (file)
@@ -32,6 +32,7 @@
 
 #include "i18n.h"
 
+using namespace std;
 using namespace ARDOUR;
 using namespace PBD;
 
index 417902b8051392dca1adfebd1b08ed582c448405..e28bbe9ccbf0ee256b6a7f19162758d32a52866f 100644 (file)
@@ -14,6 +14,7 @@
 
 #include "i18n.h"
 
+using namespace std;
 using namespace PBD;
 
 int
index ef9605f467ad14a876e7b2dac90ec8a877519ca3..ff7e665ff1e7463697d0de6e34030124379464a1 100644 (file)
 
 #include "i18n.h"
 
+using namespace std;
 using namespace ARDOUR;
 using namespace PBD;
 
-
 static boost::shared_ptr<ImportableSource>
 open_importable_source (const string& path, nframes_t samplerate, ARDOUR::SrcQuality quality)
 {
index ebf309ac3b60d19da0116ee22510611ad0269ac3..289b0a8fa9e35443df18bcd7fccd2ac9d6252850 100644 (file)
@@ -28,6 +28,7 @@
 
 #include "i18n.h"
 
+using namespace std;
 using namespace ARDOUR;
 using namespace sigc;
 
index 48a8cb1f6763d82bc270dae3d1a22c1f4c81e4ce..31a49e44f56d68850bdf98a7bedcbf73e2e2ed39 100644 (file)
@@ -29,6 +29,7 @@
 
 #include "i18n.h"
 
+using namespace std;
 using namespace PBD;
 using namespace ARDOUR;
 
index c90a7ed0bed4b637dc2868c852deb56cbed6b633..f3dbfeace1d4758756591d86279fc6dbe5f45e3d 100644 (file)
@@ -37,6 +37,7 @@
 
 #include "i18n.h"
 
+using namespace std;
 using namespace ARDOUR;
 using namespace sigc;
 using namespace MIDI;
index 0039d4e5365406a24ce50f4c9a4e6b67ba3ca896..91a8531b56a70decc1d30dc08ac591e5960b79dd 100644 (file)
@@ -33,6 +33,7 @@
 
 #include "i18n.h"
 
+using namespace std;
 using namespace ARDOUR;
 using namespace sigc;
 using namespace MIDI;
index efd636e7f4825b8353d05c5509c0f339f813b3fd..eea726cdca15bf8793a964690ef4f08c2981dd72 100644 (file)
@@ -27,6 +27,7 @@
 
 #include "i18n.h"
 
+using namespace std;
 using namespace ARDOUR;
 using namespace PBD;
 
index 01510fe456f93a818a5f1c464a065dca0cdc21aa..4da4c1b192db1ca4b56fd68ef248d6b18a517870 100644 (file)
@@ -26,6 +26,7 @@
 
 #include "i18n.h"
 
+using namespace std;
 using namespace ARDOUR;
 using namespace PBD;
 
index 44b2d96532cf0ed46d9859513fab896a959cfe67..72e34aec01b60431a620cd9dc885a2656dc8054d 100644 (file)
@@ -54,6 +54,7 @@
 #include "i18n.h"
 #include <locale.h>
 
+using namespace std;
 using namespace ARDOUR;
 using namespace PBD;
 
index 612e446e08415f97aeaa6e38254a8f3cb25c201c..d56998b5509342d9ac94a1cc3e605346e3e55d0b 100644 (file)
@@ -28,6 +28,7 @@
 
 namespace ARDOUR {
 
+using namespace std;
 using namespace PBD::sys;
 
 SessionDirectory::SessionDirectory (const path& session_path)
index ddad759deba6f3fb00179b6d604d9dc7f6b4944e..06f4598af7f42d836df7341ea85cee3411b5ef95 100644 (file)
@@ -31,6 +31,7 @@
 
 #include "i18n.h"
 
+using namespace std;
 using namespace ARDOUR;
 using namespace PBD;
 
index 8f3680e7b1ff0e17e88c9f4159f1669ae0621b9a..8805cf5a0d9e953e5091888900e1072f940c9f79 100644 (file)
 #include <iostream>
 #include <sstream>
 
+using namespace std;
+using namespace Glib;
 using namespace ARDOUR;
 
-
 SessionMetadata::SessionMetadata ()
 {      
        /*** General ***/
index 00ab88d0ef48732848f6b00de00aee3e9a96b9d3..7f12cb40665f1ecb4a2fd2df07bccd33c138c350 100644 (file)
@@ -27,6 +27,9 @@
 
 #include "i18n.h"
 
+using namespace std;
+using namespace PBD;
+
 namespace ARDOUR {
 
 bool
@@ -52,7 +55,7 @@ create_backup_file (const sys::path & file_path)
 
 void
 get_state_files_in_directory (const sys::path & directory_path,
-               vector<sys::path> & result)
+                             vector<sys::path> & result)
 {
        Glib::PatternSpec state_file_pattern('*' + string(statefile_suffix));
        
index de86b217caf35c3fdb1f9d47e1ce6078ed7aface..264ce10c82ba5dcc2fd04d1c91c8ae73efea5cd0 100644 (file)
@@ -36,6 +36,7 @@
 
 #include "i18n.h"
 
+using namespace std;
 using namespace ARDOUR;
 using namespace PBD;
 
index 3dfa862674a5101440df302e45c8376a579ec057..4800d3b09908df9049ca27d7f8f905054799d9de 100644 (file)
@@ -7,6 +7,7 @@
 
 namespace ARDOUR {
 
+using namespace std;   
 using namespace PBD;
 
 bool
index 9661ccf66251475cb4d8f144bbcd7bf52553dbde..bedb7e629bc5db0685b80e82008046ed697a317e 100644 (file)
@@ -22,6 +22,8 @@
 
 #include "i18n.h"
 
+using namespace std;
+
 namespace {
 
 const char* const tape_file_regex_string = X_("/T[0-9][0-9][0-9][0-9]-");
index 3f380c0fd6445f9d72201126ef51f2b510ff7659..a7a7eee321c946041cb61417efd8e9c03c6e1325 100644 (file)
@@ -12,6 +12,9 @@
 #include "ardour/filename_extensions.h"
 #include "ardour/io.h"
 
+using namespace std;
+using namespace PBD;
+
 namespace ARDOUR {
 
 sys::path
index d934eac2afb207fc895d629536cab17bffe183af..457f8c7b536216d413024c4026b1c87674641dc1 100644 (file)
@@ -29,6 +29,7 @@
 
 #include "i18n.h"
 
+using namespace std;
 using namespace PBD;
 using namespace ARDOUR;
 
index f36f6de84f4b4dcbccdeabdb7d5979ad36cc99af..468aa16f8e54e01b04f0cbe9a5ceef6856a2c061 100644 (file)
@@ -21,7 +21,6 @@
 #define __pbd_gtk_ui_h__
 
 #include <string>
-#include <queue>
 #include <map>
 
 #include <stdint.h>
@@ -42,9 +41,6 @@
 #include <pbd/error.h>
 #include <pbd/receiver.h>
 
-using std::string;
-using std::queue;
-
 class Touchable;
 
 namespace Gtkmm2ext {
@@ -89,7 +85,7 @@ struct UIRequest : public BaseUI::BaseRequestObject {
 class UI : public Receiver, public AbstractUI<UIRequest>
 {
   public:
-       UI (string name, int *argc, char **argv[]);
+       UI (std::string name, int *argc, char **argv[]);
        virtual ~UI ();
 
        static UI *instance() { return theGtkUI; }
@@ -109,7 +105,7 @@ class UI : public Receiver, public AbstractUI<UIRequest>
        bool running ();
        void quit    ();
        void kill    ();
-       int  load_rcfile (string, bool themechange = false);
+       int  load_rcfile (std::string, bool themechange = false);
        void run (Receiver &old_receiver);
 
        void set_state (Gtk::Widget *w, Gtk::StateType state);
@@ -127,7 +123,7 @@ class UI : public Receiver, public AbstractUI<UIRequest>
                Glib::signal_idle().connect (bind (slot (&UI::idle_delete<T>), obj));
        }
 
-       Gdk::Color get_color (const string& prompt, bool& picked, const Gdk::Color *initial = 0);
+       Gdk::Color get_color (const std::string& prompt, bool& picked, const Gdk::Color *initial = 0);
 
        /* starting is sent just before we enter the main loop,
           stopping just after we return from it (at the top level)
index 9cc639cd75e9e5799ec1d436af4035dd93a23a45..004e2d99db268525e881bf55a718ab0cfd01ebfc 100644 (file)
@@ -24,8 +24,6 @@
 
 #include <pbd/transmitter.h>
 
-using std::string;
-
 namespace Gtkmm2ext {
 
 class TextViewer : public Gtk::Window, public Transmitter
@@ -46,7 +44,7 @@ class TextViewer : public Gtk::Window, public Transmitter
        Gtk::TextView& text()         { return etext; }
        Gtk::Button& dismiss_button() { return dismiss; }
 
-       void insert_file (const string &);
+       void insert_file (const std::string &);
        void scroll_to_bottom ();
        
        void deliver ();
index 93b47d9d45bdc6ced096fd02279c63e169014ca4..62a131c096c4df8d329b172d4d585b84e1f97207 100644 (file)
@@ -24,8 +24,6 @@
 
 namespace Gtkmm2ext {
 
-using std::string;
-
 /**
  * \class The WindowTitle class can be used to maintain the 
  * consistancy of window titles between windows and dialogs.
@@ -42,19 +40,19 @@ public:
         * which will may be the application name or the document 
         * name in a document based application.
         */
-       WindowTitle(const string& title);
+       WindowTitle(const std::string& title);
 
        /**
         * Add an string element to the window title.
         */
-       void operator+= (const string&);
+       void operator+= (const std::string&);
 
        /// @return The window title string.
-       const string& get_string () { return m_title;}
+       const std::string& get_string () { return m_title;}
 
 private:
 
-       string                         m_title;
+       std::string                         m_title;
 
 };
 
index 7c942d7f200f946f6b3c94f9d9b98f2e7fb07aef..68913aeef67a92b94db9bbeac32d2d99f8ff612c 100644 (file)
@@ -21,6 +21,8 @@
 
 #include "i18n.h"
 
+using namespace std;
+
 namespace {
        
 // I don't know if this should be translated.
index ac2d78e0e3184ae0e4b5c31447de115d0fe773f5..cd3207cffcca07aa231fa4a6f96c3ebf76f1e88d 100644 (file)
@@ -89,15 +89,15 @@ class Patch : public PBD::Stateful
 public:
 
        Patch(PatchBank* a_bank = 0) : _bank(a_bank) {};
-       Patch(string a_number, string a_name, PatchBank* a_bank = 0) 
+       Patch(std::string a_number, std::string a_name, PatchBank* a_bank = 0) 
                : _number(a_number), _name(a_name), _bank(a_bank) {};
        virtual ~Patch() {};
 
-       const string& name() const               { return _name; }
-       void set_name(const string a_name)       { _name = a_name; }
+       const std::string& name() const          { return _name; }
+       void set_name(const std::string a_name)       { _name = a_name; }
 
-       const string& number() const             { return _number; }
-       void set_number(const string a_number)   { _number = a_number; }
+       const std::string& number() const        { return _number; }
+       void set_number(const std::string a_number)   { _number = a_number; }
        
        const PatchPrimaryKey&   patch_primary_key()   const { return _id; }
 
@@ -105,8 +105,8 @@ public:
        int      set_state (const XMLNode& a_node);
 
 private:
-       string            _number;
-       string            _name;
+       std::string        _number;
+       std::string        _name;
        // cannot use a boost::shared_ptr here in order to avoid retain cycles
        PatchBank*        _bank;
        PatchPrimaryKey   _id;
@@ -117,12 +117,12 @@ class PatchBank : public PBD::Stateful
 public:
        typedef std::list<boost::shared_ptr<Patch> > PatchNameList;
 
-       PatchBank() : _id(0) {};
-       PatchBank(string a_name, PatchPrimaryKey* an_id = 0) : _name(a_name), _id(an_id) {};
+       PatchBank () : _id(0) {};
+       PatchBank (std::string a_name, PatchPrimaryKey* an_id = 0) : _name(a_name), _id(an_id) {};
        virtual ~PatchBank() { delete _id; };
 
-       const string& name() const               { return _name; }
-       void set_name(const string a_name)       { _name = a_name; }
+       const std::string& name() const               { return _name; }
+       void set_name(const std::string a_name)       { _name = a_name; }
 
        const PatchNameList& patch_name_list() const { return _patch_name_list; }
        
@@ -132,7 +132,7 @@ public:
        int      set_state (const XMLNode& a_node);
 
 private:
-       string            _name;
+       std::string       _name;
        PatchNameList     _patch_name_list;
        PatchPrimaryKey*  _id;
 };
@@ -149,10 +149,10 @@ public:
 
        ChannelNameSet() {};
        virtual ~ChannelNameSet() {};
-       ChannelNameSet(string a_name) : _name(a_name) {};
+       ChannelNameSet(std::string a_name) : _name(a_name) {};
 
-       const string& name() const               { return _name; }
-       void set_name(const string a_name)       { _name = a_name; }
+       const std::string& name() const          { return _name; }
+       void set_name(const std::string a_name)  { _name = a_name; }
        
        const PatchBanks& patch_banks() const    { return _patch_banks; }
 
@@ -206,7 +206,7 @@ public:
        int      set_state (const XMLNode& a_node);
 
 private:
-       string _name;
+       std::string _name;
        AvailableForChannels _available_for_channels;
        PatchBanks           _patch_banks;
        PatchMap             _patch_map;
@@ -217,21 +217,21 @@ class Note : public PBD::Stateful
 {
 public:
        Note() {};
-       Note(string a_number, string a_name) : _number(a_number), _name(a_name) {};
+       Note(std::string a_number, std::string a_name) : _number(a_number), _name(a_name) {};
        ~Note() {};
 
-       const string& name() const               { return _name; }
-       void set_name(const string a_name)       { _name = a_name; }
+       const std::string& name() const               { return _name; }
+       void set_name(const std::string a_name)       { _name = a_name; }
 
-       const string& number() const             { return _number; }
-       void set_number(const string a_number)   { _number = a_number; }
+       const std::string& number() const             { return _number; }
+       void set_number(const std::string a_number)   { _number = a_number; }
 
        XMLNode& get_state (void);
        int      set_state (const XMLNode& a_node);
 
 private:
-       string _number;
-       string _name;
+       std::string _number;
+       std::string _name;
 };
 
 class NoteNameList : public PBD::Stateful
@@ -239,11 +239,11 @@ class NoteNameList : public PBD::Stateful
 public:
        typedef std::list<boost::shared_ptr<Note> > Notes;
        NoteNameList() {};
-       NoteNameList(string a_name) : _name(a_name) {};
+       NoteNameList (std::string a_name) : _name(a_name) {};
        ~NoteNameList() {};
 
-       const string& name() const               { return _name; }
-       void set_name(const string a_name)       { _name = a_name; }
+       const std::string& name() const          { return _name; }
+       void set_name(const std::string a_name)       { _name = a_name; }
 
        const Notes& notes() const { return _notes; }
 
@@ -251,7 +251,7 @@ public:
        int      set_state (const XMLNode& a_node);
 
 private:
-       string _name;
+       std::string _name;
        Notes  _notes;
 };
 
@@ -261,14 +261,14 @@ public:
        CustomDeviceMode() {};
        virtual ~CustomDeviceMode() {};
 
-       const string& name() const               { return _name; }
-       void set_name(const string a_name)       { _name = a_name; }
+       const std::string& name() const          { return _name; }
+       void set_name(const std::string a_name)  { _name = a_name; }
 
        
        XMLNode& get_state (void);
        int      set_state (const XMLNode& a_node);
        
-       string channel_name_set_name_by_channel(uint8_t channel) {
+       std::string channel_name_set_name_by_channel(uint8_t channel) {
                assert(channel <= 15);
                return _channel_name_set_assignments[channel]; 
        }
@@ -276,8 +276,8 @@ public:
 private:
        /// array index = channel number
        /// string contents = name of channel name set 
-       string _name;
-       string _channel_name_set_assignments[16];
+       std::string _name;
+       std::string _channel_name_set_assignments[16];
 };
 
 class MasterDeviceNames : public PBD::Stateful
@@ -295,24 +295,24 @@ public:
        MasterDeviceNames() {};
        virtual ~MasterDeviceNames() {};
        
-       const string& manufacturer() const { return _manufacturer; }
-       void set_manufacturer(const string a_manufacturer) { _manufacturer = a_manufacturer; }
+       const std::string& manufacturer() const { return _manufacturer; }
+       void set_manufacturer(const std::string a_manufacturer) { _manufacturer = a_manufacturer; }
        
        const Models& models() const { return _models; }
        void set_models(const Models some_models) { _models = some_models; }
        
        const CustomDeviceModeNames& custom_device_mode_names() const { return _custom_device_mode_names; }
        
-       boost::shared_ptr<CustomDeviceMode> custom_device_mode_by_name(string mode_name) {
+       boost::shared_ptr<CustomDeviceMode> custom_device_mode_by_name(std::string mode_name) {
                assert(mode_name != "");
                return _custom_device_modes[mode_name];
        }
        
-       boost::shared_ptr<ChannelNameSet> channel_name_set_by_device_mode_and_channel(string mode, uint8_t channel) {
+       boost::shared_ptr<ChannelNameSet> channel_name_set_by_device_mode_and_channel(std::string mode, uint8_t channel) {
                return _channel_name_sets[custom_device_mode_by_name(mode)->channel_name_set_name_by_channel(channel)];
        }
        
-       boost::shared_ptr<Patch> find_patch(string mode, uint8_t channel, PatchPrimaryKey& key) {
+       boost::shared_ptr<Patch> find_patch(std::string mode, uint8_t channel, PatchPrimaryKey& key) {
                return channel_name_set_by_device_mode_and_channel(mode, channel)->find_patch(key);
        }
        
@@ -320,7 +320,7 @@ public:
        int      set_state (const XMLNode& a_node);
        
 private:
-       string                _manufacturer;
+       std::string           _manufacturer;
        Models                _models;
        CustomDeviceModes     _custom_device_modes;
        CustomDeviceModeNames _custom_device_mode_names;
@@ -335,11 +335,11 @@ public:
        typedef std::map<std::string, boost::shared_ptr<MasterDeviceNames> > MasterDeviceNamesList;
        
        MIDINameDocument() {};
-       MIDINameDocument(const string &filename) : _document(XMLTree(filename)) { set_state(*_document.root()); };
+       MIDINameDocument(const std::string &filename) : _document(XMLTree(filename)) { set_state(*_document.root()); };
        virtual ~MIDINameDocument() {};
 
-       const string& author() const { return _author; }
-       void set_author(const string an_author) { _author = an_author; }
+       const std::string& author() const { return _author; }
+       void set_author(const std::string an_author) { _author = an_author; }
        
        const MasterDeviceNamesList& master_device_names_by_model() const { return _master_device_names_list; }
        
@@ -349,7 +349,7 @@ public:
        int      set_state (const XMLNode& a_node);
 
 private:
-       string                        _author;
+       std::string                   _author;
        MasterDeviceNamesList         _master_device_names_list;
        XMLTree                       _document;
        MasterDeviceNames::Models     _all_models;
index 1e9ff03c6ff912f5175d748eb39346ed116b861e..3705600b22c1066e6692857753cc5b91d5b895d4 100644 (file)
@@ -27,6 +27,8 @@
 
 #include "pbd/error.h"
 
+using namespace std;
+
 namespace PBD {
 
 void
index 4d82ed2fe6152796d1423bb84de12034102179ab..9c05962a6b8130c78d84ecdb4cf3ba3f0c52260f 100644 (file)
@@ -33,6 +33,8 @@
 
 #include "i18n.h"
 
+using namespace std;
+
 namespace PBD {
 
 namespace sys {
index a5c3c65c163ace88b3e845aa7bf2cf96e391dea6..7f0ac62d0f85dffdb3d77c0edf9c8f184d995fef 100644 (file)
 
 namespace PBD {
 
-vector<sys::path>
+std::vector<sys::path>
 system_data_directories ()
 {
-       vector<sys::path> tmp;
+       std::vector<sys::path> tmp;
        const char * const * dirs;
 
        dirs = g_get_system_data_dirs ();
@@ -40,10 +40,10 @@ system_data_directories ()
        return tmp;
 }
 
-vector<sys::path>
+std::vector<sys::path>
 system_config_directories ()
 {
-       vector<sys::path> tmp;
+       std::vector<sys::path> tmp;
        const char * const * dirs;
 
        dirs = g_get_system_config_dirs ();
index 9b41de9544c0a3f085fc911d416340c2268f4c9a..e3917081759011a255ed5b63a6f9e9b8481605c5 100644 (file)
@@ -30,6 +30,7 @@
 #include "pbd/pathscanner.h"
 #include "pbd/stl_delete.h"
 
+using namespace std;
 using namespace PBD;
 
 vector<string *> *
index ce5422db132ef8646e820c07552e409e0d36c4ea..d63f02f78704fb5900c99fd98da4c598454ab20a 100644 (file)
@@ -29,9 +29,6 @@
 
 namespace PBD {
 
-using std::string;
-using std::vector;
-
 /**
  * Get a list of files in a directory.
  * @note You must join path with result to get the absolute path
@@ -42,7 +39,7 @@ using std::vector;
  */
 void
 get_files_in_directory (const sys::path& path,
-                        vector<string>& result);
+                        std::vector<std::string>& result);
 
 /**
  * Takes a directory path and returns all the files in the directory
@@ -55,7 +52,7 @@ get_files_in_directory (const sys::path& path,
 void
 find_matching_files_in_directory (const sys::path& directory,
                                   const Glib::PatternSpec& pattern,
-                                  vector<sys::path>& result);
+                                  std::vector<sys::path>& result);
 
 /**
  * Takes a number of directory paths and returns all the files matching
@@ -66,9 +63,9 @@ find_matching_files_in_directory (const sys::path& directory,
  * @param result A vector in which to place the resulting matches.
  */
 void
-find_matching_files_in_directories (const vector<sys::path>& directory_paths,
+find_matching_files_in_directories (const std::vector<sys::path>& directory_paths,
                                     const Glib::PatternSpec& pattern,
-                                    vector<sys::path>& result);
+                                    std::vector<sys::path>& result);
 
 /**
  * Takes a SearchPath and puts a list of all the files in the search path
@@ -81,7 +78,7 @@ find_matching_files_in_directories (const vector<sys::path>& directory_paths,
 void
 find_matching_files_in_search_path (const SearchPath& search_path,
                                     const Glib::PatternSpec& pattern,
-                                    vector<sys::path>& result);
+                                    std::vector<sys::path>& result);
 
 /**
  * Takes a search path and a file name and place the full path
@@ -91,7 +88,7 @@ find_matching_files_in_search_path (const SearchPath& search_path,
  */
 bool
 find_file_in_search_path (const SearchPath& search_path,
-                          const string& filename,
+                          const std::string& filename,
                           sys::path& result);
                        
 } // namespace PBD
index 2d21a3fafceca338e4af650074cf049e20330ab1..f7cf1882fd380c1f1522f06b3a10c88af9f5fa16 100644 (file)
@@ -66,31 +66,29 @@ namespace PBD {
 
 namespace sys {
 
-using std::string;
-
 class path
 {
 public:
        path() : m_path("") { }
        path(const path & p) : m_path(p.m_path) { }
-       path(const string & s) : m_path(s) { }
+       path(const std::string & s) : m_path(s) { }
        path(const char* s) : m_path(s) { }
        
        path& operator=(const path& p) { m_path = p.m_path; return *this;}
-       path& operator=(const string& s) { m_path = s; return *this; }
+       path& operator=(const std::string& s) { m_path = s; return *this; }
        path& operator=(const char* s) { m_path = s; return *this; }
 
        path& operator/=(const path& rhs);
-       path& operator/=(const string& s);
+       path& operator/=(const std::string& s);
        path& operator/=(const char* s);
 
-       const string to_string() const { return m_path; }
+       const std::string to_string() const { return m_path; }
 
        /**
         * @return the last component of the path, if the path refers to
         * a file then it will be the entire filename including any extension.
         */
-       string leaf() const; 
+       std::string leaf () const; 
 
        /**
         * @returns the directory component of a path without any trailing
@@ -101,7 +99,7 @@ public:
 
 private:
 
-       string m_path;
+       std::string m_path;
 };
 
 class filesystem_error : public std::runtime_error
@@ -184,7 +182,7 @@ void copy_file(const path & from_path, const path & to_path);
  * ::basename and most other forms of basename in that it removes the
  * extension from the filename if the filename has one.
  */ 
-string basename (const path& p);
+std::string basename (const path& p);
 
 /**
  * @return If the filename contains a dot, return a substring of the
@@ -193,7 +191,7 @@ string basename (const path& p);
  *
  * @param p a file path.
  */
-string extension (const path& p);
+std::string extension (const path& p);
 
 } // namespace sys
 
index 8b767a3dfceb8051796f9cbbe37d988273c3ce51..a31de8c64e44cb29fe905307b2707796330ef13a 100644 (file)
 
 namespace PBD {
 
-       using std::vector;
+       std::vector<sys::path> system_data_directories ();
 
-       vector<sys::path> system_data_directories ();
-
-       vector<sys::path> system_config_directories ();
+       std::vector<sys::path> system_config_directories ();
 
 } // namespace PBD
 
index e89da70c206e92a92ddd3facbdf314d3d31ef567..b1347c169d827054719e653ace891019bf7d8e88 100644 (file)
@@ -65,7 +65,7 @@ public:
        }
 
        virtual XMLNode &get_state() {
-               string name;
+               std::string name;
                if (before && after) {
                        name = "MementoCommand";
                } else if (before) {
index 550aab163ad7534006abeacc0d7a04e2b0b36e5e..1b7ef58655101d10676283c5ea37383b2fa2c649 100644 (file)
 #include <string>
 #include <regex.h>
 
-using std::string;
-using std::vector;
-
 class PathScanner
 
 {
   public:
-       vector<string *> *operator() (const string &dirpath,
-                                     bool (*filter)(const string &, void *arg),
-                                     void *arg, 
-                                     bool match_fullpath = true,
-                                     bool return_fullpath = true,
-                                     long limit = -1,
-                                     bool recurse = false) {
+       std::vector<std::string *> *operator() (const std::string &dirpath,
+                                               bool (*filter)(const std::string &, void *arg),
+                                               void *arg, 
+                                               bool match_fullpath = true,
+                                               bool return_fullpath = true,
+                                               long limit = -1,
+                                               bool recurse = false) {
                return run_scan (dirpath,
-                                (bool (PathScanner::*)(const string &)) 0, 
+                                (bool (PathScanner::*)(const std::string &)) 0, 
                                 filter, 
                                 arg,
                                 match_fullpath,
@@ -47,49 +44,49 @@ class PathScanner
                                 limit, recurse);
        }
 
-       vector<string *> *operator() (const string &dirpath,
-                                     const string &regexp,
-                                     bool match_fullpath = true,
-                                     bool return_fullpath = true,
-                                     long limit = -1,
-                                     bool recurse = false);
-    
-       string *find_first (const string &dirpath,
-                           const string &regexp,
-                           bool match_fullpath = true,
-                           bool return_fullpath = true);
+       std::vector<std::string *> *operator() (const std::string &dirpath,
+                                               const std::string &regexp,
+                                               bool match_fullpath = true,
+                                               bool return_fullpath = true,
+                                               long limit = -1,
+                                               bool recurse = false);
+       
+       std::string *find_first (const std::string &dirpath,
+                                const std::string &regexp,
+                                bool match_fullpath = true,
+                                bool return_fullpath = true);
        
-       string *find_first (const string &dirpath,
-                           bool (*filter)(const string &, void *),
-                           void *arg,
-                           bool match_fullpath = true,
-                           bool return_fullpath = true);
+       std::string *find_first (const std::string &dirpath,
+                                bool (*filter)(const std::string &, void *),
+                                void *arg,
+                                bool match_fullpath = true,
+                                bool return_fullpath = true);
        
   private:
        regex_t compiled_pattern;
        
-       bool regexp_filter (const string &str) {
+       bool regexp_filter (const std::string &str) {
                return regexec (&compiled_pattern, str.c_str(), 0, 0, 0) == 0;
        }
        
-       vector<string *> *run_scan (const string &dirpath,
-                                   bool (PathScanner::*mfilter) (const string &),
-                                   bool (*filter)(const string &, void *),
-                                   void *arg,
-                                   bool match_fullpath,
-                                   bool return_fullpath,
-                                   long limit,
-                                   bool recurse = false);
+       std::vector<std::string *> *run_scan (const std::string &dirpath,
+                                             bool (PathScanner::*mfilter) (const std::string &),
+                                             bool (*filter)(const std::string &, void *),
+                                             void *arg,
+                                             bool match_fullpath,
+                                             bool return_fullpath,
+                                             long limit,
+                                             bool recurse = false);
 
-       vector<string *> *run_scan_internal (vector<string*>*, 
-                                            const string &dirpath,
-                                   bool (PathScanner::*mfilter) (const string &),
-                                   bool (*filter)(const string &, void *),
-                                   void *arg,
-                                   bool match_fullpath,
-                                   bool return_fullpath,
-                                   long limit,
-                                   bool recurse = false);
+       std::vector<std::string *> *run_scan_internal (std::vector<std::string*>*, 
+                                                      const std::string &dirpath,
+                                                      bool (PathScanner::*mfilter) (const std::string &),
+                                                      bool (*filter)(const std::string &, void *),
+                                                      void *arg,
+                                                      bool match_fullpath,
+                                                      bool return_fullpath,
+                                                      long limit,
+                                                      bool recurse = false);
 };
 
 #endif // __libmisc_pathscanner_h__
index 93192ce7873322da97d1be27047b8a594b31bce6..5e32c7d67fd818cc05815c4b8046b03786a0e314 100644 (file)
@@ -26,8 +26,6 @@
 
 #include "transmitter.h"
 
-using std::vector;
-
 class strstream;
 
 class Receiver : virtual public sigc::trackable
@@ -43,7 +41,7 @@ class Receiver : virtual public sigc::trackable
        virtual void receive (Transmitter::Channel, const char *) = 0;
 
   private:
-       vector<sigc::connection *> connections;
+       std::vector<sigc::connection *> connections;
 };
 
 #endif  // __libmisc_receiver_h__
index 6163aae607fbf56692413d93fd39adc7a47a9711..1148384daa5e4a0a6ca64ea9db078a56706d66b1 100644 (file)
@@ -27,9 +27,6 @@
 
 namespace PBD {
 
-using std::string;
-using std::vector;
-
 /**
  * @class The SearchPath class is a helper class for getting a 
  * vector of paths contained in a search path string where a 
@@ -39,7 +36,7 @@ using std::vector;
  * The SearchPath class does not test whether the paths exist
  * or are directories. It is basically just a container.
  */
-class SearchPath : public vector<sys::path>
+class SearchPath : public std::vector<sys::path>
 {
 public:
        /**
@@ -58,14 +55,14 @@ public:
         * 
         * @param search_path A path string.
         */
-       SearchPath (const string& search_path);
+       SearchPath (const std::string& search_path);
 
        /**
         * Initialize SearchPath from a sys::path.
         *
         * @param directory_path A directory path.
         */
-       SearchPath (const sys::path& directory_path);
+       SearchPath (const PBD::sys::path& directory_path);
 
        /**
         * Initialize SearchPath from a vector of paths that may or may
@@ -73,7 +70,7 @@ public:
         *
         * @param path A path.
         */
-       SearchPath (const vector<sys::path>& paths);
+       SearchPath (const std::vector<PBD::sys::path>& paths);
 
        /**
         * @return a search path string.
@@ -81,7 +78,7 @@ public:
         * The string that is returned contains the platform specific
         * path separator.
         */
-       const string to_string () const;
+       const std::string to_string () const;
 
        /**
         * Add all the directories in path to this.
@@ -91,7 +88,7 @@ public:
        /**
         * Add another directory path to the search path.
         */
-       SearchPath& operator+= (const sys::path& directory_path);
+       SearchPath& operator+= (const PBD::sys::path& directory_path);
        
        /**
         * Concatenate another SearchPath onto this.
@@ -101,18 +98,18 @@ public:
        /**
         * Add another path to the search path.
         */
-       SearchPath& operator+ (const sys::path& directory_path);
+       SearchPath& operator+ (const PBD::sys::path& directory_path);
 
        /**
         * Add a sub-directory to each path in the search path.
         * @param subdir The directory name, it should not contain 
         * any path separating tokens.
         */
-       SearchPath& add_subdirectory_to_paths (const string& subdir);
+       SearchPath& add_subdirectory_to_paths (const std::string& subdir);
 
 protected:
        void add_directory (const sys::path& directory_path);
-       void add_directories (const vector<sys::path>& paths);
+       void add_directories (const std::vector<PBD::sys::path>& paths);
 };
 
 } // namespace PBD
index e5900fc6528477e7b40b7b207db7cae537e01d88..c9a1d0aecc3dc1526879459b11f3fd35a9ddd0d8 100644 (file)
 
 #include "receiver.h"
 
-using std::string;
-using std::cout;
-using std::endl;
-
 class TextReceiver : public Receiver 
 {
   public:
-       TextReceiver (const string &n);
+       TextReceiver (const std::string &n);
 
   protected:
        void receive (Transmitter::Channel, const char *);
 
   private:
-       string name;
+       std::string name;
 };
 
 #endif //__libmisc_textreceiver_h__
index 61ac9bd8d84463452ab994d251f03022f24d557f..6da521dd263762df0c8eee431ed197daa7db66dd 100644 (file)
 
 #include <sigc++/sigc++.h>
 
-using std::cout;
-using std::cerr;
-using std::endl;
-
 class Transmitter : public std::stringstream
 
 {
@@ -82,11 +78,11 @@ endmsg (std::ostream &ostr)
           see if ostr == cout, and handle it specially.
        */
 
-       if (&ostr == &cout) {
-               cout << endl;
+       if (&ostr == &std::cout) {
+               std::cout << std::endl;
                return ostr;
-       } else if (&ostr == &cerr) {
-               cerr << endl;
+       } else if (&ostr == &std::cerr) {
+               std::cerr << std::endl;
                return ostr;
        }
 
@@ -97,7 +93,7 @@ endmsg (std::ostream &ostr)
                   it and assume that that will be enough.
                */
                
-               ostr << endl;
+               ostr << std::endl;
        }
 
        return ostr;
index 9427c7070c8f5f278f2083970c96050c06433c72..65ab0f2c03ac4d2eb105f893482678df9d70c8a8 100644 (file)
 #ifndef __XML_H
 #define __XML_H
 
-using std::string;
-using std::map;
-using std::list;
-
 class XMLTree;
 class XMLNode;
 class XMLProperty;
 
-typedef list<XMLNode *>                   XMLNodeList;
-typedef list<boost::shared_ptr<XMLNode> > XMLSharedNodeList;
-typedef XMLNodeList::iterator             XMLNodeIterator;
-typedef XMLNodeList::const_iterator       XMLNodeConstIterator;
-typedef list<XMLProperty*>                XMLPropertyList;
-typedef XMLPropertyList::iterator         XMLPropertyIterator;
-typedef XMLPropertyList::const_iterator   XMLPropertyConstIterator;
-typedef map<string, XMLProperty*>         XMLPropertyMap;
+typedef std::list<XMLNode *>                   XMLNodeList;
+typedef std::list<boost::shared_ptr<XMLNode> > XMLSharedNodeList;
+typedef XMLNodeList::iterator                  XMLNodeIterator;
+typedef XMLNodeList::const_iterator            XMLNodeConstIterator;
+typedef std::list<XMLProperty*>                XMLPropertyList;
+typedef XMLPropertyList::iterator              XMLPropertyIterator;
+typedef XMLPropertyList::const_iterator        XMLPropertyConstIterator;
+typedef std::map<std::string, XMLProperty*>    XMLPropertyMap;
 
 class XMLTree {
 public:
        XMLTree();
-       XMLTree(const string& fn, bool validate = false);
+       XMLTree(const std::string& fn, bool validate = false);
        XMLTree(const XMLTree*);
        ~XMLTree();
 
        XMLNode* root() const         { return _root; }
        XMLNode* set_root(XMLNode* n) { return _root = n; }
 
-       const string& filename() const               { return _filename; }
-       const string& set_filename(const string& fn) { return _filename = fn; }
+       const std::string& filename() const               { return _filename; }
+       const std::string& set_filename(const std::string& fn) { return _filename = fn; }
 
        int compression() const { return _compression; }
        int set_compression(int);
 
        bool read() { return read_internal(false); }
-       bool read(const string& fn) { set_filename(fn); return read_internal(false); }
+       bool read(const std::string& fn) { set_filename(fn); return read_internal(false); }
        bool read_and_validate() { return read_internal(true); }
-       bool read_and_validate(const string& fn) { set_filename(fn); return read_internal(true); }
-       bool read_buffer(const string&);
+       bool read_and_validate(const std::string& fn) { set_filename(fn); return read_internal(true); }
+       bool read_buffer(const std::string&);
 
        bool write() const;
-       bool write(const string& fn) { set_filename(fn); return write(); }
+       bool write(const std::string& fn) { set_filename(fn); return write(); }
 
        void debug (FILE*) const;
 
-       const string& write_buffer() const;
+       const std::string& write_buffer() const;
 
 private:
        bool read_internal(bool validate);
        
-       string   _filename;
-       XMLNode* _root;
-       int      _compression;
+       std::string _filename;
+       XMLNode*    _root;
+       int         _compression;
 };
 
 class XMLNode {
 public:
-       XMLNode(const string& name);
-       XMLNode(const string& name, const string& content);
+       XMLNode(const std::string& name);
+       XMLNode(const std::string& name, const std::string& content);
        XMLNode(const XMLNode& other);
        ~XMLNode();
 
-       const string& name() const { return _name; }
+       const std::string& name() const { return _name; }
 
        bool          is_content() const { return _is_content; }
-       const string& content()    const { return _content; }
-       const string& set_content(const string&);
-       XMLNode*      add_content(const string& s = string());
+       const std::string& content()    const { return _content; }
+       const std::string& set_content(const std::string&);
+       XMLNode*      add_content(const std::string& s = std::string());
 
-       const XMLNodeList& children(const string& str = string()) const;
+       const XMLNodeList& children(const std::string& str = std::string()) const;
        XMLNode* child(const char*) const;
        XMLNode* add_child(const char *);
        XMLNode* add_child_copy(const XMLNode&);
@@ -97,27 +93,27 @@ public:
 
        const XMLPropertyList& properties() const { return _proplist; }
        XMLProperty*       property(const char*);
-       XMLProperty*       property(const string&);
+       XMLProperty*       property(const std::string&);
        const XMLProperty* property(const char* n)   const { return ((XMLNode*)this)->property(n); }
-       const XMLProperty* property(const string& n) const { return ((XMLNode*)this)->property(n); }
+       const XMLProperty* property(const std::string& n) const { return ((XMLNode*)this)->property(n); }
        
-       XMLProperty* add_property(const char* name, const string& value);
+       XMLProperty* add_property(const char* name, const std::string& value);
        XMLProperty* add_property(const char* name, const char* value = "");
        XMLProperty* add_property(const char* name, const long value);
 
-       void remove_property(const string&);
+       void remove_property(const std::string&);
 
        /** Remove all nodes with the name passed to remove_nodes */
-       void remove_nodes(const string&);
+       void remove_nodes(const std::string&);
        /** Remove and delete all nodes with the name passed to remove_nodes */
-       void remove_nodes_and_delete(const string&);
+       void remove_nodes_and_delete(const std::string&);
        /** Remove and delete all nodes with property prop matching val */
-       void remove_nodes_and_delete(const string& propname, const string& val);
+       void remove_nodes_and_delete(const std::string& propname, const std::string& val);
 
 private:
-       string              _name;
+       std::string         _name;
        bool                _is_content;
-       string              _content;
+       std::string         _content;
        XMLNodeList         _children;
        XMLPropertyList     _proplist;
        XMLPropertyMap      _propmap;
@@ -126,27 +122,27 @@ private:
 
 class XMLProperty {
 public:
-       XMLProperty(const string& n, const string& v = string());
+       XMLProperty(const std::string& n, const std::string& v = std::string());
        ~XMLProperty();
 
-       const string& name() const { return _name; }
-       const string& value() const { return _value; }
-       const string& set_value(const string& v) { return _value = v; }
+       const std::string& name() const { return _name; }
+       const std::string& value() const { return _value; }
+       const std::string& set_value(const std::string& v) { return _value = v; }
 
 private:
-       string _name;
-       string _value;
+       std::string _name;
+       std::string _value;
 };
 
 class XMLException: public std::exception {
 public:
-       explicit XMLException(const string msg) : _message(msg) {}
+       explicit XMLException(const std::string msg) : _message(msg) {}
        virtual ~XMLException() throw() {}
 
        virtual const char* what() const throw() { return _message.c_str(); }
 
 private:
-       string _message;
+       std::string _message;
 };
 
 #endif /* __XML_H */
index 456ff3ae79f714c743a93721ff1b0fc8b136444e..c9df4595dbea1c1ea99efbe40c607b5530f004d1 100644 (file)
@@ -23,6 +23,7 @@
 #include "pbd/receiver.h"
 #include "pbd/transmitter.h"
 
+using namespace std;
 using namespace sigc;
 
 Receiver::Receiver () {}
index 2238b233fe3c5ba0f78d28084b87e7dbbcf81af3..f305e24f90ac76db135ea230fa4a7fbece7206b7 100644 (file)
@@ -21,6 +21,8 @@
 #include "pbd/search_path.h"
 #include "pbd/error.h"
 
+using namespace std;
+
 namespace {
 
 #ifdef WIN32
index 8846226ad30a3402d29f2742c7f5376e509e4b9c..12ae4306eda9572068c85c459492803b53554fe4 100644 (file)
@@ -27,6 +27,8 @@
 
 #include "i18n.h"
 
+using namespace std;
+
 namespace PBD {
 
 Stateful::Stateful ()
index 2cd1cf3712a2746578a02a562b8dd1c3ae968db3..19c84c6b143f13a5d42f8ceae66658a708f81872 100644 (file)
@@ -23,6 +23,8 @@
 
 #include "pbd/textreceiver.h"
 
+using namespace std;
+
 TextReceiver::TextReceiver (const string &n)
 
 {
index 9f7ef6007f26510095ba17b77634fce101a4c22c..ec1c8a7b60f51cef8878be0b6cf379927d9f8555 100644 (file)
@@ -12,6 +12,8 @@
 
 #define XML_VERSION "1.0"
 
+using namespace std;
+
 static XMLNode*           readnode(xmlNodePtr);
 static void               writenode(xmlDocPtr, XMLNode*, xmlNodePtr, int);
 static XMLSharedNodeList* find_impl(xmlXPathContext* ctxt, const string& xpath);