Skip to main content

pio_dist_parse_file

Function pio_dist_parse_file 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn pio_dist_parse_file( path: *const c_char, from: *const c_char, errbuf: *mut c_char, errlen: usize, ) -> *mut PioDistNetwork
Expand description

Parse a distribution case file into a PioDistNetwork handle. The format comes from from if non-NULL (dss, pmd, or bmopf), else from the file itself: .dss is OpenDSS, and .json holding the ENGINEERING data_model key is PMD JSON, otherwise BMOPF JSON. Returns NULL on error and writes the message into errbuf. Free the handle with pio_dist_network_free.