/*! \file pivaluetree_conversions.h * \addtogroup Serialization * \brief * \~english PIValueTree conversion functions * \~russian Функции преобразования PIValueTree * \details * \~english This file provides functions for converting PIValueTree to and from * various formats (JSON, text, property storage). * \~russian Этот файл предоставляет функции для преобразования PIValueTree в различные * форматы (JSON, текст, хранилище свойств) и из них. */ /* PIP - Platform Independent Primitives PIValueTree conversions Ivan Pelipenko peri4ko@yandex.ru This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ #ifndef pivaluetree_conversions_H #define pivaluetree_conversions_H #include "pivaluetree.h" class PIPropertyStorage; class PIJSON; class PIIODevice; //! \~english PIValueTree conversion namespace. //! \~russian Пространство имён преобразований PIValueTree. namespace PIValueTreeConversions { //! \~english Conversion options. \~russian Параметры преобразования. enum Option { WithAttributes = 0x1, //!< \~english Include attributes \~russian Включить атрибуты WithComment = 0x2, //!< \~english Include comments \~russian Включить комментарии WithType = 0x4, //!< \~english Include type information \~russian Включить информацию о типе WithAll = 0xFFF, //!< \~english Include everything \~russian Включить всё IncludeRoot = 0x1000, //!< \~english Include root node \~russian Включить корневой узел Default = WithAll //!< \~english Default options \~russian Параметры по умолчанию }; //! \~english Options flags type. //! \~russian Тип флагов параметров. typedef PIFlags