27 static const Platform& local();
37 Platform(
bool iswin,
bool is32,
bool ismac=
false )
38 {
set(iswin,is32,ismac); }
40 {
return type_ == p.
type_; }
42 {
return type_ == t; }
44 const char*
longName()
const {
return TypeDef().getKey(type_); }
45 const char* shortName()
const;
47 static bool isValidName(
const char*,
bool isshortnm);
48 void set(
const char*,
bool isshortnm);
49 inline void set(
bool iswin,
bool is32,
bool ismac=false )
50 { type_ = ismac ? Mac : (iswin ? (is32 ? Win32 : Win64)
51 : (is32 ? Lin32 : Lin64) ); }
54 {
return type_ == Win32 || type_ == Win64; }
56 {
return type_ == Lin32 || type_ == Lin64; }
58 {
return type_ == Mac; }
61 {
return type_ != Win64 && type_ != Lin64; }
76 #define mPlf(ptyp) OD::Platform(OD::Platform::ptyp) 77 #define mPlfShortName(ptyp) mPlf(ptyp).shortName() #define mExpClass(module)
Definition: commondefs.h:157
bool operator==(const ArrayNDInfo &a1, const ArrayNDInfo &a2)
Definition: arrayndinfo.h:51
#define mDeclareEnumUtils(enm)
Some utilities surrounding the often needed enum <-> string table.
Definition: enums.h:188
OpendTect.
Definition: commontypes.h:25