Table of Contents

Class CubeTreeFile

Namespace
Hi.Cbtr
Assembly
HiCbtr.dll

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

relFile string
baseDirectory string

CubeTreeFile(XElement, string)

Ctor.

public CubeTreeFile(XElement src, string baseDirectory)

Parameters

src XElement

XML

baseDirectory string

Base directory for relative paths.

Properties

BaseDirectory

Gets or sets the base directory for file operations.

public string BaseDirectory { get; set; }

Property Value

string

SourceFile

file path.

public string SourceFile { get; set; }

Property Value

string

XName

Name for XML IO.

public static string XName { get; }

Property Value

string

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 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