OpendTect 8.0
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
OD::Platform Class Reference

Platform or Operating System. More...

#include <odplatform.h>

Public Types

enum class  Type { Linux , Windows , MacOS }
 

Public Member Functions

 Platform ()
 This platform.
 
 Platform (const char *s, bool isshortnm)
 
 Platform (Type)
 That platform.
 
 ~Platform ()
 
bool isLinux () const
 
bool isMac () const
 
bool isWindows () const
 
const char * longName () const
 
bool operator!= (const Platform &p) const
 
bool operator== (const Platform &p) const
 
bool operator== (const Platform::Type &t) const
 
const char * osName () const
 
void set (const char *, bool isshortnm)
 
void setType (Type t)
 
const char * shortName () const
 lux64, win64, etc.
 
Type type () const
 

Static Public Member Functions

static bool isValidName (const char *, bool isshortnm)
 
static const Platformlocal ()
 This platform.
 
static const char * sPlatform ()
 

Private Attributes

Type type_
 

Detailed Description

Platform or Operating System.

<>

Member Enumeration Documentation

◆ Type

enum class OD::Platform::Type
strong
Enumerator
Linux 
Windows 
MacOS 

Constructor & Destructor Documentation

◆ Platform() [1/3]

OD::Platform::Platform ( )

This platform.

◆ Platform() [2/3]

OD::Platform::Platform ( Type )

That platform.

◆ Platform() [3/3]

OD::Platform::Platform ( const char * s,
bool isshortnm )
inline

◆ ~Platform()

OD::Platform::~Platform ( )

Member Function Documentation

◆ isLinux()

bool OD::Platform::isLinux ( ) const
inline

◆ isMac()

bool OD::Platform::isMac ( ) const
inline

◆ isValidName()

static bool OD::Platform::isValidName ( const char * ,
bool isshortnm )
static

◆ isWindows()

bool OD::Platform::isWindows ( ) const
inline

◆ local()

static const Platform & OD::Platform::local ( )
static

This platform.

◆ longName()

const char * OD::Platform::longName ( ) const
inline

◆ operator!=()

bool OD::Platform::operator!= ( const Platform & p) const
inline

◆ operator==() [1/2]

bool OD::Platform::operator== ( const Platform & p) const
inline

◆ operator==() [2/2]

bool OD::Platform::operator== ( const Platform::Type & t) const
inline

◆ osName()

const char * OD::Platform::osName ( ) const

◆ set()

void OD::Platform::set ( const char * ,
bool isshortnm )

◆ setType()

void OD::Platform::setType ( Type t)
inline

◆ shortName()

const char * OD::Platform::shortName ( ) const

lux64, win64, etc.

◆ sPlatform()

static const char * OD::Platform::sPlatform ( )
inlinestatic

◆ type()

Type OD::Platform::type ( ) const
inline

Member Data Documentation

◆ type_

Type OD::Platform::type_
private

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