Class ToolHouseDependency
- Namespace
- Hi.NcParsers.Dependencys.SystemWired
- Assembly
- HiMech.dll
Exposes the project's MachiningToolHouse to NC pipeline components — the narrow counterpart of MachiningServiceDependency for syntaxes / semantics that only look up or register tools (e.g. the CLSF pipeline's TLDATA-driven tool creation).
public class ToolHouseDependency : INcDependency, IMakeXmlSource
- Inheritance
-
ToolHouseDependency
- Implements
- Inherited Members
- Extension Methods
Constructors
ToolHouseDependency()
Initializes a new instance with no ToolHouseProvider; the host wires one before queries.
public ToolHouseDependency()
ToolHouseDependency(Func<MachiningToolHouse>)
Initializes a new instance with the given ToolHouseProvider.
public ToolHouseDependency(Func<MachiningToolHouse> provider)
Parameters
providerFunc<MachiningToolHouse>Delegate that resolves the live tool house at lookup time.
Properties
ToolHouse
The live tool house, or null when ToolHouseProvider is unset or returns null.
public MachiningToolHouse ToolHouse { get; }
Property Value
ToolHouseProvider
Runtime provider for the tool house. Null provider or null return means the host is not wired; consumers must null-check.
public Func<MachiningToolHouse> ToolHouseProvider { get; set; }
Property Value
XName
XML element name used to register this dependency with XFactory.
public static string XName { get; }
Property Value
Methods
MakeXmlSource(string, string, bool)
Runtime-only dependency — the provider is wired per host and not meaningful to persist; serialization writes only the empty element so the dependency survives an XML round-trip.
public XElement MakeXmlSource(string baseDirectory, string relFile, bool exhibitionOnly)
Parameters
Returns
Reg(XFactory)
Registers this type's deserializer with the given XFactory
(or Default when factory is
null). Idempotent.
public static void Reg(XFactory factory = null)
Parameters
factoryXFactory