ddc
Classes | Functions | Variables
wizard.cpp File Reference
#include "wizard.h"
#include "../CommonLib/util_classes.h"
#include "../AgramtabLib/EngGramTab.h"
#include "../AgramtabLib/RusGramTab.h"
#include "../AgramtabLib/GerGramTab.h"
#include "../PCRE/pcre_rml.h"
Include dependency graph for wizard.cpp:

Classes

struct  CSlfLineByAncode
 
struct  CSlfLineByAncodeLess
 

Functions

string GetCurrentDate ()
 
string GetFullPathByName (string FileName)
 
static void CreateLockFile (const string &LockFileName)
 
void ReadFlexiaModels (FILE *fp, vector< CFlexiaModel > &FlexiaModels)
 
void WriteFlexiaModels (FILE *out_fp, const vector< CFlexiaModel > &FlexiaModels)
 
void ReadAccentModels (FILE *fp, vector< CAccentModel > &AccentModels)
 
void WriteAccentModels (FILE *out_fp, const vector< CAccentModel > &AccentModels)
 
static void ReadLemmas (FILE *fp, MorphoWizard &W)
 
bool IsLessBySession (const lemma_iterator_t &it1, const lemma_iterator_t &it2)
 
bool simple_match (const string &pattern, const string &word)
 
BYTE TransferReverseVowelNoToCharNo (const string &form, BYTE AccentCharNo, MorphLanguageEnum Language)
 
WORD AddAccentModel (MorphoWizard &C, const CAccentModel &AccentModel)
 
WORD AddFlexiaModel (MorphoWizard &C, const CFlexiaModel &FlexiaModel)
 
string GetSuffix (const string &Lemma, int PrefferedLength)
 
bool IsLessByLemmaLength (const CPredictSuffix &_X1, const CPredictSuffix &_X2)
 
bool PrintAllForms (const char *MrdFile, string OutFile)
 

Variables

const char * AnyCommonAncode = " "
 
const char FlexModelCommDelim [] = "q//q"
 
const size_t MaxMrdLineLength = 10240
 
const char TypeGrmField [] = "$type_grm"
 
const char PrefixesField [] = "$prefixes"
 
const char SessionField [] = "$session"
 

Function Documentation

◆ GetCurrentDate()

string GetCurrentDate ( )

Referenced by CreateLockFile(), MorphoWizard::EndSession(), MorphoWizard::log(), and MorphoWizard::StartSession().

Here is the caller graph for this function:

◆ GetFullPathByName()

string GetFullPathByName ( string  FileName)

References GetPathByFile().

Referenced by MorphoWizard::load_wizard().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ CreateLockFile()

static void CreateLockFile ( const string &  LockFileName)
static

References GetCurrentDate(), and GetRegistryString().

Referenced by MorphoWizard::load_mrd().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ReadFlexiaModels()

void ReadFlexiaModels ( FILE *  fp,
vector< CFlexiaModel > &  FlexiaModels 
)

References MaxMrdLineLength, CFlexiaModel::ReadFromString(), and Trim().

Referenced by CLemmaInfo::GetCommonAncodeIfCan(), CMorphDict::Load(), and MorphoWizard::load_mrd().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ WriteFlexiaModels()

void WriteFlexiaModels ( FILE *  out_fp,
const vector< CFlexiaModel > &  FlexiaModels 
)

Referenced by CLemmaInfo::GetCommonAncodeIfCan(), CMorphDict::Save(), and MorphoWizard::save_mrd().

Here is the caller graph for this function:

◆ ReadAccentModels()

void ReadAccentModels ( FILE *  fp,
vector< CAccentModel > &  AccentModels 
)

References MaxMrdLineLength, and CAccentModel::ReadFromString().

Referenced by CLemmaInfo::GetCommonAncodeIfCan(), CMorphDict::Load(), and MorphoWizard::load_mrd().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ WriteAccentModels()

void WriteAccentModels ( FILE *  out_fp,
const vector< CAccentModel > &  AccentModels 
)

Referenced by CLemmaInfo::GetCommonAncodeIfCan(), CMorphDict::Save(), and MorphoWizard::save_mrd().

Here is the caller graph for this function:

◆ ReadLemmas()

static void ReadLemmas ( FILE *  fp,
MorphoWizard W 
)
static

◆ IsLessBySession()

bool IsLessBySession ( const lemma_iterator_t it1,
const lemma_iterator_t it2 
)

Referenced by MorphoWizard::find_lemm_by_user().

Here is the caller graph for this function:

◆ simple_match()

bool simple_match ( const string &  pattern,
const string &  word 
)

◆ TransferReverseVowelNoToCharNo()

BYTE TransferReverseVowelNoToCharNo ( const string &  form,
BYTE  AccentCharNo,
MorphLanguageEnum  Language 
)

References is_lower_vowel(), is_upper_vowel(), and UnknownAccent.

Referenced by MorphoWizard::_GetReverseVowelNo(), CFormInfo::GetAccentedVowel(), MorphoWizard::GetLemmaAccent(), and MorphoWizard::SetAccent().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ AddAccentModel()

WORD AddAccentModel ( MorphoWizard C,
const CAccentModel AccentModel 
)

References MorphoWizard::m_AccentModels, CAccentModel::m_Accents, and UnknownAccentModelNo.

Referenced by MorphoWizard::add_lemma(), and MorphoWizard::change_prd_info().

Here is the caller graph for this function:

◆ AddFlexiaModel()

WORD AddFlexiaModel ( MorphoWizard C,
const CFlexiaModel FlexiaModel 
)

References MorphoWizard::m_FlexiaModels.

Referenced by MorphoWizard::add_lemma().

Here is the caller graph for this function:

◆ GetSuffix()

string GetSuffix ( const string &  Lemma,
int  PrefferedLength 
)
inline

Referenced by MorphoWizard::CreatePredictIndex(), and MorphoWizard::predict_lemm().

Here is the caller graph for this function:

◆ IsLessByLemmaLength()

bool IsLessByLemmaLength ( const CPredictSuffix _X1,
const CPredictSuffix _X2 
)

References CPredictSuffix::m_SourceLemma.

Referenced by MorphoWizard::CreatePredictIndex().

Here is the caller graph for this function:

◆ PrintAllForms()

bool PrintAllForms ( const char *  MrdFile,
string  OutFile 
)

Variable Documentation

◆ AnyCommonAncode

const char* AnyCommonAncode = " "

◆ FlexModelCommDelim

const char FlexModelCommDelim[] = "q//q"

◆ MaxMrdLineLength

const size_t MaxMrdLineLength = 10240

◆ TypeGrmField

const char TypeGrmField[] = "$type_grm"

◆ PrefixesField

const char PrefixesField[] = "$prefixes"

◆ SessionField

const char SessionField[] = "$session"