C# Класс SILUBS.SharedScrUtils.VersificationTable

Manipulate information for standard chatper/verse schemes
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
ChangeVersification ( IVerseReference vref ) : void

Change the passed VerseRef to be this versification.

Get ( ScrVers vers ) : VersificationTable

Get the versification table for this versification

GetFileNameForVersification ( ScrVers vers ) : string

Gets the name of this requested versification file.

Initialize ( string vrsFolder ) : void

This method should be called once before an application accesses anything that requires versification info. TODO: Paratext needs to call this with ScrTextCollection.SettingsDirectory.

LastBook ( ) : int
LastChapter ( int bookNum ) : int

Last chapter number in this book.

LastVerse ( int bookNum, int chapterNum ) : int

Last verse number in this book/chapter.

Приватные методы

Метод Описание
FileName ( ScrVers vers ) : string
ParseChapterVerseLine ( string fileName, VersificationTable versification, string line ) : void
ParseMappingLine ( string fileName, VersificationTable versification, string line ) : void
ReadVersificationFile ( string fileName, VersificationTable versification ) : void

Read versification file and "add" its entries. At the moment we only do this once. Eventually we will call this twice. Once for the standard versification, once for custom entries in versification.vrs file for this project.

VersificationTable ( ScrVers vers ) : System

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

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

Change the passed VerseRef to be this versification.
public ChangeVersification ( IVerseReference vref ) : void
vref IVerseReference
Результат void

Get() публичный статический Метод

Get the versification table for this versification
public static Get ( ScrVers vers ) : VersificationTable
vers ScrVers
Результат VersificationTable

GetFileNameForVersification() публичный статический Метод

Gets the name of this requested versification file.
public static GetFileNameForVersification ( ScrVers vers ) : string
vers ScrVers Versification scheme
Результат string

Initialize() публичный статический Метод

This method should be called once before an application accesses anything that requires versification info. TODO: Paratext needs to call this with ScrTextCollection.SettingsDirectory.
public static Initialize ( string vrsFolder ) : void
vrsFolder string Path to the folder containing the .vrs files
Результат void

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

public LastBook ( ) : int
Результат int

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

Last chapter number in this book.
public LastChapter ( int bookNum ) : int
bookNum int
Результат int

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

Last verse number in this book/chapter.
public LastVerse ( int bookNum, int chapterNum ) : int
bookNum int
chapterNum int
Результат int