Jpp
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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
JUTSName()
Default constructor.
Definition: JUTSName.hh:27
Auxiliary class for operating system information.
Definition: JUTSName.hh:21