Jpp  19.1.0
the software that should make you happy
JUTSName.hh
Go to the documentation of this file.
1 #ifndef __JSYSTEM__JUTSNAME__
2 #define __JSYSTEM__JUTSNAME__
3 
4 #include <sys/utsname.h>
5 
6 
7 /**
8  * \file
9  * System information.
10  * \author mdejong
11  */
12 namespace JSYSTEM {}
13 namespace JPP { using namespace JSYSTEM; }
14 
15 namespace JSYSTEM {
16 
17  /**
18  * Auxiliary class for operating system information.
19  * This class encapsulates the <tt>utsname</tt> data structure.
20  */
21  struct JUTSName :
22  public utsname
23  {
24  /**
25  * Default constructor.
26  */
28  {
29  ::uname(static_cast<utsname*>(this));
30  }
31  };
32 }
33 
34 #endif
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
Auxiliary classes and methods for operating system calls.
Definition: JDateAndTime.hh:21
Auxiliary class for operating system information.
Definition: JUTSName.hh:23
JUTSName()
Default constructor.
Definition: JUTSName.hh:27