C# Class Smrf.NodeXL.GraphMLFileProcessor.GraphMLFileProcessor

Asynchronously processes GraphML files.
Processing continues in an endless loop. It completes only when you cancel it or an exception is thrown.

Call ProcessGraphMLFilesAsync to process GraphML files. Call CancelAsync to stop the processing. Handle the and events to monitor the processing and cancellation.

Inheritance: Object
Show file Open project: 2014-sed-team3/term-project Class Usage Examples

Public Methods

Method Description
CancelAsync ( ) : void
GraphMLFileProcessor ( ) : System

Initializes a new instance of the GraphMLFileProcessor class.

ProcessGraphMLFilesAsync ( String graphMLFolderPath ) : void

Private Methods

Method Description
AssertValid ( ) : void
BackgroundWorker_DoWork ( object sender, DoWorkEventArgs e ) : void
BackgroundWorker_ProgressChanged ( object sender, ProgressChangedEventArgs e ) : void
BackgroundWorker_RunWorkerCompleted ( object sender, RunWorkerCompletedEventArgs e ) : void
CreateBackgroundWorker ( ) : BackgroundWorker
GetCorrespondingWorkbookFilePath ( String graphMLFilePath ) : String
GraphMLFileIsNew ( String graphMLFilePath, HashSet workbookFilePaths ) : System.Boolean
ProcessGraphMLFile ( String graphMLFilePath, BackgroundWorker backgroundWorker ) : void
ProcessGraphMLFilesInternal ( ProcessGraphMLFilesAsyncArgs processGraphMLFilesAsyncArgs, BackgroundWorker backgroundWorker, DoWorkEventArgs doWorkEventArgs ) : void
ProcessGraphMLFilesRecursive ( String graphMLFolderPath, BackgroundWorker backgroundWorker ) : void
ReportException ( BackgroundWorker backgroundWorker, String description, Exception exception ) : void
ReportProgress ( BackgroundWorker backgroundWorker, String message ) : void
TryAutomateNodeXLWorkbook ( String graphMLFilePath, BackgroundWorker backgroundWorker ) : System.Boolean
TryGetFilePaths ( String graphMLFolderPath, BackgroundWorker backgroundWorker, String &graphMLFilePaths, HashSet &workbookFilePaths ) : System.Boolean
TryGetGraphMLDocument ( String graphMLFilePath, BackgroundWorker backgroundWorker, XmlDocument &graphMLDocument ) : System.Boolean
TryGetNodeXLWorkbookSettingsFilePath ( String graphMLFilePath, BackgroundWorker backgroundWorker, String &nodeXLWorkbookSettingsFilePath ) : System.Boolean
TrySaveGraphMLToNodeXLWorkbook ( String graphMLFilePath, BackgroundWorker backgroundWorker, XmlDocument graphMLDocument, String nodeXLWorkbookSettingsFilePath ) : System.Boolean

Method Details

CancelAsync() public method

public CancelAsync ( ) : void
return void

GraphMLFileProcessor() public method

Initializes a new instance of the GraphMLFileProcessor class.
public GraphMLFileProcessor ( ) : System
return System

ProcessGraphMLFilesAsync() public method

public ProcessGraphMLFilesAsync ( String graphMLFolderPath ) : void
graphMLFolderPath String
return void