資源簡介
jsoncpp-0.y.z 代碼
代碼片段和文件信息
“““Amalgate?json-cpp?library?sources?into?a?single?source?and?header?file.
Works?with?python2.6+?and?python3.4+.
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:
??????
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2019-03-01?04:20??jsoncpp-0.y.z\
?????文件????????1396??2019-03-01?04:20??jsoncpp-0.y.z\.clang-format
?????文件?????????221??2019-03-01?04:20??jsoncpp-0.y.z\.gitattributes
?????文件?????????404??2019-03-01?04:20??jsoncpp-0.y.z\.gitignore
?????文件????????1240??2019-03-01?04:20??jsoncpp-0.y.z\.travis.yml
?????文件??????????48??2019-03-01?04:20??jsoncpp-0.y.z\AUTHORS
?????文件????????5431??2019-03-01?04:20??jsoncpp-0.y.z\CMakeLists.txt
?????文件????????2665??2019-03-01?04:20??jsoncpp-0.y.z\LICENSE
?????文件????????7094??2019-03-01?04:20??jsoncpp-0.y.z\NEWS.txt
?????文件????????8328??2019-03-01?04:20??jsoncpp-0.y.z\README.md
?????文件????????9577??2019-03-01?04:20??jsoncpp-0.y.z\SConstruct
?????文件????????6738??2019-03-01?04:20??jsoncpp-0.y.z\amalgamate.py
?????文件?????????750??2019-03-01?04:20??jsoncpp-0.y.z\appveyor.yml
?????文件????????1069??2019-03-01?04:20??jsoncpp-0.y.z\dev.makefile
?????目錄???????????0??2019-03-01?04:20??jsoncpp-0.y.z\devtools\
?????文件?????????226??2019-03-01?04:20??jsoncpp-0.y.z\devtools\__init__.py
?????文件?????????898??2019-03-01?04:20??jsoncpp-0.y.z\devtools\agent_vmw7.json
?????文件?????????589??2019-03-01?04:20??jsoncpp-0.y.z\devtools\agent_vmxp.json
?????文件????????7884??2019-03-01?04:20??jsoncpp-0.y.z\devtools\antglob.py
?????文件???????11483??2019-03-01?04:20??jsoncpp-0.y.z\devtools\batchbuild.py
?????文件????????2202??2019-03-01?04:20??jsoncpp-0.y.z\devtools\fixeol.py
?????文件????????3940??2019-03-01?04:20??jsoncpp-0.y.z\devtools\licenseupdater.py
?????文件????????2210??2019-03-01?04:20??jsoncpp-0.y.z\devtools\tarball.py
?????目錄???????????0??2019-03-01?04:20??jsoncpp-0.y.z\doc\
?????文件??????100486??2019-03-01?04:20??jsoncpp-0.y.z\doc\doxyfile.in
?????文件??????????22??2019-03-01?04:20??jsoncpp-0.y.z\doc\footer.html
?????文件?????????600??2019-03-01?04:20??jsoncpp-0.y.z\doc\header.html
?????文件????????5866??2019-03-01?04:20??jsoncpp-0.y.z\doc\jsoncpp.dox
?????文件??????????71??2019-03-01?04:20??jsoncpp-0.y.z\doc\readme.txt
?????文件?????????109??2019-03-01?04:20??jsoncpp-0.y.z\doc\roadmap.dox
?????文件??????100482??2019-03-01?04:20??jsoncpp-0.y.z\doc\web_doxyfile.in
............此處省略218個文件信息
- 上一篇:rtthread工程模板
- 下一篇:基于STM32F4的四軸航拍飛行器
評論
共有 條評論