#include <Ross.h>
TRoss::TRoss | ( | BYTE | MaxNumDom | ) |
TRoss::~TRoss | ( | ) |
References TCortegeContainer::ClearCorteges(), TItemContainer::ClearFields(), ClearUnits(), and TItemContainer::m_Domens.
bool TRoss::FullLoad | ( | const char * | _RossPath | ) |
References BuildCorteges(), BuildUnits(), CortegeFile, LoadOnlyConstants(), TItemContainer::m_LastError, MakePath(), TItemContainer::RossPath, and UnitsFile.
Referenced by CDictionary::Load().
bool TRoss::LoadOnlyConstants | ( | const char * | _RossPath | ) |
References TItemContainer::BuildDomens(), TItemContainer::BuildDomItems(), TItemContainer::BuildFields(), ConfigFile, CortegeFile, TItemContainer::DomensFile, TItemContainer::DomItemsTextFile, TItemContainer::FieldsFile, Format(), TItemContainer::ItemsFile, TItemContainer::m_LastError, TCortegeContainer::m_MaxNumDom, MakePath(), ReadConfig(), TItemContainer::RossPath, UnitCommentsFile, and UnitsFile.
Referenced by FullLoad().
bool TRoss::Save | ( | ) |
References CortegeFile, m_bShouldSaveComments, m_UnitComments, m_Units, UnitCommentsFile, UnitsFile, TCortegeContainer::WriteCorteges(), TItemContainer::WriteDomens(), TItemContainer::WriteDomItems(), and TItemContainer::WriteFields().
void TRoss::BuildUnits | ( | ) |
References ClearUnits(), IsBinFile(), m_Units, and UnitsFile.
Referenced by FullLoad().
WORD TRoss::GetUnitsSize | ( | ) | const [inline] |
References m_Units.
Referenced by CGraphanDicts::BuildOborottos().
bool TRoss::ClearUnits | ( | ) |
References m_Units.
Referenced by BuildUnits(), and ~TRoss().
void TRoss::ClearUnit | ( | WORD | UnitNo | ) |
References DelCorteges(), InitialEndPos, InitialStartPos, and m_Units.
Referenced by CDictionary::ProcessOneArticle().
void TRoss::DelUnit | ( | vector< CStructEntry >::iterator | It | ) |
WORD TRoss::LocateUnit | ( | const char * | EntryStr, | |
int | MeanNum | |||
) | const |
References ErrUnitNo, and m_Units.
Referenced by CDictionary::ProcessOneArticle().
WORD TRoss::InsertUnit | ( | CStructEntry & | T | ) |
References InsertUnitComment(), CStructEntry::m_EntryId, m_UnitComments, and m_Units.
Referenced by InsertUnit(), and CDictionary::ProcessOneArticle().
References InsertUnit(), CStructEntry::m_AuthorStr, CStructEntry::m_EntryStr, and CStructEntry::m_MeanNum.
bool TRoss::ReadUnitComments | ( | ) |
References TItemContainer::ErrorMessage(), EstablishOneToOneCorrespondenceBetweenEntriesAndComments(), IsBinFile(), m_bShouldSaveComments, m_UnitComments, m_Units, MakePath(), TItemContainer::RossPath, and UnitCommentsFile.
References TItemContainer::ErrorMessage(), TUnitComment::m_EntryId, and m_UnitComments.
Referenced by EstablishOneToOneCorrespondenceBetweenEntriesAndComments(), and InsertUnit().
TUnitComment * TRoss::GetCommentsByUnitId | ( | WORD | m_EntryId | ) |
References m_UnitComments.
Referenced by CDictionary::GetUnitEditor(), GetUnitModifTimeStr(), GetUnitTextHeader(), SetUnitCommentStr(), CDictionary::SetUnitCurrentTime(), SetUnitEditor(), and SetUnitModifTimeStr().
const TUnitComment * TRoss::GetCommentsByUnitId | ( | WORD | EntryId | ) | const |
References m_UnitComments.
bool TRoss::BuildCorteges | ( | ) |
References TCortegeContainer::ClearCorteges(), CortegeFile, IsBinFile(), and TCortegeContainer::ReadCorteges().
Referenced by FullLoad().
bool TRoss::UpdateSignatsOfTheFieldInCorteges | ( | BYTE | FieldNo, | |
vector< CSignat > & | Signats | |||
) | [virtual] |
Implements TItemContainer.
References TCortegeContainer::_GetCortegesSize(), TItemContainer::Fields, TCortegeContainer::GetCortege(), TBasicCortege< MaxNumDom >::GetSignatNo(), TBasicCortege< MaxNumDom >::m_FieldNo, and TBasicCortege< MaxNumDom >::SetSignatNo().
void TRoss::DelCorteges | ( | size_t | start, | |
size_t | last | |||
) |
References TCortegeContainer::EraseCorteges(), and m_Units.
Referenced by ClearUnit(), DelDomItem(), DelUnit(), and CTempArticle::WriteToDictionary().
bool TRoss::ReadFromStrWithOneSignatura | ( | const char * | s, | |
TCortege10 & | C, | |||
BYTE | SignatNo | |||
) |
References CSignat::Doms, CSignat::DomsWithDelims, TItemContainer::Fields, TItemContainer::GetDomenNoByDomStr(), TBasicCortege< MaxNumDom >::GetItem(), TItemContainer::GetItemNoByItemStr(), InsertDomItem(), IsEmptyLine(), IsRussian(), TItemContainer::LexPlusDomNo, TItemContainer::m_Domens, TBasicCortege< MaxNumDom >::m_FieldNo, TCortegeContainer::m_MaxNumDom, rtrim(), TBasicCortege< MaxNumDom >::SetItem(), StringTokenizer::val(), and TItemContainer::WildCardDomItemNo.
Referenced by ReadFromStr().
bool TRoss::ReadFromStr | ( | const char * | s, | |
TCortege10 & | C | |||
) |
References TItemContainer::Fields, TBasicCortege< MaxNumDom >::m_FieldNo, ReadFromStrWithOneSignatura(), and TBasicCortege< MaxNumDom >::SetSignatNo().
Referenced by CTempArticle::AddCortegeToVector().
void TRoss::WriteToStr | ( | const int * | Items, | |
const char * | Frmt, | |||
char * | OutBuffer | |||
) | const |
References TItemContainer::GetDomItemStr(), and TItemContainer::m_DomItems.
Referenced by CortegeToStr().
void TRoss::CortegeToStr | ( | const TCortege10 & | C, | |
char * | OutBuffer | |||
) | const |
References TItemContainer::Fields, TBasicCortege< MaxNumDom >::GetSignatNo(), TBasicCortege< MaxNumDom >::m_DomItemNos, TBasicCortege< MaxNumDom >::m_FieldNo, CField::m_Signats, and WriteToStr().
Referenced by CTempArticle::ArticleToText().
bool TRoss::InsertDomItem | ( | const char * | ItemStr, | |
BYTE | DomNo, | |||
int & | ItemNo | |||
) |
References TCortegeContainer::_GetCortegesSize(), ErrUChar, Format(), TCortegeContainer::GetCortege(), TDomItem::GetDomNo(), TItemContainer::GetDomNoForLePlus(), TBasicCortege< MaxNumDom >::GetItem(), TDomItem::GetItemStrLen(), TItemContainer::IsStandardRusLexeme(), IsTitle(), TItemContainer::LexDomNo, TItemContainer::LexPlusDomNo, TItemContainer::m_Domens, TItemContainer::m_DomItems, TItemContainer::m_LastError, TCortegeContainer::m_MaxNumDom, TDomItem::SetDomNo(), TBasicCortege< MaxNumDom >::SetItem(), TDomItem::SetItemStrLen(), TDomItem::SetItemStrNo(), and TItemContainer::TitleDomNo.
Referenced by CDictionary::AddField(), and ReadFromStrWithOneSignatura().
void TRoss::DelDomItem | ( | int | ItemNo | ) |
References TCortegeContainer::_GetCortegesSize(), DelCorteges(), dsSystem, TCortegeContainer::GetCortege(), TBasicCortege< MaxNumDom >::GetItem(), InitialEndPos, InitialStartPos, TItemContainer::m_Domens, TItemContainer::m_DomItems, TBasicCortege< MaxNumDom >::m_LeafId, TBasicCortege< MaxNumDom >::m_LevelId, TCortegeContainer::m_MaxNumDom, m_Units, and TBasicCortege< MaxNumDom >::SetItem().
const char * TRoss::GetTitleFieldName | ( | ) | const |
References TItemContainer::m_bRussianFields.
Referenced by GetUnitTextHeader(), and CDictionary::ProcessOneArticle().
const char * TRoss::GetSenseFieldName | ( | ) | const |
References TItemContainer::m_bRussianFields.
Referenced by GetUnitTextHeader(), and CDictionary::ProcessOneArticle().
const char * TRoss::GetCommFieldName | ( | ) | const |
References TItemContainer::m_bRussianFields.
Referenced by GetUnitTextHeader(), and CDictionary::ProcessOneArticle().
const char * TRoss::GetAuthorFieldName | ( | ) | const |
References TItemContainer::m_bRussianFields.
Referenced by GetUnitTextHeader(), and CDictionary::ProcessOneArticle().
const char * TRoss::GetTimeCreatFieldName | ( | ) | const |
References TItemContainer::m_bRussianFields.
Referenced by GetUnitTextHeader(), and CDictionary::ProcessOneArticle().
const char * TRoss::GetRedactFieldName | ( | ) | const |
References TItemContainer::m_bRussianFields.
Referenced by GetUnitTextHeader(), and CDictionary::ProcessOneArticle().
void TRoss::SetUnitCommentStr | ( | WORD | UnitNo, | |
const char * | Str | |||
) |
References TUnitComment::Comments, GetCommentsByUnitId(), m_Units, and UnitCommentSize.
Referenced by CDictionary::ProcessOneArticle().
void TRoss::SetUnitAuthor | ( | WORD | UnitNo, | |
const char * | Author | |||
) |
References AuthorNameSize, and m_Units.
Referenced by CDictionary::ProcessOneArticle().
void TRoss::SetUnitModifTimeStr | ( | WORD | UnitNo, | |
const char * | TimeStr | |||
) |
References TItemContainer::ErrorMessage(), GetCommentsByUnitId(), m_Units, TUnitComment::modif_tm, and Str2Tm().
Referenced by CDictionary::ProcessOneArticle().
void TRoss::SetUnitEditor | ( | WORD | UnitNo, | |
const char * | Editor | |||
) |
References TUnitComment::Editor, TItemContainer::ErrorMessage(), GetCommentsByUnitId(), and m_Units.
Referenced by CDictionary::ProcessOneArticle().
string TRoss::GetUnitModifTimeStr | ( | WORD | UnitNo | ) | const |
References TItemContainer::ErrorMessage(), GetCommentsByUnitId(), m_Units, and TUnitComment::modif_tm.
Referenced by GetUnitTextHeader().
string TRoss::GetUnitTextHeader | ( | WORD | UnitNo | ) | const |
References TUnitComment::Comments, TUnitComment::Editor, Format(), GetAuthorFieldName(), GetCommentsByUnitId(), GetCommFieldName(), GetRedactFieldName(), GetSenseFieldName(), GetTimeCreatFieldName(), GetTitleFieldName(), GetUnitModifTimeStr(), CStructEntry::m_AuthorStr, CStructEntry::m_EntryStr, CStructEntry::m_MeanNum, and m_Units.
bool TRoss::ReadConfig | ( | ) |
References ConfigFile, m_DictName, m_MaxMeanNum, TCortegeContainer::m_MaxNumDom, and Trim().
Referenced by LoadOnlyConstants().
char TRoss::UnitsFile[_MAX_PATH] [private] |
Referenced by BuildUnits(), FullLoad(), LoadOnlyConstants(), and Save().
char TRoss::CortegeFile[_MAX_PATH] [private] |
Referenced by BuildCorteges(), FullLoad(), LoadOnlyConstants(), and Save().
char TRoss::UnitCommentsFile[_MAX_PATH] [private] |
Referenced by LoadOnlyConstants(), ReadUnitComments(), and Save().
char TRoss::ConfigFile[_MAX_PATH] [private] |
Referenced by LoadOnlyConstants(), and ReadConfig().
Referenced by CDictionary::ProcessOneArticle(), ReadConfig(), and TRoss().
string TRoss::m_DictName |
Referenced by ReadConfig().
vector<CStructEntry> TRoss::m_Units |
Referenced by BuildUnits(), ClearUnit(), ClearUnits(), DelCorteges(), DelDomItem(), DelUnit(), EstablishOneToOneCorrespondenceBetweenEntriesAndComments(), CTempArticle::GetCortege(), CTempArticle::GetCortegesSize(), CDictionary::GetEntryStr(), GetSelectedUnitNo(), GetSelectedUnitsSize(), CDictionary::GetUnitEditor(), CDictionary::GetUnitEndPos(), CDictionary::GetUnitMeanNum(), GetUnitModifTimeStr(), CDictionary::GetUnits(), GetUnitsSize(), CDictionary::GetUnitStartPos(), GetUnitTextHeader(), InsertUnit(), CDictionary::IsEmptyArticle(), CTempArticle::IsModified(), LocateUnit(), CDictionary::ProcessOneArticle(), ReadUnitComments(), Save(), SetUnitAuthor(), SetUnitCommentStr(), SetUnitEditor(), SetUnitModifTimeStr(), CDictionary::SetUnitStr(), UnitsLowerBound(), and CTempArticle::WriteToDictionary().
vector<TUnitComment> TRoss::m_UnitComments |
Referenced by ReadUnitComments(), Save(), and TRoss().