fixparser
Version:
FIX.Latest / 5.0 SP2 Parser / AI Agent Trading
29 lines (28 loc) • 1.07 kB
TypeScript
import { type ISpecSections } from '../../spec/SpecSections.ts';
import type { Field } from '../Field.ts';
import { SectionType } from './SectionType.ts';
/**
* Class for managing FIX field sections.
* Provides functionality to process and organize FIX fields into their respective sections.
*/
export declare class Sections {
/** Array of all available section specifications */
sections: ISpecSections[];
/** Cache map for looking up sections by ID */
cacheMap: Map<string, ISpecSections>;
/** Instance of SectionType for managing section data */
sectionType: SectionType;
/**
* Creates a new Sections instance and initializes the cache map
* with all available section specifications.
*/
constructor();
/**
* Processes a field's section based on its section ID.
* Sets the appropriate section type for the field if found.
*
* @param {Field} item - The field to process
* @param {string} sectionId - The section ID to look up
*/
processSection(item: Field, sectionId: string): void;
}