CommonTools
Utils
src
popenCPP.h
Go to the documentation of this file.
1
#ifndef CommonToolsUtils_popenCPP_H
2
#define CommonToolsUtils_popenCPP_H
3
#include <memory>
4
#include <string>
5
#include <sstream>
6
7
namespace
reco
{
8
namespace
exprEvalDetails {
9
10
std::unique_ptr<std::istream>
popenCPP
(
const
std::string
&
cmdline
);
11
12
inline
std::string
execSysCommand
(
const
std::string
&
cmdline
) {
13
std::ostringstream n1;
14
{
15
auto
s1 =
popenCPP
(
cmdline
+
" 2>&1"
);
16
n1 << s1->rdbuf();
17
}
18
return
n1.str();
19
}
20
21
}
// namespace exprEvalDetails
22
}
// namespace reco
23
24
#endif // CommonToolsUtils__popenCPP_H
reco
fixed size matrix
Definition:
AlignmentAlgorithmBase.h:45
reco::exprEvalDetails::execSysCommand
std::string execSysCommand(const std::string &cmdline)
Definition:
popenCPP.h:12
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
cmdline
Definition:
CmdLine.h:119
reco::exprEvalDetails::popenCPP
std::unique_ptr< std::istream > popenCPP(const std::string &cmdline)
Definition:
popenCPP.cc:33
Generated for CMSSW Reference Manual by
1.8.16