mirror of
https://github.com/aseprite/aseprite.git
synced 2024-10-06 23:09:58 +00:00
31 lines
680 B
C++
31 lines
680 B
C++
// Aseprite
|
|
// Copyright (C) 2019 Igara Studio S.A.
|
|
// Copyright (C) 2001-2015 David Capello
|
|
//
|
|
// This program is distributed under the terms of
|
|
// the End-User License Agreement for Aseprite.
|
|
|
|
#ifndef APP_XML_DOCUMENT_H_INCLUDED
|
|
#define APP_XML_DOCUMENT_H_INCLUDED
|
|
#pragma once
|
|
|
|
#include "base/exception.h"
|
|
|
|
#include "tinyxml.h"
|
|
|
|
#include <memory>
|
|
#include <string>
|
|
|
|
namespace app {
|
|
|
|
typedef std::shared_ptr<TiXmlDocument> XmlDocumentRef;
|
|
|
|
XmlDocumentRef open_xml(const std::string& filename);
|
|
void save_xml(XmlDocumentRef doc, const std::string& filename);
|
|
|
|
bool bool_attr(const TiXmlElement* elem, const char* attrName, bool defaultVal);
|
|
|
|
} // namespace app
|
|
|
|
#endif
|