You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by gi...@apache.org on 2018/05/18 09:30:39 UTC
[48/48] mesos-site git commit: Updated the website built from mesos
SHA: c020a13.
Updated the website built from mesos SHA: c020a13.
Project: http://git-wip-us.apache.org/repos/asf/mesos-site/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos-site/commit/d7774475
Tree: http://git-wip-us.apache.org/repos/asf/mesos-site/tree/d7774475
Diff: http://git-wip-us.apache.org/repos/asf/mesos-site/diff/d7774475
Branch: refs/heads/asf-site
Commit: d7774475cdbfd83e3af60a47ba57a54cb1c66b5f
Parents: f81da9d
Author: jenkins <bu...@apache.org>
Authored: Fri May 18 09:29:40 2018 +0000
Committer: jenkins <bu...@apache.org>
Committed: Fri May 18 09:29:40 2018 +0000
----------------------------------------------------------------------
...ess_2include_2process_2http_8hpp_source.html | 2 +-
..._2include_2process_2network_8hpp_source.html | 2 +-
...nclude_2stout_2flags_2flags_8hpp_source.html | 2 +-
...nclude_2stout_2flags_2parse_8hpp_source.html | 2 +-
..._2stout_2include_2stout_2ip_8hpp_source.html | 2 +-
...2stout_2include_2stout_2net_8hpp_source.html | 4 +-
..._2include_2stout_2os_2linux_8hpp_source.html | 4 +-
...t_2include_2stout_2os_2read_8hpp_source.html | 6 +-
..._2include_2stout_2posix_2fs_8hpp_source.html | 2 +-
..._2include_2stout_2posix_2ip_8hpp_source.html | 4 +-
...2include_2stout_2posix_2net_8hpp_source.html | 4 +-
...t_2include_2stout_2protobuf_8hpp_source.html | 2 +-
...t_2include_2stout_2recordio_8hpp_source.html | 2 +-
...ut_2include_2stout_2version_8hpp_source.html | 2 +-
...include_2stout_2windows_2fs_8hpp_source.html | 2 +-
...include_2stout_2windows_2ip_8hpp_source.html | 2 +-
...nclude_2stout_2windows_2net_8hpp_source.html | 2 +-
content/api/latest/c++/Nodes.xml | 7 +-
content/api/latest/c++/Tokens.xml | 12 +-
content/api/latest/c++/access_8hpp_source.html | 2 +-
content/api/latest/c++/address_8hpp_source.html | 2 +-
content/api/latest/c++/base64_8hpp_source.html | 2 +-
content/api/latest/c++/bytes_8hpp_source.html | 2 +-
content/api/latest/c++/chown_8hpp_source.html | 4 +-
.../api/latest/c++/credentials_8hpp_source.html | 2 +-
.../api/latest/c++/duration_8hpp_source.html | 2 +-
content/api/latest/c++/elf_8hpp_source.html | 2 +-
content/api/latest/c++/error_8hpp_source.html | 2 +-
content/api/latest/c++/errorbase_8hpp.html | 44 ++++-
.../api/latest/c++/errorbase_8hpp_source.html | 24 +--
content/api/latest/c++/fetch_8hpp_source.html | 2 +-
content/api/latest/c++/files_8hpp_source.html | 2 +-
.../c++/filter_2internal_8hpp_source.html | 2 +-
content/api/latest/c++/find_8hpp_source.html | 2 +-
content/api/latest/c++/format_8hpp_source.html | 2 +-
content/api/latest/c++/freebsd_8hpp_source.html | 4 +-
content/api/latest/c++/future_8hpp_source.html | 2 +-
content/api/latest/c++/globals_func.html | 10 +-
content/api/latest/c++/globals_o.html | 10 +-
content/api/latest/c++/gzip_8hpp_source.html | 6 +-
.../c++/http__connection_8hpp_source.html | 2 +-
content/api/latest/c++/index.hhc | 5 +-
content/api/latest/c++/index.hhk | 182 +++++++++----------
.../api/latest/c++/internal_8hpp_source.html | 2 +-
content/api/latest/c++/json_8hpp_source.html | 2 +-
content/api/latest/c++/jwt_8hpp_source.html | 4 +-
.../latest/c++/lib__logrotate_8hpp_source.html | 2 +-
...ss_2include_2process_2check_8hpp_source.html | 2 +-
...s_2include_2process_2socket_8hpp_source.html | 2 +-
...nclude_2process_2ssl_2gtest_8hpp_source.html | 2 +-
...process_2windows_2jobobject_8hpp_source.html | 2 +-
.../latest/c++/link_2internal_8hpp_source.html | 4 +-
.../api/latest/c++/logrotate_8hpp_source.html | 2 +-
content/api/latest/c++/mac_8hpp_source.html | 2 +-
.../c++/memory__profiler_8hpp_source.html | 2 +-
.../latest/c++/module_2manager_8hpp_source.html | 2 +-
.../api/latest/c++/net__cls_8hpp_source.html | 2 +-
content/api/latest/c++/numify_8hpp_source.html | 2 +-
content/api/latest/c++/os_8hpp_source.html | 2 +-
content/api/latest/c++/osx_8hpp_source.html | 4 +-
.../api/latest/c++/permissions_8hpp_source.html | 2 +-
.../latest/c++/posix_2bootid_8hpp_source.html | 2 +-
.../latest/c++/posix_2chdir_8hpp_source.html | 2 +-
.../latest/c++/posix_2chroot_8hpp_source.html | 2 +-
.../latest/c++/posix_2close_8hpp_source.html | 2 +-
.../latest/c++/posix_2copyfile_8hpp_source.html | 4 +-
.../api/latest/c++/posix_2dup_8hpp_source.html | 2 +-
.../c++/posix_2dynamiclibrary_8hpp_source.html | 2 +-
.../latest/c++/posix_2fcntl_8hpp_source.html | 2 +-
.../api/latest/c++/posix_2fork_8hpp_source.html | 4 +-
.../latest/c++/posix_2fsync_8hpp_source.html | 2 +-
.../c++/posix_2ftruncate_8hpp_source.html | 2 +-
.../latest/c++/posix_2killtree_8hpp_source.html | 2 +-
.../api/latest/c++/posix_2ls_8hpp_source.html | 4 +-
.../latest/c++/posix_2lseek_8hpp_source.html | 2 +-
.../api/latest/c++/posix_2mac_8hpp_source.html | 4 +-
.../latest/c++/posix_2mkdir_8hpp_source.html | 2 +-
.../latest/c++/posix_2mkdtemp_8hpp_source.html | 2 +-
.../latest/c++/posix_2mktemp_8hpp_source.html | 2 +-
.../api/latest/c++/posix_2open_8hpp_source.html | 2 +-
.../api/latest/c++/posix_2os_8hpp_source.html | 4 +-
.../api/latest/c++/posix_2pipe_8hpp_source.html | 2 +-
.../latest/c++/posix_2realpath_8hpp_source.html | 2 +-
.../latest/c++/posix_2rename_8hpp_source.html | 2 +-
.../api/latest/c++/posix_2rm_8hpp_source.html | 2 +-
.../latest/c++/posix_2rmdir_8hpp_source.html | 4 +-
.../latest/c++/posix_2shell_8hpp_source.html | 2 +-
.../api/latest/c++/posix_2stat_8hpp_source.html | 4 +-
.../api/latest/c++/posix_2su_8hpp_source.html | 4 +-
.../latest/c++/posix_2xattr_8hpp_source.html | 2 +-
content/api/latest/c++/proc_8hpp_source.html | 2 +-
content/api/latest/c++/pstree_8hpp_source.html | 2 +-
.../c++/queueing_2internal_8hpp_source.html | 2 +-
.../latest/c++/reparsepoint_8hpp_source.html | 2 +-
.../api/latest/c++/resources_8hpp_source.html | 2 +-
content/api/latest/c++/result_8hpp_source.html | 4 +-
content/api/latest/c++/sched_8hpp_source.html | 4 +-
.../c++/src_2common_2http_8hpp_source.html | 2 +-
.../c++/src_2common_2parse_8hpp_source.html | 2 +-
.../c++/src_2common_2recordio_8hpp_source.html | 2 +-
.../c++/src_2common_2values_8hpp_source.html | 2 +-
.../c++/src_2messages_2flags_8hpp_source.html | 2 +-
...olators_2network_2cni_2spec_8hpp_source.html | 4 +-
.../c++/src_2slave_2state_8hpp_source.html | 2 +-
.../c++/src_2tests_2module_8hpp_source.html | 2 +-
.../latest/c++/src_2v1_2parse_8hpp_source.html | 2 +-
.../latest/c++/state__machine_8hpp_source.html | 2 +-
...s__update__manager__process_8hpp_source.html | 2 +-
...tout_2include_2stout_2check_8hpp_source.html | 4 +-
.../c++/stout_2include_2stout_2gtest_8hpp.html | 12 +-
...tout_2include_2stout_2gtest_8hpp_source.html | 2 +-
...e_2stout_2os_2posix_2socket_8hpp_source.html | 2 +-
...out_2os_2windows_2jobobject_8hpp_source.html | 2 +-
.../c++/subprocess__posix_8hpp_source.html | 4 +-
.../c++/subprocess__windows_8hpp_source.html | 2 +-
content/api/latest/c++/sunos_8hpp_source.html | 4 +-
content/api/latest/c++/svn_8hpp_source.html | 2 +-
content/api/latest/c++/symlink_8hpp_source.html | 2 +-
content/api/latest/c++/sysctl_8hpp_source.html | 4 +-
content/api/latest/c++/touch_8hpp_source.html | 2 +-
content/api/latest/c++/try_8hpp_source.html | 4 +-
...uri__disk__profile__adaptor_8hpp_source.html | 2 +-
content/api/latest/c++/url_8hpp_source.html | 2 +-
content/api/latest/c++/utime_8hpp_source.html | 2 +-
content/api/latest/c++/uuid_8hpp_source.html | 2 +-
.../latest/c++/v1_2resources_8hpp_source.html | 2 +-
.../c++/windows_2copyfile_8hpp_source.html | 2 +-
.../windows_2dynamiclibrary_8hpp_source.html | 2 +-
.../latest/c++/windows_2error_8hpp_source.html | 4 +-
.../c++/windows_2killtree_8hpp_source.html | 2 +-
.../latest/c++/windows_2mac_8hpp_source.html | 2 +-
.../c++/windows_2mkdtemp_8hpp_source.html | 2 +-
.../latest/c++/windows_2mktemp_8hpp_source.html | 2 +-
.../latest/c++/windows_2open_8hpp_source.html | 2 +-
.../api/latest/c++/windows_2os_8hpp_source.html | 4 +-
.../c++/windows_2realpath_8hpp_source.html | 2 +-
.../api/latest/c++/windows_2rm_8hpp_source.html | 2 +-
.../latest/c++/windows_2rmdir_8hpp_source.html | 2 +-
.../latest/c++/windows_2shell_8hpp_source.html | 2 +-
.../latest/c++/windows_2stat_8hpp_source.html | 2 +-
.../api/latest/c++/windows_2su_8hpp_source.html | 2 +-
content/api/latest/c++/write_8hpp_source.html | 4 +-
142 files changed, 348 insertions(+), 288 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/mesos-site/blob/d7774475/content/api/latest/c++/3rdparty_2libprocess_2include_2process_2http_8hpp_source.html
----------------------------------------------------------------------
diff --git a/content/api/latest/c++/3rdparty_2libprocess_2include_2process_2http_8hpp_source.html b/content/api/latest/c++/3rdparty_2libprocess_2include_2process_2http_8hpp_source.html
index 62a55a6..e125887 100644
--- a/content/api/latest/c++/3rdparty_2libprocess_2include_2process_2http_8hpp_source.html
+++ b/content/api/latest/c++/3rdparty_2libprocess_2include_2process_2http_8hpp_source.html
@@ -67,7 +67,7 @@
<div class="ttc" id="structprocess_1_1http_1_1Status_html_aa8ef81ebd5c8e73eff805b126abcfde2"><div class="ttname"><a href="structprocess_1_1http_1_1Status.html#aa8ef81ebd5c8e73eff805b126abcfde2">process::http::Status::MOVED_PERMANENTLY</a></div><div class="ttdeci">static const uint16_t MOVED_PERMANENTLY</div><div class="ttdef"><b>Definition:</b> http.hpp:226</div></div>
<div class="ttc" id="structprocess_1_1http_1_1Status_html_a84baf6a6f631e460bb85bea1d546bd97"><div class="ttname"><a href="structprocess_1_1http_1_1Status.html#a84baf6a6f631e460bb85bea1d546bd97">process::http::Status::GONE</a></div><div class="ttdeci">static const uint16_t GONE</div><div class="ttdef"><b>Definition:</b> http.hpp:242</div></div>
<div class="ttc" id="structprocess_1_1http_1_1Status_html_addffbea97c092bf92955b7f513208ceb"><div class="ttname"><a href="structprocess_1_1http_1_1Status.html#addffbea97c092bf92955b7f513208ceb">process::http::Status::UNSUPPORTED_MEDIA_TYPE</a></div><div class="ttdeci">static const uint16_t UNSUPPORTED_MEDIA_TYPE</div><div class="ttdef"><b>Definition:</b> http.hpp:247</div></div>
-<div class="ttc" id="classError_html"><div class="ttname"><a href="classError.html">Error</a></div><div class="ttdef"><b>Definition:</b> errorbase.hpp:35</div></div>
+<div class="ttc" id="classError_html"><div class="ttname"><a href="classError.html">Error</a></div><div class="ttdef"><b>Definition:</b> errorbase.hpp:36</div></div>
<div class="ttc" id="structprocess_1_1http_1_1Server_1_1CreateOptions_html"><div class="ttname"><a href="structprocess_1_1http_1_1Server_1_1CreateOptions.html">process::http::Server::CreateOptions</a></div><div class="ttdef"><b>Definition:</b> http.hpp:1048</div></div>
<div class="ttc" id="classOption_html"><div class="ttname"><a href="classOption.html">Option</a></div><div class="ttdef"><b>Definition:</b> option.hpp:28</div></div>
<div class="ttc" id="namespaceprocess_1_1http_html_acc0a9c62d4bef93195e93af072f0cda5a293c9ea246ff9985dc6f62a650f78986"><div class="ttname"><a href="namespaceprocess_1_1http.html#acc0a9c62d4bef93195e93af072f0cda5a293c9ea246ff9985dc6f62a650f78986">process::http::Scheme::HTTP</a></div></div>
http://git-wip-us.apache.org/repos/asf/mesos-site/blob/d7774475/content/api/latest/c++/3rdparty_2libprocess_2include_2process_2network_8hpp_source.html
----------------------------------------------------------------------
diff --git a/content/api/latest/c++/3rdparty_2libprocess_2include_2process_2network_8hpp_source.html b/content/api/latest/c++/3rdparty_2libprocess_2include_2process_2network_8hpp_source.html
index 1b3acd9..9e8821c 100644
--- a/content/api/latest/c++/3rdparty_2libprocess_2include_2process_2network_8hpp_source.html
+++ b/content/api/latest/c++/3rdparty_2libprocess_2include_2process_2network_8hpp_source.html
@@ -59,7 +59,7 @@
<div class="ttc" id="classTry_html"><div class="ttname"><a href="classTry.html">Try</a></div><div class="ttdef"><b>Definition:</b> check.hpp:33</div></div>
<div class="ttc" id="namespaceprocess_1_1network_html_a1987d4376ac5e2f04ad72e6c84c7569c"><div class="ttname"><a href="namespaceprocess_1_1network.html#a1987d4376ac5e2f04ad72e6c84c7569c">process::network::address</a></div><div class="ttdeci">Try< Address > address(int_fd s)</div><div class="ttdoc">Returns the Address with the assigned ip and assigned port. </div><div class="ttdef"><b>Definition:</b> network.hpp:79</div></div>
<div class="ttc" id="classprocess_1_1network_1_1Address_html"><div class="ttname"><a href="classprocess_1_1network_1_1Address.html">process::network::Address</a></div><div class="ttdef"><b>Definition:</b> address.hpp:276</div></div>
-<div class="ttc" id="classErrnoError_html"><div class="ttname"><a href="classErrnoError.html">ErrnoError</a></div><div class="ttdef"><b>Definition:</b> errorbase.hpp:49</div></div>
+<div class="ttc" id="classErrnoError_html"><div class="ttname"><a href="classErrnoError.html">ErrnoError</a></div><div class="ttdef"><b>Definition:</b> errorbase.hpp:50</div></div>
<div class="ttc" id="namespacenet_html_a5ba505f2b438dcc42c59c5ba5b94f38c"><div class="ttname"><a href="namespacenet.html#a5ba505f2b438dcc42c59c5ba5b94f38c">net::bind</a></div><div class="ttdeci">int bind(const int_fd &fd, const sockaddr *addr, socklen_t addrlen)</div><div class="ttdef"><b>Definition:</b> socket.hpp:143</div></div>
<div class="ttc" id="classprocess_1_1network_1_1Address_html_a0008f4285e960406a0e2e6ec96f875ad"><div class="ttname"><a href="classprocess_1_1network_1_1Address.html#a0008f4285e960406a0e2e6ec96f875ad">process::network::Address::size</a></div><div class="ttdeci">size_t size() const </div><div class="ttdef"><b>Definition:</b> address.hpp:359</div></div>
<div class="ttc" id="stout_2include_2stout_2os_2socket_8hpp_html"><div class="ttname"><a href="stout_2include_2stout_2os_2socket_8hpp.html">socket.hpp</a></div></div>
http://git-wip-us.apache.org/repos/asf/mesos-site/blob/d7774475/content/api/latest/c++/3rdparty_2stout_2include_2stout_2flags_2flags_8hpp_source.html
----------------------------------------------------------------------
diff --git a/content/api/latest/c++/3rdparty_2stout_2include_2stout_2flags_2flags_8hpp_source.html b/content/api/latest/c++/3rdparty_2stout_2include_2stout_2flags_2flags_8hpp_source.html
index 94c6bb0..80ec291 100644
--- a/content/api/latest/c++/3rdparty_2stout_2include_2stout_2flags_2flags_8hpp_source.html
+++ b/content/api/latest/c++/3rdparty_2stout_2include_2stout_2flags_2flags_8hpp_source.html
@@ -56,7 +56,7 @@
<div class="ttc" id="classflags_1_1FlagsBase_html_a56da290b1a3b00816c11100aaed3a0cc"><div class="ttname"><a href="classflags_1_1FlagsBase.html#a56da290b1a3b00816c11100aaed3a0cc">flags::FlagsBase::add</a></div><div class="ttdeci">void add(Option< T > Flags::*option, const Name &name, const Option< Name > &alias, const std::string &help)</div><div class="ttdef"><b>Definition:</b> flags.hpp:280</div></div>
<div class="ttc" id="structNothing_html"><div class="ttname"><a href="structNothing.html">Nothing</a></div><div class="ttdef"><b>Definition:</b> nothing.hpp:16</div></div>
<div class="ttc" id="namespaceappc_1_1spec_html_a1f003511d7ad7c4792223d0b11b60f62"><div class="ttname"><a href="namespaceappc_1_1spec.html#a1f003511d7ad7c4792223d0b11b60f62">appc::spec::validate</a></div><div class="ttdeci">Option< Error > validate(const std::string &imageDir)</div></div>
-<div class="ttc" id="classError_html"><div class="ttname"><a href="classError.html">Error</a></div><div class="ttdef"><b>Definition:</b> errorbase.hpp:35</div></div>
+<div class="ttc" id="classError_html"><div class="ttname"><a href="classError.html">Error</a></div><div class="ttdef"><b>Definition:</b> errorbase.hpp:36</div></div>
<div class="ttc" id="classOption_html"><div class="ttname"><a href="classOption.html">Option< std::string ></a></div></div>
<div class="ttc" id="structflags_1_1Warnings_html_adc8532ecf5745eac3fe7d08f48ee5399"><div class="ttname"><a href="structflags_1_1Warnings.html#adc8532ecf5745eac3fe7d08f48ee5399">flags::Warnings::warnings</a></div><div class="ttdeci">std::vector< Warning > warnings</div><div class="ttdef"><b>Definition:</b> flag.hpp:73</div></div>
<div class="ttc" id="abort_8hpp_html_a4d84a74fe6e4f84bc3d2f901b9e89f93"><div class="ttname"><a href="abort_8hpp.html#a4d84a74fe6e4f84bc3d2f901b9e89f93">ABORT</a></div><div class="ttdeci">#define ABORT(...)</div><div class="ttdef"><b>Definition:</b> abort.hpp:40</div></div>
http://git-wip-us.apache.org/repos/asf/mesos-site/blob/d7774475/content/api/latest/c++/3rdparty_2stout_2include_2stout_2flags_2parse_8hpp_source.html
----------------------------------------------------------------------
diff --git a/content/api/latest/c++/3rdparty_2stout_2include_2stout_2flags_2parse_8hpp_source.html b/content/api/latest/c++/3rdparty_2stout_2include_2stout_2flags_2parse_8hpp_source.html
index dd61483..574ce4e 100644
--- a/content/api/latest/c++/3rdparty_2stout_2include_2stout_2flags_2parse_8hpp_source.html
+++ b/content/api/latest/c++/3rdparty_2stout_2include_2stout_2flags_2parse_8hpp_source.html
@@ -54,7 +54,7 @@
<div class="contents">
<a href="3rdparty_2stout_2include_2stout_2flags_2parse_8hpp.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="comment">// Licensed under the Apache License, Version 2.0 (the "License");</span></div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment">// you may not use this file except in compliance with the License.</span></div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment">// You may obtain a copy of the License at</span></div><div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment">//</span></div><div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment">// http://www.apache.org/licenses/LICENSE-2.0</span></div><div class="line"><a name="l00006"></a><span class="lineno"> 6</spa
n> <span class="comment">//</span></div><div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="comment">// Unless required by applicable law or agreed to in writing, software</span></div><div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="comment">// distributed under the License is distributed on an "AS IS" BASIS,</span></div><div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="comment">// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</span></div><div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="comment">// See the License for the specific language governing permissions and</span></div><div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="comment">// limitations under the License.</span></div><div class="line"><a name="l00012"></a><span class="lineno">
12</span> </div><div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="preprocessor">#ifndef __STOUT_FLAGS_PARSE_HPP__</span></div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="preprocessor">#define __STOUT_FLAGS_PARSE_HPP__</span></div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span> </div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="preprocessor">#include <sstream></span> <span class="comment">// For istringstream.</span></div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="preprocessor">#include <string></span></div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span> </div><div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <span class="preprocessor">#include <<a class="code" href="bytes_8hpp.html">stout/bytes.h
pp</a>></span></div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="preprocessor">#include <<a class="code" href="duration_8hpp.html">stout/duration.hpp</a>></span></div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="preprocessor">#include <<a class="code" href="error_8hpp.html">stout/error.hpp</a>></span></div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span> <span class="preprocessor">#include <<a class="code" href="3rdparty_2stout_2include_2stout_2ip_8hpp.html">stout/ip.hpp</a>></span></div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span> <span class="preprocessor">#include <<a class="code" href="json_8hpp.html">stout/json.hpp</a>></span></div><div class="line"><a name="l00024"></a><span class="lineno"> 24</span> <span class="preprocessor">#include <<a class="code" href="path_8hpp.html">stout/path.hpp<
/a>></span></div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span> <span class="preprocessor">#include <<a class="code" href="strings_8hpp.html">stout/strings.hpp</a>></span></div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span> <span class="preprocessor">#include <<a class="code" href="try_8hpp.html">stout/try.hpp</a>></span></div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span> </div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span> <span class="preprocessor">#include <<a class="code" href="flag_8hpp.html">stout/flags/flag.hpp</a>></span></div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span> </div><div class="line"><a name="l00030"></a><span class="lineno"> 30</span> <span class="preprocessor">#include <<a class="code" href="3rdparty_2stout_2include_2stout_2os_2read_8hpp.html">stout/os/read.hpp</a>></span><
/div><div class="line"><a name="l00031"></a><span class="lineno"> 31</span> </div><div class="line"><a name="l00032"></a><span class="lineno"> 32</span> <span class="keyword">namespace </span><a class="code" href="namespaceflags.html">flags</a> {</div><div class="line"><a name="l00033"></a><span class="lineno"> 33</span> </div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span> <span class="keyword">template</span> <<span class="keyword">typename</span> T></div><div class="line"><a name="l00035"></a><span class="lineno"><a class="line" href="namespaceflags.html#a62b1974db70a09bd57b28b2584070e34"> 35</a></span> <a class="code" href="classTry.html">Try<T></a> <a class="code" href="namespaceflags.html#af30eac14fca1a6fd93863545a0666e0c">parse</a>(<span class="keyword">const</span> std::string& value)</div><div class="line"><a name="l00036"></a><span class="lineno"> 36</span> {</div><div class="line"><a name="l0
0037"></a><span class="lineno"> 37</span>  T t;</div><div class="line"><a name="l00038"></a><span class="lineno"> 38</span>  std::istringstream in(value);</div><div class="line"><a name="l00039"></a><span class="lineno"> 39</span>  in >> t;</div><div class="line"><a name="l00040"></a><span class="lineno"> 40</span> </div><div class="line"><a name="l00041"></a><span class="lineno"> 41</span>  <span class="keywordflow">if</span> (in && in.eof()) {</div><div class="line"><a name="l00042"></a><span class="lineno"> 42</span>  <span class="keywordflow">return</span> t;</div><div class="line"><a name="l00043"></a><span class="lineno"> 43</span>  }</div><div class="line"><a name="l00044"></a><span class="lineno"> 44</span> </div><div class="line"><a name="l00045"></a><span class="lineno"> 45</span>  <span class="keywordflow">return</span> <a class="code" href="classError.html">Error</a>(<span class="string
literal">"Failed to convert into required type"</span>);</div><div class="line"><a name="l00046"></a><span class="lineno"> 46</span> }</div><div class="line"><a name="l00047"></a><span class="lineno"> 47</span> </div><div class="line"><a name="l00048"></a><span class="lineno"> 48</span> </div><div class="line"><a name="l00049"></a><span class="lineno"> 49</span> <span class="keyword">template</span> <></div><div class="line"><a name="l00050"></a><span class="lineno"><a class="line" href="namespaceflags.html#ae5defbac382192bb7c5aee24c6d557df"> 50</a></span> <span class="keyword">inline</span> <a class="code" href="classTry.html">Try<std::string></a> <a class="code" href="namespaceflags.html#af30eac14fca1a6fd93863545a0666e0c">parse</a>(<span class="keyword">const</span> std::string& value)</div><div class="line"><a name="l00051"></a><span class="lineno"> 51</span> {</div><div class="line"><a name="l00052"></a><span cl
ass="lineno"> 52</span>  <span class="keywordflow">return</span> value;</div><div class="line"><a name="l00053"></a><span class="lineno"> 53</span> }</div><div class="line"><a name="l00054"></a><span class="lineno"> 54</span> </div><div class="line"><a name="l00055"></a><span class="lineno"> 55</span> </div><div class="line"><a name="l00056"></a><span class="lineno"> 56</span> <span class="keyword">template</span> <></div><div class="line"><a name="l00057"></a><span class="lineno"><a class="line" href="namespaceflags.html#ae6139ffcb87493744c3782413fc9ad03"> 57</a></span> <span class="keyword">inline</span> <a class="code" href="classTry.html">Try<bool></a> <a class="code" href="namespaceflags.html#af30eac14fca1a6fd93863545a0666e0c">parse</a>(<span class="keyword">const</span> std::string& value)</div><div class="line"><a name="l00058"></a><span class="lineno"> 58</span> {</div><div class="line"><a name="l00059"></a><s
pan class="lineno"> 59</span>  <span class="keywordflow">if</span> (value == <span class="stringliteral">"true"</span> || value == <span class="stringliteral">"1"</span>) {</div><div class="line"><a name="l00060"></a><span class="lineno"> 60</span>  <span class="keywordflow">return</span> <span class="keyword">true</span>;</div><div class="line"><a name="l00061"></a><span class="lineno"> 61</span>  } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (value == <span class="stringliteral">"false"</span> || value == <span class="stringliteral">"0"</span>) {</div><div class="line"><a name="l00062"></a><span class="lineno"> 62</span>  <span class="keywordflow">return</span> <span class="keyword">false</span>;</div><div class="line"><a name="l00063"></a><span class="lineno"> 63</span>  }</div><div class="line"><a name="l00064"></a><span class="lineno"> 64</span>  <span class
="keywordflow">return</span> <a class="code" href="classError.html">Error</a>(<span class="stringliteral">"Expecting a boolean (e.g., true or false)"</span>);</div><div class="line"><a name="l00065"></a><span class="lineno"> 65</span> }</div><div class="line"><a name="l00066"></a><span class="lineno"> 66</span> </div><div class="line"><a name="l00067"></a><span class="lineno"> 67</span> </div><div class="line"><a name="l00068"></a><span class="lineno"> 68</span> <span class="keyword">template</span> <></div><div class="line"><a name="l00069"></a><span class="lineno"><a class="line" href="namespaceflags.html#af63bdf3b576516d5bf237fc8a156c8f0"> 69</a></span> <span class="keyword">inline</span> <a class="code" href="classTry.html">Try<Duration></a> <a class="code" href="namespaceflags.html#af30eac14fca1a6fd93863545a0666e0c">parse</a>(<span class="keyword">const</span> std::string& value)</div><div class="line"><a name="l00070
"></a><span class="lineno"> 70</span> {</div><div class="line"><a name="l00071"></a><span class="lineno"> 71</span>  <span class="keywordflow">return</span> <a class="code" href="classDuration.html#a90e922f926992750ed1f3ffc90b27c8b">Duration::parse</a>(value);</div><div class="line"><a name="l00072"></a><span class="lineno"> 72</span> }</div><div class="line"><a name="l00073"></a><span class="lineno"> 73</span> </div><div class="line"><a name="l00074"></a><span class="lineno"> 74</span> </div><div class="line"><a name="l00075"></a><span class="lineno"> 75</span> <span class="keyword">template</span> <></div><div class="line"><a name="l00076"></a><span class="lineno"><a class="line" href="namespaceflags.html#aa0aeb9a17a02d82658fc629fd1185d6e"> 76</a></span> <span class="keyword">inline</span> <a class="code" href="classTry.html">Try<Bytes></a> <a class="code" href="namespaceflags.html#af30eac14fca1a6fd93863545a0666e0c">par
se</a>(<span class="keyword">const</span> std::string& value)</div><div class="line"><a name="l00077"></a><span class="lineno"> 77</span> {</div><div class="line"><a name="l00078"></a><span class="lineno"> 78</span>  <span class="keywordflow">return</span> <a class="code" href="classBytes.html#a7cfe284176d1712aea563e5ddb590b30">Bytes::parse</a>(value);</div><div class="line"><a name="l00079"></a><span class="lineno"> 79</span> }</div><div class="line"><a name="l00080"></a><span class="lineno"> 80</span> </div><div class="line"><a name="l00081"></a><span class="lineno"> 81</span> </div><div class="line"><a name="l00082"></a><span class="lineno"> 82</span> <span class="keyword">template</span> <></div><div class="line"><a name="l00083"></a><span class="lineno"><a class="line" href="namespaceflags.html#a37aff6119e5c4b6f1aab8d93522a3921"> 83</a></span> <span class="keyword">inline</span> <a class="code" href="classTry.html">Try
<net::IP></a> <a class="code" href="namespaceflags.html#af30eac14fca1a6fd93863545a0666e0c">parse</a>(<span class="keyword">const</span> std::string& value)</div><div class="line"><a name="l00084"></a><span class="lineno"> 84</span> {</div><div class="line"><a name="l00085"></a><span class="lineno"> 85</span>  <span class="keywordflow">return</span> <a class="code" href="classnet_1_1IP.html#a29469a2770ed1c02f447470712158d0e">net::IP::parse</a>(value);</div><div class="line"><a name="l00086"></a><span class="lineno"> 86</span> }</div><div class="line"><a name="l00087"></a><span class="lineno"> 87</span> </div><div class="line"><a name="l00088"></a><span class="lineno"> 88</span> </div><div class="line"><a name="l00089"></a><span class="lineno"> 89</span> <span class="keyword">template</span> <></div><div class="line"><a name="l00090"></a><span class="lineno"><a class="line" href="namespaceflags.html#a6f0ba6de4c42bafc28e6a9a463
1b092f"> 90</a></span> <span class="keyword">inline</span> <a class="code" href="classTry.html">Try<net::IPv4></a> <a class="code" href="namespaceflags.html#af30eac14fca1a6fd93863545a0666e0c">parse</a>(<span class="keyword">const</span> std::string& value)</div><div class="line"><a name="l00091"></a><span class="lineno"> 91</span> {</div><div class="line"><a name="l00092"></a><span class="lineno"> 92</span>  <span class="keywordflow">return</span> <a class="code" href="classnet_1_1IPv4.html#a6ec1fda0ad381dbd68df36239edd1ecc">net::IPv4::parse</a>(value);</div><div class="line"><a name="l00093"></a><span class="lineno"> 93</span> }</div><div class="line"><a name="l00094"></a><span class="lineno"> 94</span> </div><div class="line"><a name="l00095"></a><span class="lineno"> 95</span> </div><div class="line"><a name="l00096"></a><span class="lineno"> 96</span> <span class="keyword">template</span> <></div><div class="line"
><a name="l00097"></a><span class="lineno"><a class="line" href="namespaceflags.html#a47592f2456c0bfc804e39c4c357c3ab8"> 97</a></span> <span class="keyword">inline</span> <a class="code" href="classTry.html">Try<net::IPv6></a> <a class="code" href="namespaceflags.html#af30eac14fca1a6fd93863545a0666e0c">parse</a>(<span class="keyword">const</span> std::string& value)</div><div class="line"><a name="l00098"></a><span class="lineno"> 98</span> {</div><div class="line"><a name="l00099"></a><span class="lineno"> 99</span>  <span class="keywordflow">return</span> <a class="code" href="classnet_1_1IPv6.html#ab0224366d3e4d4dac3755b071660c072">net::IPv6::parse</a>(value);</div><div class="line"><a name="l00100"></a><span class="lineno"> 100</span> }</div><div class="line"><a name="l00101"></a><span class="lineno"> 101</span> </div><div class="line"><a name="l00102"></a><span class="lineno"> 102</span> </div><div class="line"><a name="l00103">
</a><span class="lineno"> 103</span> <span class="keyword">template</span> <></div><div class="line"><a name="l00104"></a><span class="lineno"><a class="line" href="namespaceflags.html#abf3ec8fe3d745a9be53c67b847c5e130"> 104</a></span> <span class="keyword">inline</span> <a class="code" href="classTry.html">Try<JSON::Object></a> <a class="code" href="namespaceflags.html#af30eac14fca1a6fd93863545a0666e0c">parse</a>(<span class="keyword">const</span> std::string& value)</div><div class="line"><a name="l00105"></a><span class="lineno"> 105</span> {</div><div class="line"><a name="l00106"></a><span class="lineno"> 106</span> <span class="preprocessor">#ifndef __WINDOWS__</span></div><div class="line"><a name="l00107"></a><span class="lineno"> 107</span>  <span class="comment">// A value that already starts with 'file://' will properly be</span></div><div class="line"><a name="l00108"></a><span class="lineno"> 108</span>  <spa
n class="comment">// loaded from the file and put into 'value' but if it starts with</span></div><div class="line"><a name="l00109"></a><span class="lineno"> 109</span>  <span class="comment">// '/' we need to explicitly handle it for backwards compatibility</span></div><div class="line"><a name="l00110"></a><span class="lineno"> 110</span>  <span class="comment">// reasons (because we used to handle it before we introduced the</span></div><div class="line"><a name="l00111"></a><span class="lineno"> 111</span>  <span class="comment">// 'fetch' mechanism for flags that first fetches the data from URIs</span></div><div class="line"><a name="l00112"></a><span class="lineno"> 112</span>  <span class="comment">// such as 'file://').</span></div><div class="line"><a name="l00113"></a><span class="lineno"> 113</span>  <span class="comment">//</span></div><div class="line"><a name="l00114"></a><span class="lineno"> 114</spa
n>  <span class="comment">// NOTE: Because this code is deprecated, it is not supported on Windows.</span></div><div class="line"><a name="l00115"></a><span class="lineno"> 115</span>  <span class="keywordflow">if</span> (<a class="code" href="namespacestrings.html#aa5513faacb213c7e097c0d43af43d9c7">strings::startsWith</a>(value, <span class="stringliteral">"/"</span>)) {</div><div class="line"><a name="l00116"></a><span class="lineno"> 116</span>  LOG(WARNING) << <span class="stringliteral">"Specifying an absolute filename to read a command line "</span></div><div class="line"><a name="l00117"></a><span class="lineno"> 117</span>  <span class="stringliteral">"option out of without using 'file:// is deprecated and "</span></div><div class="line"><a name="l00118"></a><span class="lineno"> 118</span>  <span class="stringliteral">"will be removed in a future release. Sim
ply adding "</span></div><div class="line"><a name="l00119"></a><span class="lineno"> 119</span>  <span class="stringliteral">"'file://' to the beginning of the path should eliminate "</span></div><div class="line"><a name="l00120"></a><span class="lineno"> 120</span>  <span class="stringliteral">"this warning."</span>;</div><div class="line"><a name="l00121"></a><span class="lineno"> 121</span> </div><div class="line"><a name="l00122"></a><span class="lineno"> 122</span>  <a class="code" href="classTry.html">Try<std::string></a> <a class="code" href="namespacemesos_1_1internal_1_1credentials.html#a137c93d60149616181a10e9f39986f7f">read</a> = <a class="code" href="namespaceos.html#aa1d97ff0a93229e1fe6b33e3e2d567f7">os::read</a>(value);</div><div class="line"><a name="l00123"></a><span class="lineno"> 123</span>  <span class="keywordflow">if</span> (read.<a class="code" hr
ef="classTry.html#a0b98f95163b8a38daafd1651b043a276">isError</a>()) {</div><div class="line"><a name="l00124"></a><span class="lineno"> 124</span>  <span class="keywordflow">return</span> <a class="code" href="classError.html">Error</a>(<span class="stringliteral">"Error reading file '"</span> + value + <span class="stringliteral">"': "</span> + read.<a class="code" href="classTry.html#aec4a11ddd3c036e889d90b7eb6258ba7">error</a>());</div><div class="line"><a name="l00125"></a><span class="lineno"> 125</span>  }</div><div class="line"><a name="l00126"></a><span class="lineno"> 126</span>  <span class="keywordflow">return</span> JSON::parse<JSON::Object>(read.<a class="code" href="classTry.html#a8bc7f43e75a47111ea18e9c83b007be5">get</a>());</div><div class="line"><a name="l00127"></a><span class="lineno"> 127</span>  }</div><div class="line"><a name="l00128"></a><span class="lineno"> 128</span> <span class="p
reprocessor">#endif // __WINDOWS__</span></div><div class="line"><a name="l00129"></a><span class="lineno"> 129</span>  <span class="keywordflow">return</span> JSON::parse<JSON::Object>(value);</div><div class="line"><a name="l00130"></a><span class="lineno"> 130</span> }</div><div class="line"><a name="l00131"></a><span class="lineno"> 131</span> </div><div class="line"><a name="l00132"></a><span class="lineno"> 132</span> </div><div class="line"><a name="l00133"></a><span class="lineno"> 133</span> <span class="keyword">template</span> <></div><div class="line"><a name="l00134"></a><span class="lineno"><a class="line" href="namespaceflags.html#adea78d5ed133169a5c51fbd260fc91b1"> 134</a></span> <span class="keyword">inline</span> <a class="code" href="classTry.html">Try<JSON::Array></a> <a class="code" href="namespaceflags.html#af30eac14fca1a6fd93863545a0666e0c">parse</a>(<span class="keyword">const</span> std::string& valu
e)</div><div class="line"><a name="l00135"></a><span class="lineno"> 135</span> {</div><div class="line"><a name="l00136"></a><span class="lineno"> 136</span> <span class="preprocessor">#ifndef __WINDOWS__</span></div><div class="line"><a name="l00137"></a><span class="lineno"> 137</span>  <span class="comment">// A value that already starts with 'file://' will properly be</span></div><div class="line"><a name="l00138"></a><span class="lineno"> 138</span>  <span class="comment">// loaded from the file and put into 'value' but if it starts with</span></div><div class="line"><a name="l00139"></a><span class="lineno"> 139</span>  <span class="comment">// '/' we need to explicitly handle it for backwards compatibility</span></div><div class="line"><a name="l00140"></a><span class="lineno"> 140</span>  <span class="comment">// reasons (because we used to handle it before we introduced the</span></div><div class="line"><a nam
e="l00141"></a><span class="lineno"> 141</span>  <span class="comment">// 'fetch' mechanism for flags that first fetches the data from URIs</span></div><div class="line"><a name="l00142"></a><span class="lineno"> 142</span>  <span class="comment">// such as 'file://').</span></div><div class="line"><a name="l00143"></a><span class="lineno"> 143</span>  <span class="comment">//</span></div><div class="line"><a name="l00144"></a><span class="lineno"> 144</span>  <span class="comment">// NOTE: Because this code is deprecated, it is not supported on Windows.</span></div><div class="line"><a name="l00145"></a><span class="lineno"> 145</span>  <span class="keywordflow">if</span> (<a class="code" href="namespacestrings.html#aa5513faacb213c7e097c0d43af43d9c7">strings::startsWith</a>(value, <span class="stringliteral">"/"</span>)) {</div><div class="line"><a name="l00146"></a><span class="lineno"> 146</span>  LOG(WARNING)
<< <span class="stringliteral">"Specifying an absolute filename to read a command line "</span></div><div class="line"><a name="l00147"></a><span class="lineno"> 147</span>  <span class="stringliteral">"option out of without using 'file:// is deprecated and "</span></div><div class="line"><a name="l00148"></a><span class="lineno"> 148</span>  <span class="stringliteral">"will be removed in a future release. Simply adding "</span></div><div class="line"><a name="l00149"></a><span class="lineno"> 149</span>  <span class="stringliteral">"'file://' to the beginning of the path should eliminate "</span></div><div class="line"><a name="l00150"></a><span class="lineno"> 150</span>  <span class="stringliteral">"this warning."</span>;</div><div class="line"><a name="l00151"></a><span class="lineno"> 151</span> </div><div
class="line"><a name="l00152"></a><span class="lineno"> 152</span>  <a class="code" href="classTry.html">Try<std::string></a> <a class="code" href="namespacemesos_1_1internal_1_1credentials.html#a137c93d60149616181a10e9f39986f7f">read</a> = <a class="code" href="namespaceos.html#aa1d97ff0a93229e1fe6b33e3e2d567f7">os::read</a>(value);</div><div class="line"><a name="l00153"></a><span class="lineno"> 153</span>  <span class="keywordflow">if</span> (read.<a class="code" href="classTry.html#a0b98f95163b8a38daafd1651b043a276">isError</a>()) {</div><div class="line"><a name="l00154"></a><span class="lineno"> 154</span>  <span class="keywordflow">return</span> <a class="code" href="classError.html">Error</a>(<span class="stringliteral">"Error reading file '"</span> + value + <span class="stringliteral">"': "</span> + read.<a class="code" href="classTry.html#aec4a11ddd3c036e889d90b7eb6258ba7">error</a>());</div><div class="line
"><a name="l00155"></a><span class="lineno"> 155</span>  }</div><div class="line"><a name="l00156"></a><span class="lineno"> 156</span>  <span class="keywordflow">return</span> JSON::parse<JSON::Array>(read.<a class="code" href="classTry.html#a8bc7f43e75a47111ea18e9c83b007be5">get</a>());</div><div class="line"><a name="l00157"></a><span class="lineno"> 157</span>  }</div><div class="line"><a name="l00158"></a><span class="lineno"> 158</span> <span class="preprocessor">#endif // __WINDOWS__</span></div><div class="line"><a name="l00159"></a><span class="lineno"> 159</span>  <span class="keywordflow">return</span> JSON::parse<JSON::Array>(value);</div><div class="line"><a name="l00160"></a><span class="lineno"> 160</span> }</div><div class="line"><a name="l00161"></a><span class="lineno"> 161</span> </div><div class="line"><a name="l00162"></a><span class="lineno"> 162</span> </div><div class="line"><a name="l00163">
</a><span class="lineno"> 163</span> <span class="keyword">template</span> <></div><div class="line"><a name="l00164"></a><span class="lineno"><a class="line" href="namespaceflags.html#acd8571b3ee50493ed6b4f0a5bd741d1b"> 164</a></span> <span class="keyword">inline</span> <a class="code" href="classTry.html">Try<Path></a> <a class="code" href="namespaceflags.html#af30eac14fca1a6fd93863545a0666e0c">parse</a>(<span class="keyword">const</span> std::string& value)</div><div class="line"><a name="l00165"></a><span class="lineno"> 165</span> {</div><div class="line"><a name="l00166"></a><span class="lineno"> 166</span>  <span class="keywordflow">return</span> <a class="code" href="classPath.html">Path</a>(value);</div><div class="line"><a name="l00167"></a><span class="lineno"> 167</span> }</div><div class="line"><a name="l00168"></a><span class="lineno"> 168</span> </div><div class="line"><a name="l00169"></a><span class="lineno"> 169
</span> </div><div class="line"><a name="l00170"></a><span class="lineno"> 170</span> <span class="keyword">template</span> <></div><div class="line"><a name="l00171"></a><span class="lineno"><a class="line" href="namespaceflags.html#ad1af85053e102de971aed1b1138619e0"> 171</a></span> <span class="keyword">inline</span> <a class="code" href="classTry.html">Try<SecurePathOrValue></a> <a class="code" href="namespaceflags.html#af30eac14fca1a6fd93863545a0666e0c">parse</a>(<span class="keyword">const</span> std::string& value)</div><div class="line"><a name="l00172"></a><span class="lineno"> 172</span> {</div><div class="line"><a name="l00173"></a><span class="lineno"> 173</span>  <a class="code" href="structflags_1_1SecurePathOrValue.html">SecurePathOrValue</a> result;</div><div class="line"><a name="l00174"></a><span class="lineno"> 174</span>  result.<a class="code" href="structflags_1_1SecurePathOrValue.html#ac8064a96d7a14f4c0bfaf65
4e5d772de">value</a> = value;</div><div class="line"><a name="l00175"></a><span class="lineno"> 175</span> </div><div class="line"><a name="l00176"></a><span class="lineno"> 176</span>  <span class="keywordflow">if</span> (<a class="code" href="namespacestrings.html#aa5513faacb213c7e097c0d43af43d9c7">strings::startsWith</a>(value, <span class="stringliteral">"file://"</span>)) {</div><div class="line"><a name="l00177"></a><span class="lineno"> 177</span>  <span class="keyword">const</span> std::string <a class="code" href="namespacepath.html">path</a> = value.substr(7);</div><div class="line"><a name="l00178"></a><span class="lineno"> 178</span> </div><div class="line"><a name="l00179"></a><span class="lineno"> 179</span>  <a class="code" href="classTry.html">Try<std::string></a> <a class="code" href="namespacemesos_1_1internal_1_1credentials.html#a137c93d60149616181a10e9f39986f7f">read</a> = <a class="code" href="namespaceos.html
#aa1d97ff0a93229e1fe6b33e3e2d567f7">os::read</a>(path);</div><div class="line"><a name="l00180"></a><span class="lineno"> 180</span> </div><div class="line"><a name="l00181"></a><span class="lineno"> 181</span>  <span class="keywordflow">if</span> (read.<a class="code" href="classTry.html#a0b98f95163b8a38daafd1651b043a276">isError</a>()) {</div><div class="line"><a name="l00182"></a><span class="lineno"> 182</span>  <span class="keywordflow">return</span> <a class="code" href="classError.html">Error</a>(<span class="stringliteral">"Error reading file '"</span> + path + <span class="stringliteral">"': "</span> + read.<a class="code" href="classTry.html#aec4a11ddd3c036e889d90b7eb6258ba7">error</a>());</div><div class="line"><a name="l00183"></a><span class="lineno"> 183</span>  }</div><div class="line"><a name="l00184"></a><span class="lineno"> 184</span> </div><div class="line"><a name="l00185"></a><span class="line
no"> 185</span>  result.<a class="code" href="structflags_1_1SecurePathOrValue.html#ac8064a96d7a14f4c0bfaf654e5d772de">value</a> = read.<a class="code" href="classTry.html#a8bc7f43e75a47111ea18e9c83b007be5">get</a>();</div><div class="line"><a name="l00186"></a><span class="lineno"> 186</span>  result.<a class="code" href="structflags_1_1SecurePathOrValue.html#a28ba6af3886c2d7b09ffd521ccfb7c15">path</a> = <a class="code" href="classPath.html">Path</a>(path);</div><div class="line"><a name="l00187"></a><span class="lineno"> 187</span>  }</div><div class="line"><a name="l00188"></a><span class="lineno"> 188</span> </div><div class="line"><a name="l00189"></a><span class="lineno"> 189</span>  <span class="keywordflow">return</span> result;</div><div class="line"><a name="l00190"></a><span class="lineno"> 190</span> }</div><div class="line"><a name="l00191"></a><span class="lineno"> 191</span> </div><div class="line"><a name="l00192"></a
><span class="lineno"> 192</span> </div><div class="line"><a name="l00193"></a><span class="lineno"> 193</span> <span class="preprocessor">#ifdef __WINDOWS__</span></div><div class="line"><a name="l00194"></a><span class="lineno"> 194</span> <span class="keyword">template</span> <></div><div class="line"><a name="l00195"></a><span class="lineno"> 195</span> <span class="keyword">inline</span> <a class="code" href="classTry.html">Try<int_fd></a> <a class="code" href="namespaceflags.html#af30eac14fca1a6fd93863545a0666e0c">parse</a>(<span class="keyword">const</span> std::string& value)</div><div class="line"><a name="l00196"></a><span class="lineno"> 196</span> {</div><div class="line"><a name="l00197"></a><span class="lineno"> 197</span>  <span class="comment">// Looks like "WindowsFD::Type::HANDLE=0000000000000000".</span></div><div class="line"><a name="l00198"></a><span class="lineno"> 198</span>  std::vector<
;std::string> fd = <a class="code" href="namespacestrings.html#a1f86a4a73f20056475dc065ec984eb7a">strings::split</a>(value, <span class="stringliteral">"="</span>);</div><div class="line"><a name="l00199"></a><span class="lineno"> 199</span>  <span class="keywordflow">if</span> (fd.size() != 2) {</div><div class="line"><a name="l00200"></a><span class="lineno"> 200</span>  <span class="keywordflow">return</span> <a class="code" href="classError.html">Error</a>(<span class="stringliteral">"Expected to split string into exactly two parts."</span>);</div><div class="line"><a name="l00201"></a><span class="lineno"> 201</span>  }</div><div class="line"><a name="l00202"></a><span class="lineno"> 202</span> </div><div class="line"><a name="l00203"></a><span class="lineno"> 203</span>  <span class="keywordflow">if</span> (<a class="code" href="namespacestrings.html#a04772ad549ec2958e0cd80218c32a865">strings::endsWith</a>(fd[0], <spa
n class="stringliteral">"HANDLE"</span>)) {</div><div class="line"><a name="l00204"></a><span class="lineno"> 204</span>  <a class="code" href="classTry.html">Try<HANDLE></a> t = parse<HANDLE>(fd[1]);</div><div class="line"><a name="l00205"></a><span class="lineno"> 205</span>  <span class="keywordflow">if</span> (t.<a class="code" href="classTry.html#a0b98f95163b8a38daafd1651b043a276">isError</a>()) {</div><div class="line"><a name="l00206"></a><span class="lineno"> 206</span>  <span class="keywordflow">return</span> <a class="code" href="classError.html">Error</a>(t.<a class="code" href="classTry.html#aec4a11ddd3c036e889d90b7eb6258ba7">error</a>());</div><div class="line"><a name="l00207"></a><span class="lineno"> 207</span>  }</div><div class="line"><a name="l00208"></a><span class="lineno"> 208</span>  <span class="keywordflow">return</span> <a class="code" href="int__fd_8hpp.html#aea4dbda01c90455f158ffa9b924c2
f07">int_fd</a>(t.<a class="code" href="classTry.html#a8bc7f43e75a47111ea18e9c83b007be5">get</a>());</div><div class="line"><a name="l00209"></a><span class="lineno"> 209</span>  } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (<a class="code" href="namespacestrings.html#a04772ad549ec2958e0cd80218c32a865">strings::endsWith</a>(fd[0], <span class="stringliteral">"SOCKET"</span>)) {</div><div class="line"><a name="l00210"></a><span class="lineno"> 210</span>  <a class="code" href="classTry.html">Try<SOCKET></a> t = parse<SOCKET>(fd[1]);</div><div class="line"><a name="l00211"></a><span class="lineno"> 211</span>  <span class="keywordflow">if</span> (t.<a class="code" href="classTry.html#a0b98f95163b8a38daafd1651b043a276">isError</a>()) {</div><div class="line"><a name="l00212"></a><span class="lineno"> 212</span>  <span class="keywordflow">return</span> <a class="code" href="classError.html">Error</a
>(t.<a class="code" href="classTry.html#aec4a11ddd3c036e889d90b7eb6258ba7">error</a>());</div><div class="line"><a name="l00213"></a><span class="lineno"> 213</span>  }</div><div class="line"><a name="l00214"></a><span class="lineno"> 214</span>  <span class="keywordflow">return</span> <a class="code" href="int__fd_8hpp.html#aea4dbda01c90455f158ffa9b924c2f07">int_fd</a>(t.<a class="code" href="classTry.html#a8bc7f43e75a47111ea18e9c83b007be5">get</a>());</div><div class="line"><a name="l00215"></a><span class="lineno"> 215</span>  }</div><div class="line"><a name="l00216"></a><span class="lineno"> 216</span> </div><div class="line"><a name="l00217"></a><span class="lineno"> 217</span>  <span class="keywordflow">return</span> <a class="code" href="classError.html">Error</a>(<span class="stringliteral">"`int_fd` was neither a `HANDLE` nor a `SOCKET`"</span>);</div><div class="line"><a name="l00218"></a><span class="lineno"> 218</span>
60;}</div><div class="line"><a name="l00219"></a><span class="lineno"> 219</span> <span class="preprocessor">#endif // __WINDOWS__</span></div><div class="line"><a name="l00220"></a><span class="lineno"> 220</span> </div><div class="line"><a name="l00221"></a><span class="lineno"> 221</span> } <span class="comment">// namespace flags {</span></div><div class="line"><a name="l00222"></a><span class="lineno"> 222</span> </div><div class="line"><a name="l00223"></a><span class="lineno"> 223</span> <span class="preprocessor">#endif // __STOUT_FLAGS_PARSE_HPP__</span></div><div class="ttc" id="namespacestrings_html_a04772ad549ec2958e0cd80218c32a865"><div class="ttname"><a href="namespacestrings.html#a04772ad549ec2958e0cd80218c32a865">strings::endsWith</a></div><div class="ttdeci">bool endsWith(const std::string &s, const std::string &suffix)</div><div class="ttdef"><b>Definition:</b> strings.hpp:393</div></div>
<div class="ttc" id="namespacepath_html"><div class="ttname"><a href="namespacepath.html">path</a></div><div class="ttdef"><b>Definition:</b> path.hpp:26</div></div>
-<div class="ttc" id="classError_html"><div class="ttname"><a href="classError.html">Error</a></div><div class="ttdef"><b>Definition:</b> errorbase.hpp:35</div></div>
+<div class="ttc" id="classError_html"><div class="ttname"><a href="classError.html">Error</a></div><div class="ttdef"><b>Definition:</b> errorbase.hpp:36</div></div>
<div class="ttc" id="classTry_html_a8bc7f43e75a47111ea18e9c83b007be5"><div class="ttname"><a href="classTry.html#a8bc7f43e75a47111ea18e9c83b007be5">Try::get</a></div><div class="ttdeci">T & get()&</div><div class="ttdef"><b>Definition:</b> try.hpp:73</div></div>
<div class="ttc" id="classTry_html"><div class="ttname"><a href="classTry.html">Try</a></div><div class="ttdef"><b>Definition:</b> check.hpp:33</div></div>
<div class="ttc" id="3rdparty_2stout_2include_2stout_2ip_8hpp_html"><div class="ttname"><a href="3rdparty_2stout_2include_2stout_2ip_8hpp.html">ip.hpp</a></div></div>
http://git-wip-us.apache.org/repos/asf/mesos-site/blob/d7774475/content/api/latest/c++/3rdparty_2stout_2include_2stout_2ip_8hpp_source.html
----------------------------------------------------------------------
diff --git a/content/api/latest/c++/3rdparty_2stout_2include_2stout_2ip_8hpp_source.html b/content/api/latest/c++/3rdparty_2stout_2include_2stout_2ip_8hpp_source.html
index 249f11f..c594eed 100644
--- a/content/api/latest/c++/3rdparty_2stout_2include_2stout_2ip_8hpp_source.html
+++ b/content/api/latest/c++/3rdparty_2stout_2include_2stout_2ip_8hpp_source.html
@@ -58,7 +58,7 @@
<div class="ttc" id="classnet_1_1IPv6_html_aa10eb595a2c9e36a2c40d880dbe851f7"><div class="ttname"><a href="classnet_1_1IPv6.html#aa10eb595a2c9e36a2c40d880dbe851f7">net::IPv6::ANY</a></div><div class="ttdeci">static IPv6 ANY()</div><div class="ttdef"><b>Definition:</b> ip.hpp:386</div></div>
<div class="ttc" id="structstd_1_1hash_3_01net_1_1IP_01_4_html_af873f4d78fd40b8156b8cc657d2d4244"><div class="ttname"><a href="structstd_1_1hash_3_01net_1_1IP_01_4.html#af873f4d78fd40b8156b8cc657d2d4244">std::hash< net::IP >::operator()</a></div><div class="ttdeci">result_type operator()(const argument_type &ip) const </div><div class="ttdef"><b>Definition:</b> ip.hpp:688</div></div>
<div class="ttc" id="classnet_1_1IP_1_1Network_html_a695af4d391431eaf349b81615baf90de"><div class="ttname"><a href="classnet_1_1IP_1_1Network.html#a695af4d391431eaf349b81615baf90de">net::IP::Network::address</a></div><div class="ttdeci">IP address() const </div><div class="ttdef"><b>Definition:</b> ip.hpp:261</div></div>
-<div class="ttc" id="classError_html"><div class="ttname"><a href="classError.html">Error</a></div><div class="ttdef"><b>Definition:</b> errorbase.hpp:35</div></div>
+<div class="ttc" id="classError_html"><div class="ttname"><a href="classError.html">Error</a></div><div class="ttdef"><b>Definition:</b> errorbase.hpp:36</div></div>
<div class="ttc" id="classnet_1_1IPv4_html"><div class="ttname"><a href="classnet_1_1IPv4.html">net::IPv4</a></div><div class="ttdef"><b>Definition:</b> ip.hpp:334</div></div>
<div class="ttc" id="abort_8hpp_html_a4d84a74fe6e4f84bc3d2f901b9e89f93"><div class="ttname"><a href="abort_8hpp.html#a4d84a74fe6e4f84bc3d2f901b9e89f93">ABORT</a></div><div class="ttdeci">#define ABORT(...)</div><div class="ttdef"><b>Definition:</b> abort.hpp:40</div></div>
<div class="ttc" id="classnet_1_1IP_1_1Network_html_a1092241ceaa7c4ec81ac4a170dc5a695"><div class="ttname"><a href="classnet_1_1IP_1_1Network.html#a1092241ceaa7c4ec81ac4a170dc5a695">net::IP::Network::operator!=</a></div><div class="ttdeci">bool operator!=(const Network &that) const </div><div class="ttdef"><b>Definition:</b> ip.hpp:297</div></div>