jsoncpp结构简介

前端之家收集整理的这篇文章主要介绍了jsoncpp结构简介前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
在jsoncpp1.7.7版本中:

  一:重要的.h文件有:allocator.h  features.h  reader.h  value.h  writer.h

    1.1其中,allocator.h中的类有一个SecureAllocator(谁能告诉我,它是干嘛的?仅仅把该头文件加入到测试中就会报错了!!!)

          1.2其中,features.h中的类有一个Features

                1.3其中,reader.h中有三个类Reader,CharReader,CharReaderBuilder

      Reader:里面有三个内部类ErrorInfo,Token,StructuredError

      CharReader:里面有一个内部类Factory

                        CharReaderBuilder:继承自CharReader::Factory类

    1.4其中,writer.h中的类有六个StreamWriter,StreamWriterBuilder,Writer,FastWriter,StyledWriter,StyledStreamWriter

            StreamWriter:里面有一个内部类Factory

      StreamWriterBuilder:继承自StreamWriter::Factory类

      Writer:是一个接口类

                  FastWriter:继承自writer类

                        StyledWriter:继承自Writer类

                        StyledStreamWriter:独立类

          1.5其中,value.h中类Exception,RuntimeError,LogicError,StaticString,Value,PathArgument,Path,ValueIteratorBase,ValueConstIterator,ValueIterator
      Exception:继承自std::exception类

      RuntimeError:继承自Exception类

      LogicError:继承自Exception类

      StaticString:独立类

      Value:有两个内部类CommentInfo,CZString类

      PathArgument:独立类

      Path:独立类

      ValueIteratorBase:独立类

      ValueConstIterator:继承自ValueIteratorBase类

      ValueIterator:继承自ValueIteratorBase类

  二:重要的.cpp文件有:json_reader.cpp  json_value.cpp  json_writer.cpp    json_valueiterator.inl
原文链接:https://www.f2er.com/json/289140.html

猜你在找的Json相关文章