OpendTect-6_4  6.4
Public Types | Public Member Functions | Static Public Member Functions | Protected Attributes | Static Protected Attributes | List of all members
OD::Platform Class Reference

Platform or Operating System. More...

Public Types

enum  Type {
  Lin32, Lin64, Win32, Win64,
  Mac
}
 

Public Member Functions

 Platform ()
 This platform. More...
 
 Platform (Type t)
 
 Platform (const char *s, bool isshortnm)
 
 Platform (bool iswin, bool is32, bool ismac=false)
 
bool operator== (const Platform &p) const
 
bool operator== (const Platform::Type &t) const
 
const char * longName () const
 
const char * shortName () const
 mac, lux32, win64, etc. More...
 
void set (const char *, bool isshortnm)
 
void set (bool iswin, bool is32, bool ismac=false)
 
bool isWindows () const
 
bool isLinux () const
 
bool isMac () const
 
bool is32Bits () const
 
Type type () const
 
Typetype ()
 
void setType (Type t)
 

Static Public Member Functions

static const Platformlocal ()
 This platform. More...
 
static const EnumDefImpl< Type > & TypeDef ()
 
static const char ** TypeNames ()
 
static bool parseEnumType (const char *, Type &)
 
static bool parseEnum (const char *, Type &)
 
static bool parseEnum (const IOPar &, const char *, Type &)
 
static Type parseEnumType (const char *)
 
static const char * toString (Type)
 
static uiString toUiString (Type)
 
static const char * getTypeString (Type)
 
static bool isValidName (const char *, bool isshortnm)
 

Protected Attributes

Type type_
 

Static Protected Attributes

static const char * TypeKeys_ []
 
static ConstPtrMan< EnumDefImpl< Type > > TypeDefinition_
 

Detailed Description

Platform or Operating System.

Member Enumeration Documentation

Enumerator
Lin32 
Lin64 
Win32 
Win64 
Mac 

Constructor & Destructor Documentation

OD::Platform::Platform ( )

This platform.

OD::Platform::Platform ( Type  t)
inline
Parameters
tThat platform
OD::Platform::Platform ( const char *  s,
bool  isshortnm 
)
inline
OD::Platform::Platform ( bool  iswin,
bool  is32,
bool  ismac = false 
)
inline

Member Function Documentation

static const char* OD::Platform::getTypeString ( Type  )
static
bool OD::Platform::is32Bits ( ) const
inline
bool OD::Platform::isLinux ( ) const
inline
bool OD::Platform::isMac ( ) const
inline
static bool OD::Platform::isValidName ( const char *  ,
bool  isshortnm 
)
static
bool OD::Platform::isWindows ( ) const
inline
static const Platform& OD::Platform::local ( )
static

This platform.

const char* OD::Platform::longName ( ) const
inline
bool OD::Platform::operator== ( const Platform p) const
inline
bool OD::Platform::operator== ( const Platform::Type t) const
inline
static bool OD::Platform::parseEnum ( const char *  ,
Type  
)
static
static bool OD::Platform::parseEnum ( const IOPar ,
const char *  ,
Type  
)
static
static bool OD::Platform::parseEnumType ( const char *  ,
Type  
)
static
static Type OD::Platform::parseEnumType ( const char *  )
static
void OD::Platform::set ( const char *  ,
bool  isshortnm 
)
void OD::Platform::set ( bool  iswin,
bool  is32,
bool  ismac = false 
)
inline
void OD::Platform::setType ( Type  t)
inline
const char* OD::Platform::shortName ( ) const

mac, lux32, win64, etc.

static const char* OD::Platform::toString ( Type  )
static
static uiString OD::Platform::toUiString ( Type  )
static
Type OD::Platform::type ( ) const
inline
Type& OD::Platform::type ( )
inline
static const EnumDefImpl< Type >& OD::Platform::TypeDef ( )
static
static const char** OD::Platform::TypeNames ( )
static

Member Data Documentation

Type OD::Platform::type_
protected
ConstPtrMan<EnumDefImpl< Type > > OD::Platform::TypeDefinition_
staticprotected
const char* OD::Platform::TypeKeys_[]
staticprotected

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