#include <agramtab_.h>
CAgramtab::CAgramtab | ( | ) |
References m_bInited.
CAgramtab::~CAgramtab | ( | ) | [virtual] |
bool CAgramtab::Read | ( | const char * | FileName | ) | [private] |
References GetLine(), GetMaxGrmCount(), m_bInited, ProcessAgramtabLine(), and s2i().
Referenced by LoadFromRegistry().
bool CAgramtab::ReadAndCheck | ( | const char * | FileName | ) | [private] |
References GetLine(), GetMaxGrmCount(), i2s(), CAgramtabLine::m_Grammems, ProcessAgramtabLine(), and s2i().
Referenced by LoadFromRegistryAndCheck().
virtual CAgramtabLine*& CAgramtab::GetLine | ( | size_t | LineNo | ) | [pure virtual] |
Implemented in CEngGramTab, CGerGramTab, and CRusGramTab.
Referenced by AreEqualPartOfSpeech(), ConvertToPlural(), FindGrammems(), GetAllGrammems(), GetAllPossibleAncodes(), GetGramCodeByGrammemsAndPartofSpeechIfCan(), GetGrammems(), GetPartOfSpeech(), GetPartOfSpeechAndGrammems(), GetSourceLineNo(), Gleiche(), GleicheAncode1(), ProcessAgramtabLine(), Read(), and ReadAndCheck().
virtual const CAgramtabLine* CAgramtab::GetLine | ( | size_t | LineNo | ) | const [pure virtual] |
Implemented in CEngGramTab, CGerGramTab, and CRusGramTab.
virtual size_t CAgramtab::GetMaxGrmCount | ( | ) | const [pure virtual] |
Implemented in CEngGramTab, CGerGramTab, and CRusGramTab.
Referenced by GetAllPossibleAncodes(), GetGramCodeByGrammemsAndPartofSpeechIfCan(), Read(), and ReadAndCheck().
virtual BYTE CAgramtab::GetPartOfSpeechesCount | ( | ) | const [pure virtual] |
Implemented in CEngGramTab, CGerGramTab, and CRusGramTab.
Referenced by GetFirstPartOfSpeech(), GetTagFromStr(), and MorphoWizard::load_gramtab().
virtual const char* CAgramtab::GetPartOfSpeechStr | ( | BYTE | i | ) | const [pure virtual] |
Implemented in CEngGramTab, CGerGramTab, and CRusGramTab.
Referenced by MorphoWizard::get_pos_string(), GetGramInfoStr(), GetParadigmByGroups(), GetParadigmFromDictionary(), CAncodePattern::GetPartOfSpeechStr(), GetTabStringByGramCode(), GetTagFromStr(), and MorphoWizard::load_gramtab().
virtual size_t CAgramtab::GetGrammemsCount | ( | ) | const [pure virtual] |
Implemented in CEngGramTab, CGerGramTab, and CRusGramTab.
Referenced by grammems_to_str(), MorphoWizard::load_gramtab(), and ProcessPOSAndGrammems().
virtual const char* CAgramtab::GetGrammemStr | ( | size_t | i | ) | const [pure virtual] |
Implemented in CEngGramTab, CGerGramTab, and CRusGramTab.
Referenced by grammems_to_str(), MorphoWizard::load_gramtab(), and ProcessPOSAndGrammems().
virtual size_t CAgramtab::s2i | ( | const char * | s | ) | const [pure virtual] |
Implemented in CEngGramTab, CGerGramTab, and CRusGramTab.
Referenced by AreEqualPartOfSpeech(), ConvertToPlural(), FindGrammems(), GetAllGrammems(), GetGrammems(), GetPartOfSpeech(), GetPartOfSpeechAndGrammems(), GetSourceLineNo(), Gleiche(), GleicheAncode1(), Read(), and ReadAndCheck().
virtual string CAgramtab::i2s | ( | WORD | i | ) | const [pure virtual] |
Implemented in CEngGramTab, CGerGramTab, and CRusGramTab.
Referenced by GetAllPossibleAncodes(), GetGramCodeByGrammemsAndPartofSpeechIfCan(), and ReadAndCheck().
virtual const char* CAgramtab::GetRegistryString | ( | ) | const [pure virtual] |
Implemented in CEngGramTab, CGerGramTab, and CRusGramTab.
Referenced by LoadFromRegistry(), and LoadFromRegistryAndCheck().
virtual long CAgramtab::GetClauseTypeByName | ( | const char * | TypeName | ) | const [pure virtual] |
Implemented in CEngGramTab, CGerGramTab, and CRusGramTab.
virtual const char* CAgramtab::GetClauseNameByType | ( | long | type | ) | const [pure virtual] |
Implemented in CEngGramTab, CGerGramTab, and CRusGramTab.
Referenced by CSyntaxHolder::GetClauseTypeDescr().
virtual bool CAgramtab::GleicheSubjectPredicate | ( | const char * | gram_code1, | |
const char * | gram_code2 | |||
) | const [pure virtual] |
Implemented in CEngGramTab, CGerGramTab, and CRusGramTab.
virtual bool CAgramtab::GleicheGenderNumber | ( | const char * | gram_code1, | |
const char * | gram_code2 | |||
) | const [pure virtual] |
Implemented in CEngGramTab, CGerGramTab, and CRusGramTab.
virtual const size_t CAgramtab::GetClauseTypesCount | ( | ) | const [pure virtual] |
Implemented in CEngGramTab, CGerGramTab, and CRusGramTab.
bool CAgramtab::ProcessPOSAndGrammems | ( | const char * | tab_str, | |
BYTE & | PartOfSpeech, | |||
QWORD & | grammems | |||
) | const [virtual] |
Reimplemented in CRusGramTab.
References _QM, GetGrammemsCount(), GetGrammemStr(), GetTagFromStr(), UnknownPartOfSpeech, and StringTokenizer::val().
Referenced by GetParadigmByGroups(), ProcessAgramtabLine(), CRusGramTab::ProcessPOSAndGrammems(), and ProcessPOSAndGrammemsIfCan().
virtual bool CAgramtab::IsStrongClauseRoot | ( | const DWORD | Poses | ) | const [pure virtual] |
Implemented in CEngGramTab, CGerGramTab, and CRusGramTab.
virtual bool CAgramtab::is_month | ( | const char * | lemma | ) | const [pure virtual] |
Implemented in CEngGramTab, CGerGramTab, and CRusGramTab.
virtual bool CAgramtab::is_small_number | ( | const char * | lemma | ) | const [pure virtual] |
Implemented in CEngGramTab, CGerGramTab, and CRusGramTab.
virtual bool CAgramtab::IsMorphNoun | ( | size_t | Poses | ) | const [pure virtual] |
Implemented in CEngGramTab, CGerGramTab, and CRusGramTab.
Referenced by CHomonym::IsMorphNoun().
virtual bool CAgramtab::is_morph_adj | ( | size_t | poses | ) | const [pure virtual] |
Implemented in CEngGramTab, CGerGramTab, and CRusGramTab.
virtual bool CAgramtab::is_morph_participle | ( | size_t | poses | ) | const [pure virtual] |
Implemented in CEngGramTab, CGerGramTab, and CRusGramTab.
virtual bool CAgramtab::is_morph_pronoun | ( | size_t | poses | ) | const [pure virtual] |
Implemented in CEngGramTab, CGerGramTab, and CRusGramTab.
virtual bool CAgramtab::is_morph_pronoun_adjective | ( | size_t | poses | ) | const [pure virtual] |
Implemented in CEngGramTab, CGerGramTab, and CRusGramTab.
virtual bool CAgramtab::is_left_noun_modifier | ( | size_t | Poses, | |
QWORD | grammems | |||
) | const [pure virtual] |
Implemented in CEngGramTab, CGerGramTab, and CRusGramTab.
Referenced by CHomonym::IsLeftNounModifier().
virtual bool CAgramtab::is_numeral | ( | size_t | poses | ) | const [pure virtual] |
Implemented in CEngGramTab, CGerGramTab, and CRusGramTab.
virtual bool CAgramtab::is_verb_form | ( | size_t | poses | ) | const [pure virtual] |
Implemented in CEngGramTab, CGerGramTab, and CRusGramTab.
virtual bool CAgramtab::is_infinitive | ( | size_t | poses | ) | const [pure virtual] |
Implemented in CEngGramTab, CGerGramTab, and CRusGramTab.
virtual bool CAgramtab::is_morph_predk | ( | size_t | poses | ) | const [pure virtual] |
Implemented in CEngGramTab, CGerGramTab, and CRusGramTab.
virtual bool CAgramtab::is_morph_adv | ( | size_t | poses | ) | const [pure virtual] |
Implemented in CEngGramTab, CGerGramTab, and CRusGramTab.
virtual bool CAgramtab::is_morph_personal_pronoun | ( | size_t | poses, | |
QWORD | grammems | |||
) | const [pure virtual] |
Implemented in CEngGramTab, CGerGramTab, and CRusGramTab.
virtual bool CAgramtab::is_morph_article | ( | size_t | poses | ) | const [pure virtual] |
Implemented in CEngGramTab, CGerGramTab, and CRusGramTab.
virtual bool CAgramtab::IsSimpleParticle | ( | const char * | lemma, | |
size_t | poses | |||
) | const [pure virtual] |
Implemented in CEngGramTab, CGerGramTab, and CRusGramTab.
virtual bool CAgramtab::IsSynNoun | ( | size_t | Poses, | |
const char * | Lemma | |||
) | const [pure virtual] |
Implemented in CEngGramTab, CGerGramTab, and CRusGramTab.
Referenced by CHomonym::IsSynNoun().
virtual bool CAgramtab::IsStandardParamAbbr | ( | const char * | WordStrUpper | ) | const [pure virtual] |
Implemented in CEngGramTab, CGerGramTab, and CRusGramTab.
virtual bool CAgramtab::GleicheCase | ( | const char * | gram_code_noun, | |
const char * | gram_code_adj | |||
) | const [pure virtual] |
Implemented in CEngGramTab, CGerGramTab, and CRusGramTab.
virtual bool CAgramtab::GleicheCaseNumber | ( | const char * | gram_code1, | |
const char * | gram_code2 | |||
) | const [pure virtual] |
Implemented in CEngGramTab, CGerGramTab, and CRusGramTab.
virtual QWORD CAgramtab::GleicheGenderNumberCase | ( | const char * | common_gram_code_noun, | |
const char * | gram_code_noun, | |||
const char * | gram_code_adj | |||
) | const [pure virtual] |
Implemented in CEngGramTab, CGerGramTab, and CRusGramTab.
bool CAgramtab::LoadFromRegistry | ( | ) |
References GetRegistryString(), and Read().
Referenced by MorphoWizard::load_gramtab(), and CMorphologyHolder::LoadGraphanAndLemmatizer().
bool CAgramtab::LoadFromRegistryAndCheck | ( | ) |
int CAgramtab::AreEqualPartOfSpeech | ( | char * | grm1, | |
char * | grm2 | |||
) |
References GetLine(), CAgramtabLine::m_PartOfSpeech, and s2i().
bool CAgramtab::ProcessPOSAndGrammemsIfCan | ( | const char * | tab_str, | |
BYTE * | PartOfSpeech, | |||
QWORD * | grammems | |||
) | const |
References ProcessPOSAndGrammems().
Referenced by MorphoWizard::find_lemm_by_grammem(), and MorphoWizard::slf2ancode().
char * CAgramtab::grammems_to_str | ( | QWORD | grammems, | |
char * | out_buf | |||
) | const |
References _QM, GetGrammemsCount(), GetGrammemStr(), and GrammemsCount.
Referenced by GetTabStringByGramCode(), and GrammemsToStr().
bool CAgramtab::FindGrammems | ( | const char * | gram_codes, | |
QWORD | grammems | |||
) | const |
bool CAgramtab::GetGramCodeByGrammemsAndPartofSpeechIfCan | ( | BYTE | Pos, | |
QWORD | grammems, | |||
string & | gramcodes | |||
) | const |
References GetLine(), GetMaxGrmCount(), i2s(), and CAgramtabLine::m_PartOfSpeech.
Referenced by MorphoWizard::slf2ancode().
bool CAgramtab::GetPartOfSpeechAndGrammems | ( | const BYTE * | AnCodes, | |
DWORD & | Poses, | |||
QWORD & | Grammems | |||
) | const |
References GetLine(), CAgramtabLine::m_Grammems, CAgramtabLine::m_PartOfSpeech, and s2i().
Referenced by HasGrammem(), HasOneGrammem(), and HasOnlyOneCase().
string CAgramtab::GrammemsToStr | ( | QWORD | grammems | ) | const |
References grammems_to_str().
Referenced by MorphoWizard::get_common_grammems_string(), MorphoWizard::get_grammem_string(), GetGramInfoStr(), CAncodePattern::GetGrammemsByAncodes(), GetParadigmFromDictionary(), GetStringByParadigm(), and MorphoWizard::load_gramtab().
string CAgramtab::GetTabStringByGramCode | ( | const char * | gram_code | ) | const |
References GetGrammems(), GetPartOfSpeech(), GetPartOfSpeechStr(), Grammems, grammems_to_str(), and UnknownPartOfSpeech.
Referenced by CLemWord::GetDebugString().
BYTE CAgramtab::GetPartOfSpeech | ( | const char * | gram_code | ) | const |
References GetLine(), CAgramtabLine::m_PartOfSpeech, s2i(), and UnknownPartOfSpeech.
Referenced by MorphoWizard::get_pos_string(), GetGramInfoStr(), GetParadigmFromDictionary(), GetTabStringByGramCode(), CAncodePattern::InitAncodePattern(), CAncodePattern::ModifyGrammems(), and CPlmLine::SetGramCodes().
QWORD CAgramtab::GetAllGrammems | ( | const char * | gram_code | ) | const |
References GetLine(), CAgramtabLine::m_Grammems, and s2i().
Referenced by MorphoWizard::get_all_lemma_grammems(), GetGramInfoStr(), GetParadigmFromDictionary(), GetStringByParadigm(), and CPlmLine::SetGramCodes().
size_t CAgramtab::GetSourceLineNo | ( | const char * | gram_code | ) | const |
References GetLine(), CAgramtabLine::m_SourceLineNo, and s2i().
Referenced by MorphoWizard::AncodeLess::operator()().
QWORD CAgramtab::GetAllGrammemsThatContains | ( | const char * | gram_code | ) | const |
bool CAgramtab::GetGrammems | ( | const char * | gram_code, | |
QWORD & | grammems | |||
) | const |
References GetLine(), CAgramtabLine::m_Grammems, and s2i().
Referenced by CAncodePattern::DeleteAncodesByGrammemIfCan(), MorphoWizard::get_common_grammems_string(), MorphoWizard::get_grammem_string(), CAncodePattern::GetGrammemsByAncodes(), GetTabStringByGramCode(), CHomonym::HasSetOfGrammemsExact(), CAncodePattern::InitAncodePattern(), MorphoWizard::load_gramtab(), and CAncodePattern::ModifyGrammems().
References GetLine(), GetMaxGrmCount(), i2s(), CAgramtabLine::m_Grammems, and CAgramtabLine::m_PartOfSpeech.
Referenced by ConvertToPlural(), MorphoWizard::find_lemm_by_grammem(), and MorphoWizard::load_gramtab().
QWORD CAgramtab::Gleiche | ( | GrammemCompare | CompareFunc, | |
const char * | gram_codes1, | |||
const char * | gram_codes2 | |||
) | const |
References GetLine(), CAgramtabLine::m_Grammems, and s2i().
Referenced by CRusGramTab::GleicheCase(), CGerGramTab::GleicheCase(), CRusGramTab::GleicheCaseNumber(), CRusGramTab::GleicheGenderNumber(), CGerGramTab::GleicheGenderNumber(), CRusGramTab::GleicheGenderNumberCase(), CGerGramTab::GleicheGenderNumberCase(), CRusGramTab::GleicheSubjectPredicate(), and CGerGramTab::GleicheSubjectPredicate().
string CAgramtab::GleicheAncode1 | ( | GrammemCompare | CompareFunc, | |
const char * | gram_codes1, | |||
const char * | gram_codes2 | |||
) | const |
References GetLine(), and s2i().
Referenced by CommonCase(), CommonCaseNumberGender(), MixedDeclAssignFunction2(), MixedDeclAssignFunction3(), StrongDeclAssignFunction(), WeakDeclAssignFunction2(), and WeakDeclAssignFunction3().
bool CAgramtab::m_bInited |
Referenced by CAgramtab(), and Read().