mmCEsim
0.3.0
mmWave Channel Estimation Simulation
maintain.h
Go to the documentation of this file.
1
12
#include "
_boost_config.h
"
13
#include "
meta.h
"
14
#include <boost/process.hpp>
15
#include <fstream>
16
#include <iostream>
17
24
static
inline
std::string
fetchUpstreamVersion
() {
25
const
std::string url =
"https://mmcesim.org/VERSION"
;
26
std::string response;
27
std::string error;
28
boost::process::ipstream out, err;
29
try
{
30
boost::process::child curl_process(
"curl "
+ url, boost::process::std_out > out, boost::process::std_err > err);
31
while
(curl_process.running() && (std::getline(out, response) || std::getline(err, error))) {
32
if
(!error.empty()) std::cerr << error <<
"\n"
;
33
else
return
response;
34
}
35
}
catch
(std::exception& e) {
36
std::cerr <<
"Exception: "
<< e.what() <<
"\n"
;
37
return
""
;
38
}
39
40
return
response;
41
}
_boost_config.h
Boost Configurations.
fetchUpstreamVersion
static std::string fetchUpstreamVersion()
Fetch the mmCEsim upstream version.
Definition:
maintain.h:24
meta.h
mmCEsim meta data
tools
maintain
maintain.h
Generated on Mon Apr 14 2025 06:34:32 for mmCEsim by
1.9.4