From e31f5d999837b0d0d63dc824c50e9da4acca7244 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Wed, 4 Oct 2017 00:35:29 +0200 Subject: Clean up State API: * Processor implement get_state(), classes derived from Processor implement protected ::state() -- as documented in processor.h * likewise for Route, Track: make ::state() a protected interface * removal of "full_state", use explicit "template_save" * use RAII/Unwind to skip saving automation-state --- libs/ardour/ardour/send.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'libs/ardour/ardour/send.h') diff --git a/libs/ardour/ardour/send.h b/libs/ardour/ardour/send.h index 8d9cdaa0af..c37055cd94 100644 --- a/libs/ardour/ardour/send.h +++ b/libs/ardour/ardour/send.h @@ -36,7 +36,7 @@ class DelayLine; class LIBARDOUR_API Send : public Delivery { - public: +public: Send (Session&, boost::shared_ptr pannable, boost::shared_ptr, Delivery::Role r = Delivery::Send, bool ignore_bitslot = false); virtual ~Send (); @@ -51,8 +51,6 @@ class LIBARDOUR_API Send : public Delivery bool metering() const { return _metering; } void set_metering (bool yn) { _metering = yn; } - XMLNode& state (bool full); - XMLNode& get_state (); int set_state(const XMLNode&, int version); PBD::Signal0 SelfDestruct; @@ -83,7 +81,9 @@ class LIBARDOUR_API Send : public Delivery static uint32_t how_many_sends(); static std::string name_and_id_new_send (Session&, Delivery::Role r, uint32_t&, bool); - protected: +protected: + XMLNode& state (); + bool _metering; boost::shared_ptr _gain_control; boost::shared_ptr _amp; @@ -91,7 +91,7 @@ class LIBARDOUR_API Send : public Delivery boost::shared_ptr _send_delay; boost::shared_ptr _thru_delay; - private: +private: /* disallow copy construction */ Send (const Send&); -- cgit v1.2.3