C# 클래스 NCldr.ProtobufFileDataSource

ProtobufFileDataSource loads/saves the raw NCLDR data from an NCldr Protocol Buffers binary data file
This class requires the protobuf-net library from https://code.google.com/p/protobuf-net/. Set the ProtobufFileDataSource.NCldrDataPath property before calling Load
상속: INCldrFileDataSource
파일 보기 프로젝트 열기: GuySmithFerrier/NCLDR

공개 메소드들

메소드 설명
Exists ( ) : bool

Exists returns true if the NCldr data file exists

Load ( ) : INCldrData

Loads loads the raw data from the NCldr data file and returns an NCldrData object

Save ( INCldrData ncldrData ) : void

Save saves the NCldrData object to the NCldr data file

비공개 메소드들

메소드 설명
AddProtobufType ( Type allTypes, Type type ) : void

Adds a default protobuf data contract to the protobuf runtime model

ProtobufFileDataSource ( ) : System

Initializes static members of the ProtobufFileDataSource class

메소드 상세

Exists() 공개 메소드

Exists returns true if the NCldr data file exists
public Exists ( ) : bool
리턴 bool

Load() 공개 메소드

Loads loads the raw data from the NCldr data file and returns an NCldrData object
public Load ( ) : INCldrData
리턴 INCldrData

Save() 공개 메소드

Save saves the NCldrData object to the NCldr data file
public Save ( INCldrData ncldrData ) : void
ncldrData INCldrData The INCldrData object to save
리턴 void