//! \~\file pivaluetree_conversions.h //! \~\ingroup Serialization //! \~\brief //! \~english %PIValueTree conversion helpers //! \~russian Вспомогательные преобразования %PIValueTree /* 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; //! \relatesalso PIValueTree //! \~english Namespace with conversions between %PIValueTree and other public serialization formats. //! \~russian Пространство имен с преобразованиями между %PIValueTree и другими публичными форматами сериализации. namespace PIValueTreeConversions { //! \~english Conversion options. //! \~russian Параметры преобразования. enum Option { WithAttributes = 0x1 /** \~english Include node attributes \~russian Включать атрибуты узлов */, WithComment = 0x2 /** \~english Include node comments \~russian Включать комментарии узлов */, WithType = 0x4 /** \~english Include textual value type information \~russian Включать текстовую информацию о типе значения */, WithAll = 0xFFF /** \~english Enable all content flags \~russian Включать все флаги содержимого */, IncludeRoot = 0x1000 /** \~english Serialize the passed root node itself instead of only its children \~russian Сериализовать сам переданный корневой узел, а не только его дочерние элементы */ , Default = WithAll /** \~english Default conversion options \~russian Параметры преобразования по умолчанию */ }; //! \~english Bit mask of %PIValueTree conversion options. //! \~russian Набор флагов параметров преобразования %PIValueTree. typedef PIFlags