git.haldean.org qb / main cue.hpp
main

Tree @main (Download .tar.gz)

cue.hpp @mainraw · history · blame

#include "qb.hpp"

#include <istream>
#include <ostream>

namespace qb {
  struct track {
    std::vector<int> hits;
    std::string name;

    track() = default;
    track(const std::string &name) : name(name) {}
  };

  struct cue_node : public node {
    cue_node(const context *c, const std::string &path);
    ~cue_node() override;

    int minframe() const override;
    int maxframe() const override;

    const std::string path;
    std::vector<track> tracks;

    // since last write:
    bool modified = false;
  };
}