资源简介
调用腾讯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++多线程网络编程Socket
- VC++ 多线程文件读写操作
- 利用C++哈希表的方法实现电话号码查
- 移木块游戏,可以自编自玩,vc6.0编写
- C++纯文字DOS超小RPG游戏
- VC++MFC小游戏实例教程(实例)+MFC类库
- 连铸温度场计算程序(C++)
- 6自由度机器人运动学正反解C++程序
- Em算法(使用C++编写)
- libstdc++-4.4.7-4.el6.i686.rpm
- VC++实现CMD命令执行与获得返回信息
- 白话C++(全)
- C++标准库第1、2
- 大数类c++大数类
- C++语言编写串口调试助手
- c++素数筛选法
- QT上位机
- qt媒体播放器
- QT5开发及源代码
- qt完整项目
- C++ mqtt 用法
- 商品库存管理系统 C++ MFC
- qt进度条(RoundProgressBar)
- Qt的纽带风格界面实现(Office Ribbon风
- qt 实现画板
- QT Hisi demo
- 基础qt数据库读取和显示
- Qt画图工具源码(qgraphics draw)
- c++ 多功能计算器
评论
共有 条评论