haiku/headers/private/debugger/model/SystemInfo.h
Rene Gollent fce4895d18 Debugger: Split into core library and application.
- Add subfolder src/kits/debugger which contains the debugger's core
  functionality and lower layers. Correspondingly add headers/private/debugger
  for shared headers to be used by clients such as the Debugger application
  and eventual remote_debug_server. Adjust various files to account for
  differences as a result of the split and moves.
- Add libdebugger.so to minimal Jamfile.
2016-06-04 13:18:39 -04:00

41 lines
818 B
C++

/*
* Copyright 2013, Rene Gollent, rene@gollent.com.
* Distributed under the terms of the MIT License.
*/
#ifndef SYSTEM_INFO_H
#define SYSTEM_INFO_H
#include <sys/utsname.h>
#include <OS.h>
#include <String.h>
#include "Types.h"
class SystemInfo {
public:
SystemInfo();
SystemInfo(const SystemInfo& other);
SystemInfo(team_id team,
const system_info& info,
const utsname& name);
void SetTo(team_id team, const system_info& info,
const utsname& name);
team_id TeamID() const { return fTeam; }
const system_info& GetSystemInfo() const { return fSystemInfo; }
const utsname& GetSystemName() const { return fSystemName; }
private:
team_id fTeam;
system_info fSystemInfo;
utsname fSystemName;
};
#endif // SYSTEM_INFO_H