29 static const Platform& local();
39 Platform(
bool iswin,
bool is32,
bool ismac=
false )
40 {
set(iswin,is32,ismac); }
42 {
return type_ == p.
type_; }
44 {
return type_ == t; }
46 const char*
longName()
const {
return getTypeString(type_); }
47 const char* shortName()
const;
49 static bool isValidName(
const char*,
bool isshortnm);
50 void set(
const char*,
bool isshortnm);
51 inline void set(
bool iswin,
bool is32,
bool ismac=false )
52 { type_ = ismac ? Mac : (iswin ? (is32 ? Win32 : Win64)
53 : (is32 ? Lin32 : Lin64) ); }
56 {
return type_ == Win32 || type_ == Win64; }
58 {
return type_ == Lin32 || type_ == Lin64; }
60 {
return type_ == Mac; }
63 {
return type_ != Win64 && type_ != Lin64; }
78 #define mPlf(ptyp) OD::Platform(OD::Platform::ptyp) 79 #define mPlfShortName(ptyp) mPlf(ptyp).shortName() #define mExpClass(module)
Definition: commondefs.h:160
bool operator==(const ArrayNDInfo &a1, const ArrayNDInfo &a2)
Definition: arrayndinfo.h:53
#define mDeclareEnumUtils(enm)
Some utilities surrounding the often needed enum <-> string table.
Definition: enums.h:258
OpendTect.
Definition: commontypes.h:29