doc_mInput ============= Documentation ************* 1. Brief Explanation of Input 1. Created by Process instance 2. Other comments: This class will manage all the inputs. It contains all the Tables and Scripts. During its initilization, these Tables and Scripts are loaded. 2. List of Member Variables and Methods 0. How to Create a class instance >>> i=Input() 1. Functions 1. __init__(self,dsMultiInputDirs={"GenTable":".\\test_input\\"........ >>> import pprint >>> pprint.pprint(i.__dict__) {'_dpAllInputsDirs': {'AccumTable': WindowsPath('test_output/accum.txt'), 'GenTable': WindowsPath('test_input'), 'MPFTable': WindowsPath('MPF'), 'OutputFormatTable': WindowsPath('test_output/out1.txt'), 'ReportVarTable': WindowsPath('test_output/REPORTVAR.txt'), 'Script': WindowsPath('script')}, '_dpKeyGenTablesDirs': {'GlobalTable': WindowsPath('Prod/GLOBAL.txt'), 'ProdTable': WindowsPath('Prod/PROD.txt'), 'ScenTable': WindowsPath('Prod/scen.txt')}, '_pThisModuleDir': None, 'dAllInputs': {'AccumTable': OrderedDict([('Accum1', )]), 'GenTable': OrderedDict([('oneguy', ), ('oneguffy', )]), 'KeyGenTable': {'GlobalTable': , 'ProdTable': , 'ScenTable': }, 'MPFTable': OrderedDict([('MPFguy', ), ('MPFgu3y', )]), 'OutputFormatTable': OrderedDict([('out1', )]), 'ReportVarTable': OrderedDict([('report1', )]), 'Script': OrderedDict([('oneguy333', ), ('oneguy', ), ('OUTPUT_CRITERIA', )])}, 'dKeyGenTables': {'GlobalTable': , 'ProdTable': , 'ScenTable': }, 'diCurrInput': {'GenTable': -1, 'MPFTable': -1, 'Script': -1}} 2. fd_sCurrInput(self,sInputType) >>> i.lscMultiInputTypes ['MPFTable', 'GenTable', 'Script'] >>> [i.fd_sCurrInput(s) for s in i.lscMultiInputTypes] ['EOF', 'EOF', 'EOF'] 3. fd_sNextInput(self,sInputType) >>> [i.fd_sNextInput(s) for s in i.lscMultiInputTypes] [, , ] 4. fd_sCurrMPFRow(self) >>> i=Input() #reset everything >>> i.fd_sCurrMPFRow() 'EOF' 5. fd_sNextMPFRow(self) >>> i.fd_sNextMPFRow() {'SONE': 'PRODuu1', 'PRODUCT': 'PROD1', 'STHIRD': 3} >>> i.fd_sNextMPFRow() {'SONE': 'PROD2', 'PRODUCT': 'PROD2', 'STHIRD': 1} >>> i.fd_sNextMPFRow() {'SONE': 'PROD1', 'PRODUCT': 'PROD1', 'STHIRD': 1} >>> i.fd_sNextMPFRow() {'SONE': 11, 'SSECOND': 'H1', 'STHIRD': 31} >>> i.fd_sNextMPFRow() {'SONE': 31, 'SSECOND': 'F1', 'STHIRD': 11} >>> i.fd_sNextMPFRow() {'SONE': 41, 'SSECOND': 'D1', 'STHIRD': 11} >>> i.fd_sNextMPFRow() 'EOF' 2. Variables 3. Related Document