diff options
author | Hans Baier <hansfbaier@googlemail.com> | 2008-04-10 07:30:10 +0000 |
---|---|---|
committer | Hans Baier <hansfbaier@googlemail.com> | 2008-04-10 07:30:10 +0000 |
commit | 9aa8af5a28abbb86c9ae86c6991838eb6828d0a9 (patch) | |
tree | bfb401905c2d24b9d511a6762373c618f092203f /libs/ardour/ardour/midi_model.h | |
parent | 1a0044b35d2cca7e7316d6afbb8e4955b6d7a627 (diff) |
* refactored (un)marshalling of DeltaCommand into cleaner code using sigc
git-svn-id: svn://localhost/ardour2/branches/3.0@3245 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/ardour/midi_model.h')
-rw-r--r-- | libs/ardour/ardour/midi_model.h | 18 |
1 files changed, 7 insertions, 11 deletions
diff --git a/libs/ardour/ardour/midi_model.h b/libs/ardour/ardour/midi_model.h index 5d16c30836..3ba0fc1279 100644 --- a/libs/ardour/ardour/midi_model.h +++ b/libs/ardour/ardour/midi_model.h @@ -124,20 +124,16 @@ public: void remove(const boost::shared_ptr<Note> note); private: - class NoteMarshaller { - public: - XMLNode *operator()(const boost::shared_ptr<Note> note); - }; + XMLNode &marshal_note(const boost::shared_ptr<Note> note); + boost::shared_ptr<Note> unmarshal_note(XMLNode *xml_note); - class NoteUnmarshaller { - public: - boost::shared_ptr<Note> operator()(XMLNode *xml_note); - }; - MidiModel& _model; const std::string _name; - std::list< boost::shared_ptr<Note> > _added_notes; - std::list< boost::shared_ptr<Note> > _removed_notes; + + typedef std::list< boost::shared_ptr<Note> > NoteList; + + NoteList _added_notes; + NoteList _removed_notes; }; MidiModel::DeltaCommand* new_delta_command(const std::string name="midi edit"); |