Class CodeXyzabcMachineToolUri
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
stringURI location.
data
CodeXyzabcMachineToolMachine tool data.
CodeXyzabcMachineToolUri(XElement, string, object[])
Ctor.
public CodeXyzabcMachineToolUri(XElement src, string baseDirectory, object[] res)
Parameters
src
XElementXML element source.
baseDirectory
stringBase directory.
res
object[]Additional resources.
Properties
IsEncrypted
Gets or sets whether the content is encrypted.
public bool IsEncrypted { get; set; }
Property Value
MachineTool
Gets or sets the machine tool.
public CodeXyzabcMachineTool MachineTool { get; }
Property Value
Uri
Gets the URI string.
public string Uri { get; }
Property Value
XName
Name for XML IO.
public static string XName { get; }
Property Value
Methods
GetMachiningChain()
public IMachiningChain GetMachiningChain()
Returns
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
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
stringThe base directory for resolving relative paths
relFile
stringThe 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
stringBase directory.