OpendTect  6.6
systeminfo.h
Go to the documentation of this file.
1 #pragma once
2 
3 /*+
4 ________________________________________________________________________
5 
6  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
7  Author: Nanne Hemstra
8  Date: April 2010
9  RCS: $Id$
10 ________________________________________________________________________
11 
12 -*/
13 
14 #include "networkmod.h"
15 #include "gendefs.h"
16 
17 class BufferStringSet;
18 class IOObj;
19 class uiString;
20 
21 namespace System
22 {
23  mGlobal(Network) const char* localHostName();
25  mGlobal(Network) const char* localAddress(bool ipv4only=true);
26 
27  mGlobal(Network) const char* hostName(const char* ip);
28  mGlobal(Network) const char* hostAddress(const char* hostname,
29  bool ipv4only=true);
30  mGlobal(Network) bool lookupHost(const char* host_ip,
31  BufferString* msg=0);
32 
34  BufferStringSet& addresses,
35  bool onlyactive=false);
36 
37  mGlobal(Network) int getFreeMBOnDisk(const char* path);
41  mGlobal(Network) const char* getFileSystemName(const char* path);
42 
43  mGlobal(Network) od_int64 bytesAvailable(const char* path);
44  mGlobal(Network) od_int64 bytesFree(const char* path);
45  mGlobal(Network) od_int64 bytesTotal(const char* path);
46  mGlobal(Network) const char* fileSystemName(const char* path);
47  mGlobal(Network) const char* fileSystemType(const char* path);
48 
57  BufferString& errmsg);
58  mGlobal(Network) const char* productName();
60  mGlobal(Network) const char* kernelVersion();
61 }
62 
od_uint64
#define od_uint64
Definition: plftypes.h:36
System::localHostName
const char * localHostName()
shortcut to GetLocalHostName()
System::localAddress
const char * localAddress(bool ipv4only=true)
mGlobal
#define mGlobal(module)
Definition: commondefs.h:180
System::bytesFree
od_int64 bytesFree(const char *path)
BufferStringSet
Set of BufferString objects.
Definition: bufstringset.h:26
System
Definition: debug.h:74
od_int64
#define od_int64
Definition: plftypes.h:35
System::lookupHost
bool lookupHost(const char *host_ip, BufferString *msg=0)
System::bytesTotal
od_int64 bytesTotal(const char *path)
Network
Definition: jobcommunic.h:22
System::kernelVersion
const char * kernelVersion()
System::getFreeMBOnDiskMsg
void getFreeMBOnDiskMsg(int, BufferString &)
System::fileSystemName
const char * fileSystemName(const char *path)
System::bytesAvailable
od_int64 bytesAvailable(const char *path)
System::uniqueSystemID
od_uint64 uniqueSystemID()
System::productName
const char * productName()
return OS, distribution, etc.
System::getHostIDs
bool getHostIDs(BufferStringSet &hostids, BufferString &errmsg)
System::hostAddress
const char * hostAddress(const char *hostname, bool ipv4only=true)
gendefs.h
System::fileSystemType
const char * fileSystemType(const char *path)
IOObj
Definition: ioobj.h:58
System::macAddresses
void macAddresses(BufferStringSet &names, BufferStringSet &addresses, bool onlyactive=false)
BufferString
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size.
Definition: bufstring.h:40
uiString
String that is able to hold international (UTF-8) strings for the user interface.
Definition: uistring.h:121
System::macAddressHash
od_uint64 macAddressHash()
System::hostName
const char * hostName(const char *ip)
System::getFileSystemName
const char * getFileSystemName(const char *path)
System::getFreeMBOnDisk
int getFreeMBOnDisk(const char *path)

Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B.V. 1995-2021