| JsonCpp project page | JsonCpp home page |
00001 // Copyright 2007-2010 Baptiste Lepilleur 00002 // Distributed under MIT license, or public domain if desired and 00003 // recognized in your jurisdiction. 00004 // See file LICENSE for detail or copy at http://jsoncpp.sourceforge.net/LICENSE 00005 00006 #ifndef CPPTL_JSON_FEATURES_H_INCLUDED 00007 #define CPPTL_JSON_FEATURES_H_INCLUDED 00008 00009 #if !defined(JSON_IS_AMALGAMATION) 00010 #include "forwards.h" 00011 #endif // if !defined(JSON_IS_AMALGAMATION) 00012 00013 namespace Json { 00014 00019 class JSON_API Features { 00020 public: 00027 static Features all(); 00028 00035 static Features strictMode(); 00036 00039 Features(); 00040 00042 bool allowComments_; 00043 00046 bool strictRoot_; 00047 00049 bool allowDroppedNullPlaceholders_; 00050 00052 bool allowNumericKeys_; 00053 }; 00054 00055 } // namespace Json 00056 00057 #endif // CPPTL_JSON_FEATURES_H_INCLUDED