/** @packageDocumentation * @module OrbitGT */ declare type int32 = number; import { FileStorage } from "../../../system/storage/FileStorage"; import { PointAttribute } from "../../model/PointAttribute"; import { AttributeReader } from "./AttributeReader"; import { ContainerFile } from "./ContainerFile"; import { DirectoryReader } from "./DirectoryReader"; import { FileRecord } from "./FileRecord"; import { GeometryReader } from "./GeometryReader"; /** * Class FileReader reads OPC files. * * @version 1.0 January 2014 */ /** @internal */ export declare class FileReader { /** The name of this module */ private static readonly MODULE; /** The file storage */ private _fileStorage; /** The name of the file */ private _fileName; /** The container */ private _container; /** The file record */ private _fileRecord; /** The directory readers (1 per level) */ private _directoryReaders; /** The geometry readers (1 per level) */ private _geometryReaders; /** The attribute readers */ private _attributeReaders; /** * Create a new reader. * @param fileName the name of the file. * @param container the container file. * @param fileRecord the file record. */ private constructor(); /** * Open a file. * @param fileName the name of the file. * @param lazyLoading avoid early loading to keep a low memory profile? * @return the reader. */ static openFile(fileStorage: FileStorage, fileName: string, lazyLoading: boolean): Promise; /** * Open the reader. * @param lazyLoading avoid early loading to keep a low memory profile? * @return the reader. */ private open; /** * Close the file. */ close(): void; /** * Get the storage of the file. * @return the storage of the file. */ getFileStorage(): FileStorage; /** * Get the name of the file. * @return the name of the file. */ getFileName(): string; /** * Get the container file. * @return the container file. */ getContainer(): ContainerFile; /** * Get the file record. * @return the file record. */ getFileRecord(): FileRecord; /** * Get the number of resolution levels. * @return the number of resolution levels. */ getLevelCount(): int32; /** * Get a directory reader. * @param level the index of the level. * @return the directory reader. */ getDirectoryReader(level: int32): DirectoryReader; /** * Get a geometry reader. * @param level the index of the level. * @return the geometry reader. */ getGeometryReader(level: int32): GeometryReader; /** * Get the static attribute readers. * @return the static attribute readers. */ getStaticAttributeReaders(): Array; /** * Get the attribute readers. * @return the attribute readers. */ getAttributeReaders(): Array; /** * Get the attributes. * @return the attributes. */ getAttributes(): Array; /** * Find an attribute reader. * @param attributeName the name of the attribute. * @return the attribute reader (null if not found). */ findAttributeReader(attributeName: string): AttributeReader; } export {}; //# sourceMappingURL=FileReader.d.ts.map