OpenQuizz
Une application de gestion des contenus pédagogiques
PlatformInfo Class Reference

Public Member Functions

def __init__ (self, arch)
 
def target_cpu (self)
 
def target_is_x86 (self)
 
def current_is_x86 (self)
 
def current_dir (self, hidex86=False, x64=False)
 
def target_dir (self, hidex86=False, x64=False)
 
def cross_dir (self, forcex86=False)
 

Data Fields

 arch
 
 target_cpu
 

Static Public Attributes

 current_cpu
 

Detailed Description

Current and Target Architectures information.

Parameters
----------
arch: str
    Target architecture.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  arch 
)

Member Function Documentation

◆ cross_dir()

def cross_dir (   self,
  forcex86 = False 
)
Cross platform specific subfolder.

Parameters
----------
forcex86: bool
    Use 'x86' as current architecture even if current architecture is
    not x86.

Return
------
str
    subfolder: '' if target architecture is current architecture,
    '\current_target' if not.

◆ current_dir()

def current_dir (   self,
  hidex86 = False,
  x64 = False 
)
Current platform specific subfolder.

Parameters
----------
hidex86: bool
    return '' and not '\x86' if architecture is x86.
x64: bool
    return '\x64' and not '\amd64' if architecture is amd64.

Return
------
str
    subfolder: '\target', or '' (see hidex86 parameter)

◆ current_is_x86()

def current_is_x86 (   self)
Return True if current CPU is x86 32 bits..

Return
------
bool
    CPU is x86 32 bits

◆ target_cpu()

def target_cpu (   self)
Return Target CPU architecture.

Return
------
str
    Target CPU

◆ target_dir()

def target_dir (   self,
  hidex86 = False,
  x64 = False 
)
Target platform specific subfolder.

Parameters
----------
hidex86: bool
    return '' and not '\x86' if architecture is x86.
x64: bool
    return '\x64' and not '\amd64' if architecture is amd64.

Return
------
str
    subfolder: '\current', or '' (see hidex86 parameter)

◆ target_is_x86()

def target_is_x86 (   self)
Return True if target CPU is x86 32 bits..

Return
------
bool
    CPU is x86 32 bits

Field Documentation

◆ arch

arch

◆ current_cpu

current_cpu
static

◆ target_cpu

target_cpu

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