UNPKG

isoxml

Version:

JavaScript library to parse and generate ISOXML (ISO11783-10) files

30 lines (29 loc) 1.05 kB
import { TAGS } from './constants'; import { ISOXMLManager } from '../ISOXMLManager'; import { XMLElement } from '../types'; import { TimelogPosition } from './TimelogPosition'; import { TimelogDataLogValue } from './TimelogDataLogValue'; import { Entity, EntityConstructor } from '../types'; export declare enum TimelogTimeTypeEnum { Effective = "4" } export type TimelogTimeAttributes = { Start: string; Type: TimelogTimeTypeEnum; Position?: TimelogPosition[]; DataLogValue?: TimelogDataLogValue[]; ProprietaryAttributes?: { [name: string]: string; }; ProprietaryTags?: { [tag: string]: XMLElement[]; }; }; export declare class TimelogTime implements Entity { attributes: TimelogTimeAttributes; isoxmlManager: ISOXMLManager; tag: TAGS; constructor(attributes: TimelogTimeAttributes, isoxmlManager: ISOXMLManager); static fromXML(xml: XMLElement, isoxmlManager: ISOXMLManager, internalId?: string, targetClass?: EntityConstructor): Promise<Entity>; toXML(): XMLElement; }