Merge CV, ver=5.1; ops/methods from HV, and interface from CV where possible
[goodguy/history.git] / cinelerra-5.1 / cinelerra / adcuts.h
diff --git a/cinelerra-5.1/cinelerra/adcuts.h b/cinelerra-5.1/cinelerra/adcuts.h
new file mode 100644 (file)
index 0000000..3e8b434
--- /dev/null
@@ -0,0 +1,35 @@
+#ifndef _ADCUTS_H_
+#define _ADCUTS_H_
+
+#include "adcuts.inc"
+#include "bcwindowbase.inc"
+#include "filexml.inc"
+#include "file.inc"
+#include "linklist.h"
+
+class AdCut : public ListItem<AdCut>
+{
+public:
+        double time;
+       int action;
+
+       AdCut(double t, int a) : time(t), action(a) {}
+       ~AdCut() {}
+};
+
+class AdCuts : public List<AdCut>
+{
+       int save(FileXML &xml);
+       int load(FileXML &xml);
+public:
+       int fd, pid;
+       char filename[BCTEXTLEN];
+
+       void write_cuts(const char *filename);
+       static AdCuts *read_cuts(const char *filename);
+
+        AdCuts(int pid, int fd, const char *fn);
+        ~AdCuts();
+};
+
+#endif