Vuo  2.0.0
Public Types | Public Member Functions | List of all members
VuoCompilerTargetSet Class Reference

Description

Stores a set of targets (operating system versions) and can be used to check compatibility.

Definition at line 15 of file VuoCompilerTargetSet.hh.

Public Types

enum  MacVersion {
  MacVersion_Any, MacVersion_10_7, MacVersion_10_8, MacVersion_10_9,
  MacVersion_10_10, MacVersion_10_11, MacVersion_10_12, MacVersion_10_13,
  MacVersion_10_14, MacVersion_10_15
}
 Mac OS versions. More...
 

Public Member Functions

 VuoCompilerTargetSet (void)
 Creates a target set that is unrestricted. More...
 
void setMinMacVersion (enum MacVersion min)
 Restricts the target set to Mac OS versions of min or above. More...
 
string getMinMacVersionString ()
 Returns a string (suitable for the LSMinimumSystemVersion Info.plist key) representing the minimum compatible OS version. More...
 
void setMaxMacVersion (enum MacVersion max)
 Restricts the target set to Mac OS versions of max or below. More...
 
void restrictToCurrentOperatingSystemVersion (void)
 Restricts the target set to the current (runtime) Mac OS version. More...
 
void restrictToBeCompatibleWithAllOf (const VuoCompilerTargetSet &other)
 Restricts the target set to the intersection between it and the other target set. More...
 
bool isCompatibleWithAllOf (const VuoCompilerTargetSet &other) const
 Returns true if this target set is a superset of the other target set. More...
 
string toString (void)
 Returns a description of this target set. More...
 

Member Enumeration Documentation

◆ MacVersion

Mac OS versions.

Definition at line 21 of file VuoCompilerTargetSet.hh.

Constructor & Destructor Documentation

◆ VuoCompilerTargetSet()

VuoCompilerTargetSet::VuoCompilerTargetSet ( void  )

Creates a target set that is unrestricted.

It includes any operating system version.

Definition at line 18 of file VuoCompilerTargetSet.cc.

Member Function Documentation

◆ getMinMacVersionString()

string VuoCompilerTargetSet::getMinMacVersionString ( )

Returns a string (suitable for the LSMinimumSystemVersion Info.plist key) representing the minimum compatible OS version.

If no minimum is specified, returns emptystring.

Definition at line 36 of file VuoCompilerTargetSet.cc.

◆ isCompatibleWithAllOf()

bool VuoCompilerTargetSet::isCompatibleWithAllOf ( const VuoCompilerTargetSet other) const

Returns true if this target set is a superset of the other target set.

Definition at line 88 of file VuoCompilerTargetSet.cc.

◆ restrictToBeCompatibleWithAllOf()

void VuoCompilerTargetSet::restrictToBeCompatibleWithAllOf ( const VuoCompilerTargetSet other)

Restricts the target set to the intersection between it and the other target set.

Definition at line 74 of file VuoCompilerTargetSet.cc.

◆ restrictToCurrentOperatingSystemVersion()

void VuoCompilerTargetSet::restrictToCurrentOperatingSystemVersion ( void  )

Restricts the target set to the current (runtime) Mac OS version.

Definition at line 64 of file VuoCompilerTargetSet.cc.

◆ setMaxMacVersion()

void VuoCompilerTargetSet::setMaxMacVersion ( enum MacVersion  max)

Restricts the target set to Mac OS versions of max or below.

Definition at line 56 of file VuoCompilerTargetSet.cc.

◆ setMinMacVersion()

void VuoCompilerTargetSet::setMinMacVersion ( enum MacVersion  min)

Restricts the target set to Mac OS versions of min or above.

Definition at line 26 of file VuoCompilerTargetSet.cc.

◆ toString()

string VuoCompilerTargetSet::toString ( void  )

Returns a description of this target set.

Definition at line 99 of file VuoCompilerTargetSet.cc.


The documentation for this class was generated from the following files: