#include <Ross.h>
CDictionary::CDictionary | ( | ) |
vector< CStructEntry > & CDictionary::GetUnits | ( | ) |
References TRoss::m_Units.
Referenced by CTempArticle::ReadFromDictionary(), and SetUnitCurrentTime().
BYTE CDictionary::GetCortegeFieldNo | ( | size_t | i | ) | const |
References TCortegeContainer::GetCortege(), and TBasicCortege< MaxNumDom >::m_FieldNo.
Referenced by CGraphanDicts::BuildOborottos().
BYTE CDictionary::GetCortegeLeafId | ( | size_t | i | ) | const |
References TCortegeContainer::GetCortege(), and TBasicCortege< MaxNumDom >::m_LeafId.
BYTE CDictionary::GetCortegeBracketLeafId | ( | size_t | i | ) | const |
References TCortegeContainer::GetCortege(), and TBasicCortege< MaxNumDom >::m_BracketLeafId.
const char * CDictionary::GetDomItemStrInner | ( | int | ItemNo | ) | const |
References GetDomItemStr(), and TItemContainer::m_DomItems.
Referenced by CTempArticle::CheckCortegeVector(), and GetDomItemStr().
bool CDictionary::IsEmptyArticle | ( | WORD | UnitNo | ) | const |
References TRoss::m_Units.
int CDictionary::GetUnitStartPos | ( | WORD | UnitNo | ) | const |
References TRoss::m_Units.
Referenced by CGraphanDicts::BuildOborottos().
int CDictionary::GetUnitEndPos | ( | WORD | UnitNo | ) | const |
References TRoss::m_Units.
Referenced by CGraphanDicts::BuildOborottos().
BYTE CDictionary::GetFieldNoByFieldStr | ( | const char * | Str | ) | const |
References TItemContainer::GetFieldNoByFieldStrInner().
Referenced by CGraphanDicts::BuildOborottos().
BYTE CDictionary::GetDomItemDomNo | ( | int | ItemNo | ) | const |
References TItemContainer::m_DomItems.
int CDictionary::GetCortegeItem | ( | long | CortegeNo, | |
BYTE | PositionInCortege | |||
) | const |
References TCortegeContainer::GetCortege(), and TBasicCortege< MaxNumDom >::GetItem().
Referenced by CGraphanDicts::BuildOborottos().
const char * CDictionary::GetDomItemStr | ( | int | ItemNo | ) | const |
References GetDomItemStrInner().
Referenced by CGraphanDicts::BuildOborottos(), and GetDomItemStrInner().
string CDictionary::GetEntryStr | ( | WORD | EntryNo | ) | const |
References TRoss::m_Units.
References TRoss::m_Units.
bool CDictionary::IncludeArticle | ( | WORD | UnitNo, | |
string | Article | |||
) | const |
References CTempArticle::BuildCortegeList(), CTempArticle::IsPartOf(), CTempArticle::m_pRoss, CTempArticle::MarkUp(), CTempArticle::ReadFromDictionary(), and CTempArticle::SetArticleStr().
bool CDictionary::Load | ( | const char * | Path | ) |
References TItemContainer::ErrorMessage(), TRoss::FullLoad(), and TItemContainer::m_LastError.
Referenced by CGraphmatFile::LoadDicts().
bool CDictionary::ProcessOneArticle | ( | vector< CSourceLine > & | L, | |
int | start, | |||
int | last, | |||
bool | bSimulating, | |||
ImportConflictEnum | ConflictSolver, | |||
string & | Messages | |||
) |
References AddMessage(), TRoss::ClearUnit(), ErrUnitNo, Format(), TRoss::GetAuthorFieldName(), TRoss::GetCommFieldName(), TRoss::GetRedactFieldName(), TRoss::GetSenseFieldName(), TRoss::GetTimeCreatFieldName(), TRoss::GetTitleFieldName(), GetValue(), iceAppend, iceOverwrite, iceSkip, TRoss::InsertUnit(), TRoss::LocateUnit(), CTempArticle::m_ErrorLine, TItemContainer::m_LastError, CTempArticle::m_LastError, TRoss::m_MaxMeanNum, CTempArticle::m_pRoss, TRoss::m_Units, CTempArticle::SetArticleStr(), TRoss::SetUnitAuthor(), TRoss::SetUnitCommentStr(), TRoss::SetUnitEditor(), and TRoss::SetUnitModifTimeStr().
Referenced by ImportFromText().
bool CDictionary::ImportFromText | ( | string | FileName, | |
bool | bSimulating, | |||
ImportConflictEnum | ConflictSolver, | |||
int | StartEntry, | |||
string & | Messages | |||
) |
References CutComments(), DeleteEmptyLines(), FindRubicon(), Format(), TItemContainer::GetDomItemsSize(), NumArt(), ProcessOneArticle(), and Trim().
void CDictionary::SetUnitCurrentTime | ( | WORD | UnitNo | ) |
References TRoss::GetCommentsByUnitId(), GetUnits(), TUnitComment::modif_tm, and RmlGetCurrentTime().
bool CDictionary::AddField | ( | string | FieldStr | ) |
References TItemContainer::ErrorMessage(), TItemContainer::FieldDomNo, CField::FieldId, TItemContainer::Fields, CField::FieldStr, FieldStrLen, TRoss::InsertDomItem(), and TItemContainer::m_LastError.
string CDictionary::GetUnitEditor | ( | WORD | UnitNo | ) | const |
References TUnitComment::Editor, TItemContainer::ErrorMessage(), TRoss::GetCommentsByUnitId(), and TRoss::m_Units.
void CDictionary::SetUnitStr | ( | WORD | UnitNo, | |
const char * | UnitStr | |||
) |
References TRoss::m_Units.