System.h
Go to the documentation of this file.
1 #ifndef _utl_System_h_
2 #define _utl_System_h_
3 
4 #include <string>
5 #include <sstream>
6 
7 
8 namespace utl {
9 
10  void System(const char* const command,
11  const bool throwOnError = false, const bool notify = false);
12 
13  inline void System(const std::string& command,
14  const bool throwOnError = false, const bool notify = false)
15  { System(command.c_str(), throwOnError, notify); }
16 
17  inline void System(const std::ostringstream& command,
18  const bool throwOnError = false, const bool notify = false)
19  { System(command.str().c_str(), throwOnError, notify); }
20 
21  inline void System(const std::stringstream& command,
22  const bool throwOnError = false, const bool notify = false)
23  { System(command.str().c_str(), throwOnError, notify); }
24 
25 }
26 
27 
28 #endif
void System(const char *const command, const bool throwOnError, const bool notify)
Definition: System.cc:10

, generated on Tue Sep 26 2023.