1// Aseprite
2// Copyright (C) 2019 Igara Studio S.A.
3// Copyright (C) 2001-2015 David Capello
4//
5// This program is distributed under the terms of
6// the End-User License Agreement for Aseprite.
7
8#ifndef APP_XML_DOCUMENT_H_INCLUDED
9#define APP_XML_DOCUMENT_H_INCLUDED
10#pragma once
11
12#include "base/exception.h"
13
14#include "tinyxml.h"
15
16#include <memory>
17#include <string>
18
19namespace app {
20
21 typedef std::shared_ptr<TiXmlDocument> XmlDocumentRef;
22
23 XmlDocumentRef open_xml(const std::string& filename);
24 void save_xml(XmlDocumentRef doc, const std::string& filename);
25
26 bool bool_attr(const TiXmlElement* elem, const char* attrName, bool defaultVal);
27
28} // namespace app
29
30#endif
31