fix crash when copy'ing latent plugins
[ardour.git] / libs / ardour / ardour / export_preset.h
index de321aacd65127ac31369de9e816f4b5c0cba887..b11ab75babcc985f63421bbf268359b133285c60 100644 (file)
 
 #include <string>
 
-#include <pbd/uuid.h>
-#include <pbd/xml++.h>
+#include "pbd/uuid.h"
+#include "pbd/xml++.h"
 
-using std::string;
+#include "ardour/libardour_visibility.h"
 
 namespace ARDOUR
 {
 
 class Session;
 
-class ExportPreset {
+class LIBARDOUR_API 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);
        void set_local_state (XMLNode & state);
-       
+
        XMLNode const * get_global_state () const { return global.root(); }
        XMLNode const * get_local_state () const { return local; }
-       
+
        void save (std::string const & filename);
        void remove_local () const;
 
   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;
        XMLNode *   local;
-       
+
 };
 
 } // namespace ARDOUR