C# Class Data.JSONSerializer

Afficher le fichier Open project: ColdMatter/EDMSuite Class Usage Examples

Méthodes publiques

Méthode 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 méthode

Added dataLog queue to be serialized
public AddData ( DataLog dataLog ) : void
dataLog DataLog Datalog to be serialized
Résultat void

CompleteAdding() public méthode

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
Résultat void

EndLogFile() public méthode

Add closing braces to JSON file
public EndLogFile ( ) : void
Résultat void

JSONSerializer() public méthode

Constructor
public JSONSerializer ( ) : System
Résultat System

ProcessDataQueue() public méthode

Worker method for processing the data queue
public ProcessDataQueue ( ) : void
Résultat void

SerializeData() public méthode

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

StartLogFile() public méthode

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

StartProcessingData() public méthode

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