old data
This commit is contained in:
@@ -28,9 +28,7 @@
|
||||
//
|
||||
//-----------------------------------------------------------------------
|
||||
//-----------------------------------------------------------------------
|
||||
using CommunityToolkit.HighPerformance.Buffers;
|
||||
|
||||
using StgSharp.Model.Step;
|
||||
using StgSharp.Modeling.Step;
|
||||
using StgSharp.Script;
|
||||
using StgSharp.Script.Express;
|
||||
|
||||
@@ -39,7 +37,7 @@ using System.Collections.Frozen;
|
||||
using System.Collections.Generic;
|
||||
using System.Runtime.CompilerServices;
|
||||
|
||||
namespace StgSharp.Model.Step
|
||||
namespace StgSharp.Modeling.Step
|
||||
{
|
||||
public class ExpressStepUtil : ExpSchema
|
||||
{
|
||||
@@ -60,7 +58,6 @@ namespace StgSharp.Model.Step
|
||||
public const string LineText = "LINE";
|
||||
public const string OrientedEdgeText = "ORIENTED_EDGE";
|
||||
public const string PlaneText = "PLANE";
|
||||
public const string RepresentationItemText = "REPRESENTATION_ITEM";
|
||||
public const string VectorText = "VECTOR";
|
||||
public const string VertexPointText = "VERTEX_POINT";
|
||||
|
||||
@@ -82,22 +79,15 @@ namespace StgSharp.Model.Step
|
||||
LineText,
|
||||
OrientedEdgeText,
|
||||
PlaneText,
|
||||
RepresentationItemText,
|
||||
VectorText,
|
||||
VertexPointText,
|
||||
];
|
||||
|
||||
private FrozenDictionary<string, ExpEntitySource> entitiesDefine;
|
||||
private StringPool _entityNamePool = new StringPool();
|
||||
private FrozenDictionary<string, ExpTypeSource> entitiesDefine;
|
||||
|
||||
public ExpressStepUtil()
|
||||
{
|
||||
IEnumerable<KeyValuePair<string, ExpEntitySource>> defineSource = [];
|
||||
entitiesDefine = new Dictionary<string, ExpEntitySource>( defineSource )
|
||||
.ToFrozenDictionary();
|
||||
foreach( string item in names ) {
|
||||
_entityNamePool.Add( item );
|
||||
}
|
||||
Dictionary<string, ExpTypeSource> tIndex = new Dictionary<string, ExpTypeSource>();
|
||||
}
|
||||
|
||||
internal StepModel Current { get; set; }
|
||||
@@ -115,13 +105,13 @@ namespace StgSharp.Model.Step
|
||||
|
||||
public override bool TryGetEntity( string name, out ExpEntitySource e )
|
||||
{
|
||||
return entitiesDefine.TryGetValue( name, out e! );
|
||||
e = null!;
|
||||
return false;
|
||||
}
|
||||
|
||||
public override bool TryGetFunction( string name, out ExpFunctionSource f )
|
||||
{
|
||||
f = null!;
|
||||
return false;
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
public override bool TryGetProcedure( string name, out ExpProcedureSource p )
|
||||
|
||||
Reference in New Issue
Block a user