OpendTect  7.0
Public Types | Public Member Functions | Static Public Member Functions | Protected Attributes | List of all members
OD::Platform Class Reference

Platform or Operating System. More...

Public Types

enum  Type { Lin64 , Win32 , Win64 , Mac }
 

Public Member Functions

 Platform ()
 This platform. More...
 
 Platform (bool iswin, bool is32, bool ismac=false)
 
 Platform (const char *s, bool isshortnm)
 
 Platform (Type)
 That platform. More...
 
bool is32Bits () const
 
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 (bool iswin, bool is32, bool ismac=false)
 
void set (const char *, bool isshortnm)
 
void setType (Type t)
 
const char * shortName () const
 mac, lux32, win64, etc. More...
 
Typetype ()
 
Type type () const
 

Static Public Member Functions

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

Protected Attributes

Type type_
 

Detailed Description

Platform or Operating System.

<>

Member Enumeration Documentation

◆ Type

Enumerator
Lin64 
Win32 
Win64 
Mac 

Constructor & Destructor Documentation

◆ Platform() [1/4]

OD::Platform::Platform ( )

This platform.

◆ Platform() [2/4]

OD::Platform::Platform ( Type  )

That platform.

◆ Platform() [3/4]

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

◆ Platform() [4/4]

OD::Platform::Platform ( bool  iswin,
bool  is32,
bool  ismac = false 
)
inline

Member Function Documentation

◆ is32Bits()

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

◆ 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() [1/2]

void OD::Platform::set ( bool  iswin,
bool  is32,
bool  ismac = false 
)
inline

◆ set() [2/2]

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

◆ setType()

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

◆ shortName()

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

mac, lux32, win64, etc.

◆ sPlatform()

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

◆ type() [1/2]

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

◆ type() [2/2]

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

Member Data Documentation

◆ type_

Type OD::Platform::type_
protected

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