hudman 9.0.0
Local HUD mirror manager
hudman.HUDManager Class Reference

Public Member Functions

None __init__ (self, str gamedb, str outdir)
None getall (self)
None save (self)
None updateall (self)

Private Member Functions

bool __checkdb (self)
None __downloadhud (self, hud)
None __processdb (self, handler)
None __readdb (self)
None __setlogger (self)
None __updatehud (self, hud)

Private Attributes

 __downloadhud
 __gamedb
 __huddb = defusedxml.minidom.parse(self.__gamedb)
list __hudlist
 __logger = logging.getLogger(__name__)
 __outdir
 __updatehud

Detailed Description

Main class for working with the HUD database.

Constructor & Destructor Documentation

◆ __init__()

None hudman.HUDManager.__init__ ( self,
str gamedb,
str outdir )
Main constructor of HUDManager class.
:param gamedb: Full path to game database file.
:param outdir: Full path to output directory.

Member Function Documentation

◆ __checkdb()

bool hudman.HUDManager.__checkdb ( self)
private
Check if specified HUD database file exists.
:return: Return True if HUD database file exists.
:rtype: bool

◆ __downloadhud()

None hudman.HUDManager.__downloadhud ( self,
hud )
private
Download specified HUD using different backends without doing
update.
:param hud: HUD entry to process and download.

◆ __processdb()

None hudman.HUDManager.__processdb ( self,
handler )
private
Process all HUDs from the database.
:param handler: Handler method name.

◆ __readdb()

None hudman.HUDManager.__readdb ( self)
private
Read and parse HUD XML database file.

◆ __setlogger()

None hudman.HUDManager.__setlogger ( self)
private
Add logging support and configure logger.

◆ __updatehud()

None hudman.HUDManager.__updatehud ( self,
hud )
private
Process and download specified HUD using different backends.
:param hud: HUD entry to process and download.

◆ getall()

None hudman.HUDManager.getall ( self)
Download all HUDs from the database.

◆ save()

None hudman.HUDManager.save ( self)
Save changes back to XML database file.

◆ updateall()

None hudman.HUDManager.updateall ( self)
Download updates for all HUDs from the database.