C# 클래스 Data.JSONSerializer

파일 보기 프로젝트 열기: ColdMatter/EDMSuite 1 사용 예제들

공개 메소드들

메소드 설명
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