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/session.h | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'libs/ardour/ardour/session.h') diff --git a/libs/ardour/ardour/session.h b/libs/ardour/ardour/session.h index 88195e626a..d7c621d51f 100644 --- a/libs/ardour/ardour/session.h +++ b/libs/ardour/ardour/session.h @@ -563,10 +563,7 @@ public: std::vector possible_states() const; static std::vector possible_states (std::string path); - XMLNode& get_state(); - int set_state(const XMLNode& node, int version); // not idempotent - XMLNode& get_template(); - bool export_track_state (boost::shared_ptr rl, const std::string& path); + bool export_track_state (boost::shared_ptr rl, const std::string& path); /// The instant xml file is written to the session directory void add_instant_xml (XMLNode&, bool write_to_config = true); @@ -1903,7 +1900,11 @@ private: SwitchToSnapshot }; - XMLNode& state(bool, snapshot_t snapshot_type = NormalSave); + XMLNode& state (bool save_template, snapshot_t snapshot_type = NormalSave); + + XMLNode& get_state (); + int set_state (const XMLNode& node, int version); // not idempotent + XMLNode& get_template (); /* click track */ typedef std::list Clicks; -- cgit v1.2.3