1// Aseprite Document Library
2// Copyright (c) 2017 David Capello
3//
4// This file is released under the terms of the MIT license.
5// Read LICENSE.txt for more information.
6
7#ifndef DOC_SLICE_IO_H_INCLUDED
8#define DOC_SLICE_IO_H_INCLUDED
9#pragma once
10
11#include <iosfwd>
12
13namespace doc {
14
15 class Slice;
16 class SliceKey;
17
18 void write_slice(std::ostream& os, const Slice* slice);
19 Slice* read_slice(std::istream& is, bool setId = true);
20
21 void write_slicekey(std::ostream& os, const SliceKey& sliceKey);
22 SliceKey read_slicekey(std::istream& is);
23
24} // namespace doc
25
26#endif
27