Table of Contents

Class CodeXyzabcMachineToolUri

Namespace
Hi.NcMech.Xyzabc
Assembly
HiMech.dll

Represents a URI-based container for CodeXyzabcMachineTool.

public class CodeXyzabcMachineToolUri : IGetCodeXyzabcMachineTool, IMakeXmlSource, IUriGetter
Inheritance
CodeXyzabcMachineToolUri
Implements
Inherited Members
Extension Methods

Constructors

CodeXyzabcMachineToolUri(string, CodeXyzabcMachineTool)

Initializes a new instance of the CodeXyzabcMachineToolUri class.

public CodeXyzabcMachineToolUri(string uri, CodeXyzabcMachineTool data)

Parameters

uri string

URI location.

data CodeXyzabcMachineTool

Machine tool data.

CodeXyzabcMachineToolUri(XElement, string, object[])

Ctor.

public CodeXyzabcMachineToolUri(XElement src, string baseDirectory, object[] res)

Parameters

src XElement

XML element source.

baseDirectory string

Base directory.

res object[]

Additional resources.

Properties

IsEncrypted

Gets or sets whether the content is encrypted.

public bool IsEncrypted { get; set; }

Property Value

bool

MachineTool

Gets or sets the machine tool.

public CodeXyzabcMachineTool MachineTool { get; }

Property Value

CodeXyzabcMachineTool

Uri

Gets the URI string.

public string Uri { get; }

Property Value

string

XName

Name for XML IO.

public static string XName { get; }

Property Value

string

Methods

GetMachiningChain()

public IMachiningChain GetMachiningChain()

Returns

IMachiningChain

GetXyzabcMachineTool()

public CodeXyzabcMachineTool GetXyzabcMachineTool()

Returns

CodeXyzabcMachineTool

Machine tool.

LoadFromUri(string, object[])

Loads the machine tool data from the URI.

public void LoadFromUri(string baseDirectory, object[] res)

Parameters

baseDirectory string

Base directory.

res object[]

Additional resources.

MakeXmlSource(string, string)

Creates an XML representation of the object. This method may also generate additional resources such as related files.

public XElement MakeXmlSource(string baseDirectory, string relFile)

Parameters

baseDirectory string

The base directory for resolving relative paths

relFile string

The relative file path for the XML source

Returns

XElement

An XML element representing the object's state

Remarks

For the demand of easy moving source folder (especially project folder) without configuration file path corruption, the relative file path is applied. The baseDirectory is typically the folder at the nearest configuration file folder. Since the folder can be moving with the configuration file.

SaveToUri(string)

Saves the machine tool data to the URI.

public void SaveToUri(string baseDirectory)

Parameters

baseDirectory string

Base directory.