C# Класс Data.JSONSerializer

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Описание методов

AddData() публичный Метод

Added dataLog queue to be serialized
public AddData ( DataLog dataLog ) : void
dataLog DataLog Datalog to be serialized
Результат void

CompleteAdding() публичный Метод

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
Результат void

EndLogFile() публичный Метод

Add closing braces to JSON file
public EndLogFile ( ) : void
Результат void

JSONSerializer() публичный Метод

Constructor
public JSONSerializer ( ) : System
Результат System

ProcessDataQueue() публичный Метод

Worker method for processing the data queue
public ProcessDataQueue ( ) : void
Результат void

SerializeData() публичный Метод

Serialize dataLog to previously opened JSON file
public SerializeData ( DataLog dataLog ) : void
dataLog DataLog Datalog to be serialized
Результат void

StartLogFile() публичный Метод

Method to prepare the JSON file for data to be added
public StartLogFile ( string fn ) : void
fn string Filename for log file
Результат void

StartProcessingData() публичный Метод

Method to begin the worker thread for serializing the queue of data logs
public StartProcessingData ( ) : void
Результат void