mirror of
https://github.com/aseprite/aseprite.git
synced 2024-10-06 23:09:58 +00:00
a4478e9306
Changes: * Add DataRecoveryView * Split SubObjectsIO into an interface and SubObjectsFromSprite * Add a "setId" parameter to some doc::read_* functions (we need this functionality from session recovery)
31 lines
729 B
C++
31 lines
729 B
C++
// Aseprite Document Library
|
|
// Copyright (c) 2001-2015 David Capello
|
|
//
|
|
// This file is released under the terms of the MIT license.
|
|
// Read LICENSE.txt for more information.
|
|
|
|
#ifndef DOC_LAYER_IO_H_INCLUDED
|
|
#define DOC_LAYER_IO_H_INCLUDED
|
|
#pragma once
|
|
|
|
#include "base/exception.h"
|
|
|
|
#include <iosfwd>
|
|
|
|
namespace doc {
|
|
class Layer;
|
|
class SubObjectsFromSprite;
|
|
|
|
// Thrown when a invalid layer type is read from the istream.
|
|
class InvalidLayerType : public base::Exception {
|
|
public:
|
|
InvalidLayerType(const char* msg) throw() : base::Exception(msg) { }
|
|
};
|
|
|
|
void write_layer(std::ostream& os, const Layer* layer);
|
|
Layer* read_layer(std::istream& is, SubObjectsFromSprite* subObjects);
|
|
|
|
} // namespace doc
|
|
|
|
#endif
|