diff options
author | Brad King <brad.king@kitware.com> | 2018-10-24 19:22:54 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2018-12-12 11:40:10 (GMT) |
commit | 7ee0abbde1656b07eb28ddacca3d22bb7aafdbd8 (patch) | |
tree | 6e695983ccdc21351e806feabf6aac7c082e4c7a /Source/cmFileAPI.h | |
parent | 276fdf299306f83b12bd1cc886f5e37d61f25c59 (diff) | |
download | CMake-7ee0abbde1656b07eb28ddacca3d22bb7aafdbd8.zip CMake-7ee0abbde1656b07eb28ddacca3d22bb7aafdbd8.tar.gz CMake-7ee0abbde1656b07eb28ddacca3d22bb7aafdbd8.tar.bz2 |
fileapi: Add helper to create and reference a json reply file
Diffstat (limited to 'Source/cmFileAPI.h')
-rw-r--r-- | Source/cmFileAPI.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/cmFileAPI.h b/Source/cmFileAPI.h index 4f4506f..8bfae31 100644 --- a/Source/cmFileAPI.h +++ b/Source/cmFileAPI.h @@ -31,6 +31,11 @@ public: /** Get the "cmake" instance with which this was constructed. */ cmake* GetCMakeInstance() const { return this->CMakeInstance; } + /** Convert a JSON object or array into an object with a single + "jsonFile" member specifying a file named with the given prefix + and holding the original object. Other JSON types are unchanged. */ + Json::Value MaybeJsonFile(Json::Value in, std::string const& prefix); + private: cmake* CMakeInstance; |