annotate json/features.h @ 52:89944ab3e129 tip

fix oF linker errors ios8
author Robert Tubb <rt300@eecs.qmul.ac.uk>
date Tue, 03 Feb 2015 13:18:23 +0000
parents a223551fdc1f
children
rev   line source
rt300@0 1 #ifndef CPPTL_JSON_FEATURES_H_INCLUDED
rt300@0 2 # define CPPTL_JSON_FEATURES_H_INCLUDED
rt300@0 3
rt300@0 4 # include "forwards.h"
rt300@0 5
rt300@0 6 namespace Json {
rt300@0 7
rt300@0 8 /** \brief Configuration passed to reader and writer.
rt300@0 9 * This configuration object can be used to force the Reader or Writer
rt300@0 10 * to behave in a standard conforming way.
rt300@0 11 */
rt300@0 12 class JSON_API Features
rt300@0 13 {
rt300@0 14 public:
rt300@0 15 /** \brief A configuration that allows all features and assumes all strings are UTF-8.
rt300@0 16 * - C & C++ comments are allowed
rt300@0 17 * - Root object can be any JSON value
rt300@0 18 * - Assumes Value strings are encoded in UTF-8
rt300@0 19 */
rt300@0 20 static Features all();
rt300@0 21
rt300@0 22 /** \brief A configuration that is strictly compatible with the JSON specification.
rt300@0 23 * - Comments are forbidden.
rt300@0 24 * - Root object must be either an array or an object value.
rt300@0 25 * - Assumes Value strings are encoded in UTF-8
rt300@0 26 */
rt300@0 27 static Features strictMode();
rt300@0 28
rt300@0 29 /** \brief Initialize the configuration like JsonConfig::allFeatures;
rt300@0 30 */
rt300@0 31 Features();
rt300@0 32
rt300@0 33 /// \c true if comments are allowed. Default: \c true.
rt300@0 34 bool allowComments_;
rt300@0 35
rt300@0 36 /// \c true if root must be either an array or an object value. Default: \c false.
rt300@0 37 bool strictRoot_;
rt300@0 38 };
rt300@0 39
rt300@0 40 } // namespace Json
rt300@0 41
rt300@0 42 #endif // CPPTL_JSON_FEATURES_H_INCLUDED