#pragma once

#include "opentimelineio/version.h"
#include "opentimelineio/item.h"
#include "opentimelineio/mediaReference.h"

namespace opentimelineio { namespace OPENTIMELINEIO_VERSION  {
    
class Gap : public Item {
public:
    struct Schema {
        static auto constexpr name = "Gap";
        static int constexpr version = 1;
    };

    using Parent = Item;

    Gap(TimeRange const& source_range = TimeRange(),
        std::string const& name = std::string(),
        std::vector<Effect*> const& effects = std::vector<Effect*>(),
        std::vector<Marker*> const& markers = std::vector<Marker*>(),         
        AnyDictionary const& metadata = AnyDictionary());

    Gap(RationalTime duration,
        std::string const& name = std::string(),
        std::vector<Effect*> const& effects = std::vector<Effect*>(),
        std::vector<Marker*> const& markers = std::vector<Marker*>(),         
        AnyDictionary const& metadata = AnyDictionary());

    virtual bool visible() const;

protected:
    virtual ~Gap();

    virtual bool read_from(Reader&);
    virtual void write_to(Writer&) const;

private:

};

} }
