1 /* 2 * Copyright 2013, Rene Gollent, rene@gollent.com. 3 * Distributed under the terms of the MIT License. 4 */ 5 #ifndef SYSTEM_INFO_H 6 #define SYSTEM_INFO_H 7 8 #include <sys/utsname.h> 9 10 #include <OS.h> 11 #include <String.h> 12 13 #include "Types.h" 14 15 16 class SystemInfo { 17 public: 18 SystemInfo(); 19 SystemInfo(const SystemInfo& other); 20 SystemInfo(team_id team, 21 const system_info& info, 22 const utsname& name); 23 24 void SetTo(team_id team, const system_info& info, 25 const utsname& name); 26 27 team_id TeamID() const { return fTeam; } 28 29 const system_info& GetSystemInfo() const { return fSystemInfo; } 30 31 const utsname& GetSystemName() const { return fSystemName; } 32 33 private: 34 team_id fTeam; 35 system_info fSystemInfo; 36 utsname fSystemName; 37 }; 38 39 40 #endif // SYSTEM_INFO_H 41