91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 10.31MB
    文件類型: .rar
    金幣: 2
    下載: 0 次
    發布日期: 2023-10-25
  • 語言: 其他
  • 標簽: jsoncpp??lib??vc++??

資源簡介

jsoncpp工程,用于獲取json解析所需頭文件(解壓后獲得)以及所需lib文件(編譯后獲得)

資源截圖

代碼片段和文件信息

“““Amalgate?json-cpp?library?sources?into?a?single?source?and?header?file.

Requires?Python?2.6

Example?of?invocation?(must?be?invoked?from?json-cpp?top?directory):
python?amalgate.py
“““
import?os
import?os.path
import?sys

class?AmalgamationFile:
????def?__init__(?self?top_dir?):
????????self.top_dir?=?top_dir
????????self.blocks?=?[]

????def?add_text(?self?text?):
????????if?not?text.endswith(?‘\n‘?):
????????????text?+=?‘\n‘
????????self.blocks.append(?text?)

????def?add_file(?self?relative_input_path?wrap_in_comment=False?):
????????def?add_marker(?prefix?):
????????????self.add_text(?‘‘?)
????????????self.add_text(?‘//?‘?+?‘/‘*70?)
????????????self.add_text(?‘//?%s?of?content?of?file:?%s‘?%?(prefix?relative_input_path.replace(‘\\‘‘/‘))?)
????????????self.add_text(?‘//?‘?+?‘/‘*70?)
????????????self.add_text(?‘‘?)
????????add_marker(?‘Beginning‘?)
????????f?=?open(?os.path.join(?self.top_dir?relative_input_path?)?‘rt‘?)
????????content?=?f.read()
????????if?wrap_in_comment:
????????????content?=?‘/*\n‘?+?content?+?‘\n*/‘
????????self.add_text(?content?)
????????f.close()
????????add_marker(?‘End‘?)
????????self.add_text(?‘\n\n\n\n‘?)

????def?get_value(?self?):
????????return?‘‘.join(?self.blocks?).replace(‘\r\n‘‘\n‘)

????def?write_to(?self?output_path?):
????????output_dir?=?os.path.dirname(?output_path?)
????????if?output_dir?and?not?os.path.isdir(?output_dir?):
????????????os.makedirs(?output_dir?)
????????f?=?open(?output_path?‘wb‘?)
????????f.write(?self.get_value()?)
????????f.close()

def?amalgamate_source(?source_top_dir=None
???????????????????????target_source_path=None
???????????????????????header_include_path=None?):
????“““Produces?amalgated?source.
???????Parameters:
???????????source_top_dir:?top-directory
???????????target_source_path:?output?.cpp?path
???????????header_include_path:?generated?header?path?relative?to?target_source_path.
????“““
????print?‘Amalgating?header...‘
????header?=?AmalgamationFile(?source_top_dir?)
????header.add_text(?‘///?Json-cpp?amalgated?header?(http://jsoncpp.sourceforge.net/).‘?)
????header.add_text(?‘///?It?is?intented?to?be?used?with?#include?<%s>‘?%?header_include_path?)
????header.add_file(?‘LICENSE‘?wrap_in_comment=True?)
????header.add_text(?‘#ifndef?JSON_AMALGATED_H_INCLUDED‘?)
????header.add_text(?‘#?define?JSON_AMALGATED_H_INCLUDED‘?)
????header.add_text(?‘///?If?defined?indicates?that?the?source?file?is?amalgated‘?)
????header.add_text(?‘///?to?prevent?private?header?inclusion.‘?)
????header.add_text(?‘#define?JSON_IS_AMALGATED‘?)
????header.add_file(?‘include/json/config.h‘?)
????header.add_file(?‘include/json/forwards.h‘?)
????header.add_file(?‘include/json/features.h‘?)
????header.add_file(?‘include/json/value.h‘?)
????header.add_file(?‘include/json/reader.h‘?)
????header.add_file(?‘include/json/writer.h‘?)
????header.add_text(?‘#endif?//ifndef?JSON_AMALGATED_H_INCLUDED‘?)

????target_header_path?=?os.path.join(?os.path.dirname(target_source_path)?header_includ

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----

?????文件???????6606??2011-05-03?05:47??jsoncpp-src-0.6.0-rc2\amalgamate.py

?????文件?????????49??2007-06-15?05:01??jsoncpp-src-0.6.0-rc2\AUTHORS

?????文件?????496982??2017-03-30?23:18??jsoncpp-src-0.6.0-rc2\build\vs71\debug\lib_json\json_reader.obj

?????文件?????962129??2017-03-30?23:18??jsoncpp-src-0.6.0-rc2\build\vs71\debug\lib_json\json_value.obj

?????文件????2256406??2017-03-30?23:18??jsoncpp-src-0.6.0-rc2\build\vs71\debug\lib_json\json_vc71_libmtd.lib

?????文件?????501023??2017-03-30?23:18??jsoncpp-src-0.6.0-rc2\build\vs71\debug\lib_json\json_writer.obj

?????文件???????1735??2017-03-30?23:18??jsoncpp-src-0.6.0-rc2\build\vs71\debug\lib_json\lib_json.Build.CppClean.log

?????文件???????2654??2017-03-30?23:18??jsoncpp-src-0.6.0-rc2\build\vs71\debug\lib_json\lib_json.log

?????文件???????3100??2017-03-30?23:18??jsoncpp-src-0.6.0-rc2\build\vs71\debug\lib_json\lib_json.tlog\cl.command.1.tlog

?????文件??????44052??2017-03-30?23:18??jsoncpp-src-0.6.0-rc2\build\vs71\debug\lib_json\lib_json.tlog\CL.read.1.tlog

?????文件???????3620??2017-03-30?23:18??jsoncpp-src-0.6.0-rc2\build\vs71\debug\lib_json\lib_json.tlog\CL.write.1.tlog

?????文件???????1802??2017-03-30?23:18??jsoncpp-src-0.6.0-rc2\build\vs71\debug\lib_json\lib_json.tlog\Lib-link.read.1.tlog

?????文件???????1104??2017-03-30?23:18??jsoncpp-src-0.6.0-rc2\build\vs71\debug\lib_json\lib_json.tlog\Lib-link.write.1.tlog

?????文件???????1240??2017-03-30?23:18??jsoncpp-src-0.6.0-rc2\build\vs71\debug\lib_json\lib_json.tlog\lib.command.1.tlog

?????文件????????242??2017-03-30?23:18??jsoncpp-src-0.6.0-rc2\build\vs71\debug\lib_json\lib_json.tlog\lib_json.lastbuildstate

?????文件?????486400??2017-03-30?23:18??jsoncpp-src-0.6.0-rc2\build\vs71\debug\lib_json\vc120.idb

?????文件?????618496??2017-03-30?23:18??jsoncpp-src-0.6.0-rc2\build\vs71\debug\lib_json\vc120.pdb

?????文件???????7750??2011-05-03?05:47??jsoncpp-src-0.6.0-rc2\devtools\antglob.py

?????文件???????1941??2011-05-03?05:47??jsoncpp-src-0.6.0-rc2\devtools\fixeol.py

?????文件???????3924??2011-05-03?05:47??jsoncpp-src-0.6.0-rc2\devtools\licenseupdater.py

?????文件???????2071??2011-05-03?05:47??jsoncpp-src-0.6.0-rc2\devtools\tarball.py

?????文件??????????9??2011-05-03?05:47??jsoncpp-src-0.6.0-rc2\devtools\__init__.py

?????文件??????65086??2011-05-03?05:47??jsoncpp-src-0.6.0-rc2\doc\doxyfile.in

?????文件????????572??2010-02-23?16:23??jsoncpp-src-0.6.0-rc2\doc\footer.html

?????文件????????566??2010-12-25?03:58??jsoncpp-src-0.6.0-rc2\doc\header.html

?????文件???????4701??2011-05-03?05:47??jsoncpp-src-0.6.0-rc2\doc\jsoncpp.dox

?????文件?????????71??2011-05-03?05:47??jsoncpp-src-0.6.0-rc2\doc\readme.txt

?????文件???????1995??2011-05-03?05:47??jsoncpp-src-0.6.0-rc2\doc\roadmap.dox

?????文件???????6791??2011-05-03?05:47??jsoncpp-src-0.6.0-rc2\doxybuild.py

?????文件????????664??2011-05-03?05:47??jsoncpp-src-0.6.0-rc2\include\json\autolink.h

............此處省略202個文件信息

評論

共有 條評論