Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added crop and delete functionality #3

Open
wants to merge 20 commits into
base: trigger-stuff
Choose a base branch
from

Conversation

hamzadis
Copy link

This adds crop and delete functionality using the cursors as selections. As noted in the commit message, there is a lot of code duplication between the analog and logic classes. Some of the code is almost identical, except that it deals with different types. So it seems a small refactor would be in order at some point.

The erase functions handle the segments as sequential data, respecting their individual samplerate in the process. That means that this code should be mostly compatible with any future additions in that area (Sweep).

@jhol jhol force-pushed the trigger-stuff branch 2 times, most recently from 089071a to 1fff13a Compare November 30, 2014 22:33
This change adds a lot of code duplication between the data::Analog and
data::Logic classes. The solution could be to create a generic parent
class that handles the common parts (e.g. SegmantHolder<SegmentT>), or
to use a utility class.
Properly handle the case when decoders are not enabled.
Use a lock when accessing data.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants