doc_mReportVarTable¶
Documentation¶
- Brief Explanation of ReportVarTable
- This class reads data from XML files. It contains several groups of variables.
- List of Member Variables and Methods
How to Create a class instance
>>> r=ReportVarTable(".\\test_output\\REPORTVAR.txt")
- Functions
__init__(self,*args,**kwargs)
>>> r.__dict__ {'odReportVars': OrderedDict([('ok', ['aa', 'bb', 'CC'])]), '_pThisModuleDir': WindowsPath('C:/Users/User/Documents/ACT/ActModel/ActModel_Curr'), '_pFilePath': WindowsPath('test_output/REPORTVAR.txt'), '_xmlRoot': <Element 'ROOT' at 0x000000000A0E6D18>, 'CLASS_TYPE': 'ReportVarTable', 'NAME': 'report1', 'BODY': OrderedDict([('ok', ['aa', 'bb', 'CC'])])}
- _fXMLReadBody(self)
… and other functions
- Variables
- self._pThisModuleDir
- self._pFilePath
- self._xmlRoot
- self.BODY
- self.odReportVars #ALIAS FOR self.BODY
- Related Document
Sample Code for .\test_output\REPORTVAR.txt
<?xml version="1.0"?> <ROOT> <CLASS_TYPE type="str" is_array="false">ReportVarTable</CLASS_TYPE> <NAME type="str" is_array="false">report1</NAME> <BODY> <REPORT_VARS name="ok"> aa,bb,CC </REPORT_VARS> </BODY> </ROOT>