C# Class Data.JSONSerializer

ファイルを表示 Open project: ColdMatter/EDMSuite Class Usage Examples

Public Methods

Method Description
AddData ( DataLog dataLog ) : void

Added dataLog queue to be serialized

CompleteAdding ( ) : void

Method to notify the worker thread that no more data logs will be added to the queue. Complete serializing process when queue is empty.

EndLogFile ( ) : void

Add closing braces to JSON file

JSONSerializer ( ) : System

Constructor

ProcessDataQueue ( ) : void

Worker method for processing the data queue

SerializeData ( DataLog dataLog ) : void

Serialize dataLog to previously opened JSON file

StartLogFile ( string fn ) : void

Method to prepare the JSON file for data to be added

StartProcessingData ( ) : void

Method to begin the worker thread for serializing the queue of data logs

Method Details

AddData() public method

Added dataLog queue to be serialized
public AddData ( DataLog dataLog ) : void
dataLog DataLog Datalog to be serialized
return void

CompleteAdding() public method

Method to notify the worker thread that no more data logs will be added to the queue. Complete serializing process when queue is empty.
public CompleteAdding ( ) : void
return void

EndLogFile() public method

Add closing braces to JSON file
public EndLogFile ( ) : void
return void

JSONSerializer() public method

Constructor
public JSONSerializer ( ) : System
return System

ProcessDataQueue() public method

Worker method for processing the data queue
public ProcessDataQueue ( ) : void
return void

SerializeData() public method

Serialize dataLog to previously opened JSON file
public SerializeData ( DataLog dataLog ) : void
dataLog DataLog Datalog to be serialized
return void

StartLogFile() public method

Method to prepare the JSON file for data to be added
public StartLogFile ( string fn ) : void
fn string Filename for log file
return void

StartProcessingData() public method

Method to begin the worker thread for serializing the queue of data logs
public StartProcessingData ( ) : void
return void