%SYS.PTools.FileCreation
abstract class %SYS.PTools.FileCreation
This class is a place to create File Creation & Formatting methods used by the PTools Application Package, which was designed to gather performance statistics for any type of Routine, Code Block or SQL Statement. The following methods are written to be used within Class Definitions, and the equivalent methods within the %SYS.PTools.FileCreation.INC file are written to be used within MAC Routines and are written as pure COS methods. The file formatted that these methods support are driven by the 'format' parameter and support the following formats: format - The output format of the Export/Reporting file This parameter has the following structure of constituent elements: format=Method Inventory
- CSVtabHead()
- CSVtabRow()
- DLMtabHead()
- DLMtabRow()
- HTMLtabHead()
- HTMLtabRow()
- TXTtabHead()
- TXTtabRow()
- XMLcolAuto()
- XMLcolWidth()
- XMLrowHeader()
- XMLsheet()
- XMLsort()
- XMLtabRow()
- XMLtable()
- condsMatch()
- createAndOpenFile()
- createOrderByList()
- fileBody()
- fileFooter()
- fileHeader()
- getOutputFile()
- openFileForRead()
Methods
classmethod CSVtabHead(metadata, delim)
CSV Table Header
classmethod CSVtabRow(metadata, delim)
CSV Table Data Row
classmethod DLMtabHead(metadata, delim)
DLM Table Header
classmethod DLMtabRow(metadata, delim)
DLM Table Data Row
classmethod HTMLtabHead(aTag, title, metadata)
HTML Table Header
classmethod HTMLtabRow(metadata)
HTML Table Row
classmethod TXTtabHead(metadata, delim)
Text Table Header
classmethod TXTtabRow(metadata, delim)
Text Table Data Row
classmethod XMLcolAuto()
XML Column AutoFit Width Element
classmethod XMLcolWidth(width)
XML Column Width Element
classmethod XMLrowHeader(metadata)
XML Header Row Element
classmethod XMLsheet(name)
XML Worksheet Element
classmethod XMLsort(sortColList, sortOrderList)
XML Sorting Element
classmethod XMLtabRow(metadata)
XML Table Data Row Element
classmethod XMLtable(colCnt=0, rowCnt=0)
XML Table Element
classmethod condsMatch(conds, d, condValExp="") as %Status
Check Conditional Matches
classmethod createAndOpenFile(file, timeout=$$$PTSOpenTimeout) as %Status
Create & Open File
classmethod createOrderByList(orderBy="", d) as %String
Create a valid SQL
classmethod fileBody(file, format, metadata)
File Body
File Footer
classmethod fileHeader(file, format, title="", class, method, version, metadata, bcFlag="") as %Status
File Header
classmethod getOutputFile(file="", className="", methodName="", format="", hDate="", tSC=$$$OK) as %String
Get the 'outputFile'
classmethod openFileForRead(file, timeout=$$$PTSOpenTimeout) as %Status
Open File For Read