您的位置:首页 > Web前端 > JavaScript

jsoncpp结构简介

2016-10-27 18:31 489 查看
在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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: