Class CubeTreeFile
Represents a file containing cube tree data.
public class CubeTreeFile : IMakeXmlSource, ISourceFile
- Inheritance
-
CubeTreeFile
- Implements
- Inherited Members
- Extension Methods
Constructors
CubeTreeFile()
Ctor.
public CubeTreeFile()
CubeTreeFile(string, string)
Ctor.
public CubeTreeFile(string relFile, string baseDirectory)
Parameters
CubeTreeFile(XElement, string)
Ctor.
public CubeTreeFile(XElement src, string baseDirectory)
Parameters
Properties
BaseDirectory
Gets or sets the base directory for file operations.
public string BaseDirectory { get; set; }
Property Value
SourceFile
file path.
public string SourceFile { get; set; }
Property Value
XName
Name for XML IO.
public static string XName { get; }
Property Value
Methods
LoadByFile()
Loads a cube tree from the specified file.
public CubeTree LoadByFile()
Returns
- CubeTree
The loaded cube tree, or null if the file path is empty or null.
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