Search Results for

    Show / Hide Table of Contents

    Class XbimP21Scanner

    This class is meant to replace original parser which was generated using GPPG. Actual implementation of the original parser was actually only scanner with little added value but it had significant overhead on processing spead. This implementation uses the same methods but binds them to the scanner directly. This cuts off part of the structure security but it also cuts off processing time by about 20%.

    Inheritance
    System.Object
    XbimP21Scanner
    Implements
    System.IDisposable
    Inherited Members
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: Xbim.IO.Step21
    Assembly: Xbim.Common.dll
    Syntax
    public class XbimP21Scanner : IDisposable

    Constructors

    | Improve this Doc View Source

    XbimP21Scanner(Stream, Int64, IEnumerable<String>)

    Declaration
    public XbimP21Scanner(Stream strm, long streamSize, IEnumerable<string> ignoreTypes = null)
    Parameters
    Type Name Description
    System.IO.Stream strm
    System.Int64 streamSize
    System.Collections.Generic.IEnumerable<System.String> ignoreTypes
    | Improve this Doc View Source

    XbimP21Scanner(String, IEnumerable<String>)

    Declaration
    public XbimP21Scanner(string data, IEnumerable<string> ignoreTypes = null)
    Parameters
    Type Name Description
    System.String data
    System.Collections.Generic.IEnumerable<System.String> ignoreTypes

    Fields

    | Improve this Doc View Source

    Cancel

    Declaration
    public bool Cancel
    Field Value
    Type Description
    System.Boolean
    | Improve this Doc View Source

    CurrentInstance

    Declaration
    protected Part21Entity CurrentInstance
    Field Value
    Type Description
    Part21Entity
    | Improve this Doc View Source

    EntityCreate

    Declaration
    public CreateEntityDelegate EntityCreate
    Field Value
    Type Description
    CreateEntityDelegate
    | Improve this Doc View Source

    ListNestLevel

    Declaration
    protected int ListNestLevel
    Field Value
    Type Description
    System.Int32
    | Improve this Doc View Source

    MaxErrorCount

    Declaration
    public static int MaxErrorCount
    Field Value
    Type Description
    System.Int32
    | Improve this Doc View Source

    PropertyValue

    Declaration
    protected PropertyValue PropertyValue
    Field Value
    Type Description
    PropertyValue

    Properties

    | Improve this Doc View Source

    AllowMissingReferences

    Missing references will not be reported if this is true

    Declaration
    public bool AllowMissingReferences { get; set; }
    Property Value
    Type Description
    System.Boolean
    | Improve this Doc View Source

    CurrentPosition

    Declaration
    public LexLocation CurrentPosition { get; }
    Property Value
    Type Description
    LexLocation
    | Improve this Doc View Source

    Entities

    Declaration
    public Dictionary<int, IPersist> Entities { get; }
    Property Value
    Type Description
    System.Collections.Generic.Dictionary<System.Int32, IPersist>
    | Improve this Doc View Source

    ErrorCount

    Declaration
    public int ErrorCount { get; protected set; }
    Property Value
    Type Description
    System.Int32
    | Improve this Doc View Source

    Logger

    Declaration
    public ILogger Logger { get; }
    Property Value
    Type Description
    Microsoft.Extensions.Logging.ILogger
    | Improve this Doc View Source

    NestedIndex

    Declaration
    public int[] NestedIndex { get; }
    Property Value
    Type Description
    System.Int32[]
    | Improve this Doc View Source

    SkipTypes

    Declaration
    public HashSet<string> SkipTypes { get; }
    Property Value
    Type Description
    System.Collections.Generic.HashSet<System.String>

    Methods

    | Improve this Doc View Source

    BeginData()

    Declaration
    protected void BeginData()
    | Improve this Doc View Source

    BeginHeader()

    Declaration
    protected void BeginHeader()
    | Improve this Doc View Source

    BeginList()

    Declaration
    protected void BeginList()
    | Improve this Doc View Source

    BeginNestedType(String)

    Declaration
    protected void BeginNestedType(string value)
    Parameters
    Type Name Description
    System.String value
    | Improve this Doc View Source

    Dispose()

    Declaration
    public void Dispose()
    | Improve this Doc View Source

    EndEntity()

    Declaration
    protected void EndEntity()
    | Improve this Doc View Source

    EndList()

    Declaration
    protected void EndList()
    | Improve this Doc View Source

    EndNestedType()

    Declaration
    protected void EndNestedType()
    | Improve this Doc View Source

    EndParse()

    Declaration
    protected void EndParse()
    | Improve this Doc View Source

    EndSec()

    Declaration
    protected void EndSec()
    | Improve this Doc View Source

    NewEntity(String)

    From the resiliance point of view this is a check point. It needs to make sure that previous entity was finished correctly. If it wasn't it should log the error, clear the state and start from local point.

    Declaration
    protected void NewEntity(string entityLabel)
    Parameters
    Type Name Description
    System.String entityLabel

    Entity Label to create for the new entity

    | Improve this Doc View Source

    Parse(Boolean)

    Declaration
    public bool Parse(bool onlyHeader = false)
    Parameters
    Type Name Description
    System.Boolean onlyHeader
    Returns
    Type Description
    System.Boolean
    | Improve this Doc View Source

    SetBooleanValue(String)

    Declaration
    protected void SetBooleanValue(string value)
    Parameters
    Type Name Description
    System.String value
    | Improve this Doc View Source

    SetEnumValue(String)

    Declaration
    protected void SetEnumValue(string value)
    Parameters
    Type Name Description
    System.String value
    | Improve this Doc View Source

    SetFloatValue(String)

    Declaration
    protected void SetFloatValue(string value)
    Parameters
    Type Name Description
    System.String value
    | Improve this Doc View Source

    SetHexValue(String)

    Declaration
    protected void SetHexValue(string value)
    Parameters
    Type Name Description
    System.String value
    | Improve this Doc View Source

    SetIntegerValue(String)

    Declaration
    protected void SetIntegerValue(string value)
    Parameters
    Type Name Description
    System.String value
    | Improve this Doc View Source

    SetNonDefinedValue()

    Declaration
    protected void SetNonDefinedValue()
    | Improve this Doc View Source

    SetObjectValue(Int32)

    Declaration
    protected void SetObjectValue(int value)
    Parameters
    Type Name Description
    System.Int32 value
    | Improve this Doc View Source

    SetObjectValue(String)

    Declaration
    protected void SetObjectValue(string value)
    Parameters
    Type Name Description
    System.String value
    | Improve this Doc View Source

    SetOverrideValue()

    Declaration
    protected void SetOverrideValue()
    | Improve this Doc View Source

    SetStringValue(String)

    Declaration
    protected void SetStringValue(string value)
    Parameters
    Type Name Description
    System.String value
    | Improve this Doc View Source

    SetType(String)

    Declaration
    protected bool SetType(string entityTypeName)
    Parameters
    Type Name Description
    System.String entityTypeName
    Returns
    Type Description
    System.Boolean

    Events

    | Improve this Doc View Source

    ProgressStatus

    Declaration
    public event ReportProgressDelegate ProgressStatus
    Event Type
    Type Description
    ReportProgressDelegate

    Implements

    System.IDisposable
    • Improve this Doc
    • View Source
    In This Article
    Back to top Copyright © 2022 xbim