Foundry.Triplet¶
Fields¶
None
Methods¶
class |
|
class |
|
class |
|
class |
|
|
|
|
|
|
|
|
|
|
|
|
Details¶
- class Foundry.Triplet¶
- classmethod new(full_name)¶
- Parameters:
full_name (
str) – The complete identifier of the machine- Returns:
An
Foundry.Triplet.- Return type:
Creates a new
Foundry.Tripletfrom a given identifier. This identifier can be a simple architecture name, a duet of “arch-kernel” (like “m68k-coff”), a triplet of “arch-kernel-os” (like “x86_64-linux-gnu”) or a quadriplet of “arch-vendor-kernel-os” (like “i686-pc-linux-gnu”)
- classmethod new_from_system()¶
- Returns:
An
Foundry.Triplet.- Return type:
Creates a new
Foundry.Tripletfrom a the current system information
- classmethod new_with_quadruplet(arch, vendor, kernel, operating_system)¶
- Parameters:
arch (
str) – The name of the architecture of the machine (like “x86_64”)vendor (
strorNone) – The name of the vendor of the machine (like “pc”)kernel (
strorNone) – The name of the kernel of the machine (like “linux”)operating_system (
strorNone) – The name of the os of the machine (like “gnuabi64”)
- Returns:
An
Foundry.Triplet.- Return type:
Creates a new
Foundry.Tripletfrom a given quadruplet of “arch-vendor-kernel-os” (like “i686-pc-linux-gnu”)
- classmethod new_with_triplet(arch, kernel, operating_system)¶
- Parameters:
- Returns:
An
Foundry.Triplet.- Return type:
Creates a new
Foundry.Tripletfrom a given triplet of “arch-kernel-os” (like “x86_64-linux-gnu”)
- get_arch()¶
- Returns:
The architecture name of the machine
- Return type:
Gets the architecture name of the machine
- get_full_name()¶
- Returns:
The full name of the machine configuration name
- Return type:
Gets the full name of the machine configuration name (can be an architecture name, a duet, a triplet or a quadruplet).
- get_kernel()¶
-
Gets name of the kernel of the machine
- get_operating_system()¶
-
Gets name of the operating system of the machine
- get_vendor()¶
-
Gets the vendor name of the machine
- is_system()¶
-
Gets whether this is the same architecture as the system
- ref()¶
- Returns:
An
Foundry.Triplet.- Return type:
Increases the reference count of self
- unref()¶
Decreases the reference count of self Once the reference count reaches 0, the object is freed.