资源简介
调用腾讯web接口,实现的高仿QQ。可以和腾讯QQ进行互通互联
代码片段和文件信息
// Copyright 2007-2010 Baptiste Lepilleur
// Distributed under MIT license or public domain if desired and
// recognized in your jurisdiction.
// See file LICENSE for detail or copy at http://jsoncpp.sourceforge.net/LICENSE
#if !defined(JSON_IS_AMALGAMATION)
# include
# include
# include “json_tool.h“
#endif // if !defined(JSON_IS_AMALGAMATION)
#include
#include
#include
#include
#include
#include
#if _MSC_VER >= 1400 // VC++ 8.0
#pragma warning( disable : 4996 ) // disable warning about strdup being deprecated.
#endif
namespace Json {
// Implementation of class Features
// ////////////////////////////////
Features::Features()
: allowComments_( true )
strictRoot_( false )
{
}
Features
Features::all()
{
return Features();
}
Features
Features::strictMode()
{
Features features;
features.allowComments_ = false;
features.strictRoot_ = true;
return features;
}
// Implementation of class Reader
// ////////////////////////////////
static inline bool
in( Reader::Char c Reader::Char c1 Reader::Char c2 Reader::Char c3 Reader::Char c4 )
{
return c == c1 || c == c2 || c == c3 || c == c4;
}
static inline bool
in( Reader::Char c Reader::Char c1 Reader::Char c2 Reader::Char c3 Reader::Char c4 Reader::Char c5 )
{
return c == c1 || c == c2 || c == c3 || c == c4 || c == c5;
}
static bool
containsNewLine( Reader::Location begin
Reader::Location end )
{
for ( ;begin < end; ++begin )
if ( *begin == ‘\n‘ || *begin == ‘\r‘ )
return true;
return false;
}
// Class Reader
// //////////////////////////////////////////////////////////////////
Reader::Reader()
: features_( Features::all() )
{
}
Reader::Reader( const Features &features )
: features_( features )
{
}
bool
Reader::parse( const std::string &document
Value &root
bool collectComments )
{
document_ = document;
const char *begin = document_.c_str();
const char *end = begin + document_.length();
return parse( begin end root collectComments );
}
bool
Reader::parse( std::istream& sin
Value &root
bool collectComments )
{
//std::istream_iterator begin(sin);
//std::istream_iterator end;
// Those would allow streamed input from a file if parse() were a
// template function.
// Since std::string is reference-counted this at least does not
// create an extra copy.
std::string doc;
std::getline(sin doc (char)EOF);
return parse( doc root collectComments );
}
bool
Reader::parse( const char *beginDoc const char *endDoc
Value &root
bool collectComments )
{
if ( !features_.allowComments_ )
{
collectComments = false;
}
begin_ = beginDoc;
end_ = endDoc;
collectComments_ = collectComments;
current_ = begin_;
lastValueEnd_ = 0
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2013-04-20 10:08 Qtqq-master\
文件 46 2013-04-20 10:08 Qtqq-master\.gitignore
目录 0 2013-04-20 10:08 Qtqq-master\3rdparty\
文件 87 2013-04-20 10:08 Qtqq-master\3rdparty\CMakeLists.txt
目录 0 2013-04-20 10:08 Qtqq-master\3rdparty\jsoncpp\
文件 22 2013-04-20 10:08 Qtqq-master\3rdparty\jsoncpp\CMakeLists.txt
文件 2665 2013-04-20 10:08 Qtqq-master\3rdparty\jsoncpp\LICENSE
目录 0 2013-04-20 10:08 Qtqq-master\3rdparty\jsoncpp\include\
目录 0 2013-04-20 10:08 Qtqq-master\3rdparty\jsoncpp\include\json\
文件 664 2013-04-20 10:08 Qtqq-master\3rdparty\jsoncpp\include\json\autoli
文件 3481 2013-04-20 10:08 Qtqq-master\3rdparty\jsoncpp\include\json\config.h
文件 1595 2013-04-20 10:08 Qtqq-master\3rdparty\jsoncpp\include\json\features.h
文件 1001 2013-04-20 10:08 Qtqq-master\3rdparty\jsoncpp\include\json\forwards.h
文件 426 2013-04-20 10:08 Qtqq-master\3rdparty\jsoncpp\include\json\json.h
文件 7475 2013-04-20 10:08 Qtqq-master\3rdparty\jsoncpp\include\json\reader.h
文件 35591 2013-04-20 10:08 Qtqq-master\3rdparty\jsoncpp\include\json\value.h
文件 6679 2013-04-20 10:08 Qtqq-master\3rdparty\jsoncpp\include\json\writer.h
目录 0 2013-04-20 10:08 Qtqq-master\3rdparty\jsoncpp\src\
文件 27 2013-04-20 10:08 Qtqq-master\3rdparty\jsoncpp\src\CMakeLists.txt
目录 0 2013-04-20 10:08 Qtqq-master\3rdparty\jsoncpp\src\lib_json\
文件 458 2013-04-20 10:08 Qtqq-master\3rdparty\jsoncpp\src\lib_json\CMakeLists.txt
文件 4155 2013-04-20 10:08 Qtqq-master\3rdparty\jsoncpp\src\lib_json\json_batchallocator.h
文件 12895 2013-04-20 10:08 Qtqq-master\3rdparty\jsoncpp\src\lib_json\json_internalarray.inl
文件 16500 2013-04-20 10:08 Qtqq-master\3rdparty\jsoncpp\src\lib_json\json_internalmap.inl
文件 21184 2013-04-20 10:08 Qtqq-master\3rdparty\jsoncpp\src\lib_json\json_reader.cpp
文件 2477 2013-04-20 10:08 Qtqq-master\3rdparty\jsoncpp\src\lib_json\json_tool.h
文件 42038 2013-04-20 10:08 Qtqq-master\3rdparty\jsoncpp\src\lib_json\json_value.cpp
文件 7592 2013-04-20 10:08 Qtqq-master\3rdparty\jsoncpp\src\lib_json\json_valueiterator.inl
文件 20689 2013-04-20 10:08 Qtqq-master\3rdparty\jsoncpp\src\lib_json\json_writer.cpp
文件 154 2013-04-20 10:08 Qtqq-master\3rdparty\jsoncpp\src\lib_json\sconsc
文件 9 2013-04-20 10:08 Qtqq-master\3rdparty\jsoncpp\version
............此处省略918个文件信息
- 上一篇:MFC读文件数据画波形,并作出分析
- 下一篇:基于C++的微信打飞机小游戏
相关资源
- 基于C++的微信打飞机小游戏
- 中文分词C++代码
- C++图书管理系统课程设计
- 解决Microsoft Visual C++ 14.0 is required
- K-means算法的C++实现
- RFIDC/C++门禁系统 RFID源码
- C++ MFC图书管理系统(Access数据库)
- 122mm火箭弹弹道计算程序c++.
- visualc++音频视频处理技术及工程实践
- vc++实现曲线显示界面,曲线类型有:
- 用VC++实现打开并显示bmp图片
- 编译原理与技术李文生:LR分析法C+
- 自己做的C++MFC计算器程序
- 多人对战连连看游戏VC++源码
- 英语小词典数据结构课设 C++
- C++读取 excel 完整程序源代码
- 各个软件公司+面试题+笔试题+c++有答
- C++生成二维码并保存成BMP图片
- Visual C++MFC编程实例
- More Effective C++.pdf 高清 目录
- 使用C++进行图像的DCT变换
- VC++实现记事本的各种功能
- Microsoft Visual C++ Build Tools 2017
- 简易PC虚拟串口示波器VC++整个工程源
- C++黑白棋游戏完全代码
- c++编写的爬虫程序
- 《易学C ++ 》中文版PDF格式
- Effective Modern C++ MOBI版本 KINDLE可用
- 完成端口IOCP性能测试程序c++版本 64位
- JPEG编码之DCT与量化C++
评论
共有 条评论