诸暨麻将添加redis
您不能選擇超過 %s 個話題 話題必須以字母或數字為開頭,可包含連接號 ('-') 且最長為 35 個字
 
 
 
 
 
 

47 行
1.3 KiB

  1. #ifndef CPPTL_JSON_FEATURES_H_INCLUDED
  2. # define CPPTL_JSON_FEATURES_H_INCLUDED
  3. # include "forwards.h"
  4. using namespace std;
  5. namespace Json {
  6. /** \brief Configuration passed to reader and writer.
  7. * This configuration object can be used to force the Reader or Writer
  8. * to behave in a standard conforming way.
  9. */
  10. class JSON_API Features
  11. {
  12. public:
  13. /** \brief A configuration that allows all features and assumes all strings are UTF-8.
  14. * - C & C++ comments are allowed
  15. * - Root object can be any JSON value
  16. * - Assumes Value strings are encoded in UTF-8
  17. */
  18. static Features all();
  19. /** \brief A configuration that is strictly compatible with the JSON specification.
  20. * - Comments are forbidden.
  21. * - Root object must be either an array or an object value.
  22. * - Assumes Value strings are encoded in UTF-8
  23. */
  24. static Features strictMode();
  25. /** \brief Initialize the configuration like JsonConfig::allFeatures;
  26. */
  27. Features();
  28. /// \c true if comments are allowed. Default: \c true.
  29. bool allowComments_;
  30. /// \c true if root must be either an array or an object value. Default: \c false.
  31. bool strictRoot_;
  32. };
  33. } // namespace Json
  34. #endif // CPPTL_JSON_FEATURES_H_INCLUDED