media.hpp 545 B

1234567891011121314151617
  1. struct Media {
  2. virtual ~Media() {}
  3. virtual auto construct() -> void;
  4. virtual auto read(string filename, string suffix = "") -> vector<uint8_t>;
  5. virtual auto type() -> string = 0;
  6. virtual auto name() -> string = 0;
  7. virtual auto extensions() -> vector<string> = 0;
  8. virtual auto manifest(string location) -> string = 0;
  9. virtual auto import(string filename) -> string = 0;
  10. auto location(string location, string suffix) const -> string;
  11. auto name(string location) const -> string;
  12. Markup::Node database;
  13. string pathname;
  14. };