EnfReader#
- class pyCGM2.Nexus.eclipse.EnfReader(path: str, enfFile: str)#
- A class for handling a generic .enf file. - m_path#
- The folder path. - Type:
- str 
 
 - m_file#
- The .enf filename. - Type:
- str 
 
 - m_config#
- The configuration parser object. - Type:
- configparser.ConfigParser 
 
 - __init__(path: str, enfFile: str)#
- Initializes the EnfReader object. 
 - Methods - __init__(path, enfFile)- Initializes the EnfReader object. - getFile()- Retrieves the filename of the .enf file. - getPath()- Retrieves the path of the folder containing the .enf file. - getSection(section)- Returns the content of a specified section from the .enf file. - getFile()#
- Retrieves the filename of the .enf file. - Returns:
- str – The .enf filename. 
 
 - getPath()#
- Retrieves the path of the folder containing the .enf file. - Returns:
- str – The folder path. 
 
 - getSection(section: str)#
- Returns the content of a specified section from the .enf file. - Parameters:
- section (str) – The name of the section. 
- Returns:
- dict – A dictionary containing key-value pairs of the section’s contents. 
 
 
