OpendTect-6_4  6.4
systeminfo.h
Go to the documentation of this file.
1 #ifndef systeminfo_h
2 #define systeminfo_h
3 
4 /*+
5 ________________________________________________________________________
6 
7  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
8  Author: Nanne Hemstra
9  Date: April 2010
10  RCS: $Id$
11 ________________________________________________________________________
12 
13 -*/
14 
15 #include "networkmod.h"
16 #include "gendefs.h"
17 
18 class BufferStringSet;
19 class IOObj;
20 class uiString;
21 
22 namespace System
23 {
24  mGlobal(Network) const char* localHostName();
26  mGlobal(Network) const char* localAddress(bool ipv4only=true);
27 
28  mGlobal(Network) const char* hostName(const char* ip);
29  mGlobal(Network) const char* hostAddress(const char* hostname,
30  bool ipv4only=true);
31  mGlobal(Network) bool lookupHost(const char* host_ip,
32  BufferString* msg=0);
33 
35  BufferStringSet& addresses,
36  bool onlyactive=false);
37 
38  mGlobal(Network) int getFreeMBOnDisk(const char* path);
39  mGlobal(Network) int getFreeMBOnDisk(const IOObj&);
42  mGlobal(Network) const char* getFileSystemName(const char* path);
43 
44  mGlobal(Network) od_int64 bytesAvailable(const char* path);
45  mGlobal(Network) od_int64 bytesFree(const char* path);
46  mGlobal(Network) od_int64 bytesTotal(const char* path);
47  mGlobal(Network) const char* fileSystemName(const char* path);
48  mGlobal(Network) const char* fileSystemType(const char* path);
49 
57 }
58 
59 #endif
void getFreeMBOnDiskMsg(int, BufferString &)
Definition: ioobj.h:58
Definition: jobcommunic.h:24
const char * localHostName()
shortcut to GetLocalHostName()
#define mGlobal(module)
Definition: commondefs.h:163
#define od_int64
Definition: plftypes.h:36
Definition: uistring.h:89
const char * fileSystemName(const char *path)
Set of BufferString objects.
Definition: bufstringset.h:28
od_int64 bytesTotal(const char *path)
od_int64 bytesAvailable(const char *path)
const char * hostAddress(const char *hostname, bool ipv4only=true)
void macAddresses(BufferStringSet &names, BufferStringSet &addresses, bool onlyactive=false)
od_uint64 uniqueSystemID()
const char * hostName(const char *ip)
od_uint64 macAddressHash()
const char * getFileSystemName(const char *path)
#define od_uint64
Definition: plftypes.h:37
Definition: issuereporter.h:19
const char * fileSystemType(const char *path)
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size...
Definition: bufstring.h:40
od_int64 bytesFree(const char *path)
const char * localAddress(bool ipv4only=true)
bool lookupHost(const char *host_ip, BufferString *msg=0)
int getFreeMBOnDisk(const char *path)

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