C# Class AlbedoDatabaseGenerator.Database

Inheritance: IDisposable
Datei anzeigen Open project: Patapom/GodComplex Class Usage Examples

Public Methods

Method Description
Database ( ) : System
Dispose ( ) : void
Export ( FileInfo _FileName ) : void

Exports the database to a JSON file readable by the javascript web page that will help browsing the textures

GetRelativePath ( string filespec ) : string
GetRelativePath ( string folder, string filespec ) : string

From http://stackoverflow.com/questions/703281/getting-path-relative-to-the-current-working-directory

Load ( FileInfo _FileName ) : void
Save ( FileInfo _FileName ) : void

Private Methods

Method Description
AppendElement ( XmlNode _ParentNode, string _ElementName ) : XmlElement
FindEntry ( FileInfo _ManifestFileName ) : Entry

Attempts to retrieve an existing entry from the provided manifest file name

SetAttribute ( XmlElement _Element, string _Attribute, string _Value ) : Database
SetAttribute ( string _Attribute, string _Value ) : Database

Method Details

Database() public method

public Database ( ) : System
return System

Dispose() public method

public Dispose ( ) : void
return void

Export() public method

Exports the database to a JSON file readable by the javascript web page that will help browsing the textures
public Export ( FileInfo _FileName ) : void
_FileName System.IO.FileInfo
return void

GetRelativePath() public method

public GetRelativePath ( string filespec ) : string
filespec string
return string

GetRelativePath() public static method

From http://stackoverflow.com/questions/703281/getting-path-relative-to-the-current-working-directory
public static GetRelativePath ( string folder, string filespec ) : string
folder string
filespec string
return string

Load() public method

public Load ( FileInfo _FileName ) : void
_FileName System.IO.FileInfo
return void

Save() public method

public Save ( FileInfo _FileName ) : void
_FileName System.IO.FileInfo
return void