Add several EMS file formats.
This commit is contained in:
@@ -11,6 +11,16 @@ import DecodePfh from "./decode-pfh";
|
||||
import { DecodedPfh } from "./decode-pfh.interface";
|
||||
import DecodePfl from "./decode-pfl";
|
||||
import { DecodedPfl } from "./decode-pfl.interface";
|
||||
import DecodePfm from "./decode-pfm";
|
||||
import { DecodedPfm } from "./decode-pfm.interface";
|
||||
import DecodePfo from "./decode-pfo";
|
||||
import { DecodedPfo } from "./decode-pfo.interface";
|
||||
import DecodePft from "./decode-pft";
|
||||
import { DecodedPft } from "./decode-pft.interface";
|
||||
import DecodeStl from "./decode-stl";
|
||||
import { DecodedStl } from "./decode-stl.interface";
|
||||
import DecodeTtl from "./decode-ttl";
|
||||
import { DecodedTtl } from "./decode-ttl.interface";
|
||||
import DecodeVeh from "./decode-veh";
|
||||
import { DecodedVeh } from "./decode-veh.interface";
|
||||
|
||||
@@ -31,7 +41,24 @@ async function ImportJob(filepath: string): Promise<void> {
|
||||
const lin: DecodedLin[] = await DecodeLin(extensionlessFilePath);
|
||||
const pfh: DecodedPfh = await DecodePfh(extensionlessFilePath);
|
||||
const pfl: DecodedPfl = await DecodePfl(extensionlessFilePath);
|
||||
log.debug("EMS Object", { ad1, ad2, veh, lin, pfh, pfl });
|
||||
const pft: DecodedPft = await DecodePft(extensionlessFilePath);
|
||||
const pfm: DecodedPfm = await DecodePfm(extensionlessFilePath);
|
||||
const pfo: DecodedPfo = await DecodePfo(extensionlessFilePath); // TODO: This will be the `cieca_pfo` object
|
||||
const stl: DecodedStl[] = await DecodeStl(extensionlessFilePath); // TODO: This will be the `cieca_stl` object
|
||||
const ttl: DecodedTtl = await DecodeTtl(extensionlessFilePath); //
|
||||
log.debug("EMS Object", {
|
||||
ad1,
|
||||
ad2,
|
||||
veh,
|
||||
lin,
|
||||
pfh,
|
||||
pfl,
|
||||
pft,
|
||||
pfm,
|
||||
pfo,
|
||||
stl,
|
||||
ttl,
|
||||
});
|
||||
} catch (error) {
|
||||
log.error("Error encountered while decoding job. ", errorTypeCheck(error));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user