Module XALT_Rmap :: Class Rmap
[hide private]
[frames] | no frames]

Class Rmap

source code

object --+
         |
        Rmap

This class files the reverseMap File from the reverse map directory

Instance Methods [hide private]
 
__init__(self, rmapD)
This ctor opens the reverse map directory.
source code
 
reverseMapT(self)
return the reverse map table found by the ctor.
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, rmapD)
(Constructor)

source code 

This ctor opens the reverse map directory. It looks for a file named "jsonReverseMapT.json". If that file is not found it looks for "jsonReverseMapT.old.json". The file is read in and converted to a python table. The contents contain a timestampfn key value pair.

The reverse map table is return in all cases except when the timestamp file exists and is newer than the reverseMap file.

Parameters:
  • rmapD - The reverse map directory
Overrides: object.__init__

reverseMapT(self)

source code 

return the reverse map table found by the ctor.

@return reverseMapT