Classes | Public Member Functions | Private Types | Private Member Functions | Private Attributes

CConcXml Class Reference

#include <Bibliography.h>

List of all members.

Classes

Public Member Functions

Private Types

Private Member Functions

Private Attributes


Member Typedef Documentation

typedef map<string, CFreeBiblIndex*> CConcXml::FreeBiblStringMap [private]

Constructor & Destructor Documentation

CConcXml::CConcXml (  ) 

References m_BiblBodyFile.

CConcXml::~CConcXml (  ) 

References FreeBiblIndices(), and m_BiblBodyFile.

Here is the call graph for this function:


Member Function Documentation

void CConcXml::DeleteFiles (  )  [private]

References GetBiblDateIndexFileName(), GetBiblFileName(), GetBiblIndexFileName(), m_FreeBiblIndices, and m_Path.

Referenced by ExitWithoutSave().

Here is the call graph for this function:

Here is the caller graph for this function:

string CConcXml::GetBiblIndexFileName (  )  const [private]

References m_Path, and MakeFName().

Referenced by DeleteFiles(), FinalSaveBibliography(), LoadBibl(), and UniteBibliography().

Here is the call graph for this function:

Here is the caller graph for this function:

string CConcXml::GetBiblFileName (  )  const [private]

References m_Path, and MakeFName().

Referenced by CheckBibl(), DeleteFiles(), LoadBibl(), Start(), and UniteBibliography().

Here is the call graph for this function:

Here is the caller graph for this function:

string CConcXml::GetBiblDateIndexFileName (  )  const [private]

References m_Path, and MakeFName().

Referenced by DeleteFiles(), FinalSaveBibliography(), LoadBibl(), and UniteBibliography().

Here is the call graph for this function:

Here is the caller graph for this function:

int CConcXml::GetTextAreaByName ( const string &  Name  )  const [private]

References m_TextAreas, and UnknownTextAreaNo.

Referenced by ProcessTextAreaNoInQueryStr().

Here is the caller graph for this function:

void CConcXml::FreeBiblIndices (  ) 

clears m_FreeBiblIndices

References m_FreeBiblIndices.

Referenced by RegisterFreeBiblAttributes(), and ~CConcXml().

Here is the caller graph for this function:

bool CConcXml::Start ( string  ProjectFileName  ) 

initialize building bibliography for corpus ProjectFileName

References GetBiblFileName(), m_BiblBodyFile, m_BiblBodyFileSize, m_Dates, m_EndOffsetsInBiblFile, m_FreeBiblIndices, and SetPath().

Referenced by CConcIndexator::StartIndexing().

Here is the call graph for this function:

Here is the caller graph for this function:

bool CConcXml::AddIndexItem ( const CBibliography Bibliography  ) 
bool CConcXml::FinalSaveBibliography (  ) 

save all indices and stop indexing bibliography

References FileExists(), GetBiblDateIndexFileName(), GetBiblIndexFileName(), m_BiblBodyFile, m_BiblBodyFileSize, m_Dates, m_EndOffsetsInBiblFile, m_FreeBiblIndices, m_Path, and WriteVector().

Referenced by CConcIndexator::NormalEndIndexing().

Here is the call graph for this function:

Here is the caller graph for this function:

void CConcXml::ExitWithoutSave (  ) 

stop indexing bibliography an removes index files

References DeleteFiles(), m_BiblBodyFile, and m_BiblBodyFileSize.

Referenced by CConcIndexator::TerminateIndexing().

Here is the call graph for this function:

Here is the caller graph for this function:

bool CConcXml::RegisterFreeBiblAttributes ( string  fields,
string &  ErrorStr 
)
bool CConcXml::RegisterTextAreas ( string  fields,
string &  ErrorStr 
)

initializes free text areas descriptions

References CheckXPath(), CConcXml::CTextArea::m_TextAreaName, m_TextAreas, CConcXml::CTextArea::m_Xpath, morphEnglish, RmlMakeLower(), TextAreaOptionFieldName, and Trim().

Referenced by CConcIndexator::LoadOptionsFromString(), and UniteBibliography().

Here is the call graph for this function:

Here is the caller graph for this function:

string CConcXml::GetFreeBibiAttributesDescr (  )  const

return free bibliographical attribute description

References Format(), FreeBiblAttribOptionFieldName, m_DateXPath, m_FreeBiblIndices, m_OrigXPath, m_ScanXPath, and m_StartPageXPath.

Referenced by CConcIndexator::LoadOptionsFromString(), CConcIndexator::SaveOptionsToString(), and UniteBibliography().

Here is the call graph for this function:

Here is the caller graph for this function:

string CConcXml::GetTextAreasDescr (  )  const

return full text area description

References Format(), m_TextAreas, and TextAreaOptionFieldName.

Referenced by CConcIndexator::LoadOptionsFromString(), and UniteBibliography().

Here is the call graph for this function:

Here is the caller graph for this function:

void CConcXml::SetPath ( string  ProjectFileName  ) 

References m_Path.

Referenced by CConcIndexator::CreateAsUnion(), LoadBibl(), and Start().

Here is the caller graph for this function:

bool CConcXml::LoadBibl ( string  Path,
size_t  FileBreaksSize 
)

References ErrorMessage(), Format(), GetBiblDateIndexFileName(), GetBiblFileName(), GetBiblIndexFileName(), m_BiblBodyFile, m_Dates, m_EndOffsetsInBiblFile, m_FreeBiblIndices, m_Path, ReadVector(), and SetPath().

Referenced by CConcIndexator::LoadProject().

Here is the call graph for this function:

Here is the caller graph for this function:

CBibliography CConcXml::GetFullBibliographyOfHit ( size_t  FileNo  )  const

returns the bibliographical record

References FSeek(), m_BiblBodyFile, m_EndOffsetsInBiblFile, and CBibliography::ReadFromString().

Referenced by CConcHolder::GenerateOneHitStringJson(), CConcHolder::ShowBibliographyForTable(), and CConcHolder::ShowBibliographyForTextOrHtml().

Here is the call graph for this function:

Here is the caller graph for this function:

bool CConcXml::CheckBibl ( size_t  FileBreaksNumber  )  const

Check bibliographical references.

References FileSize(), GetBiblFileName(), and m_EndOffsetsInBiblFile.

Here is the call graph for this function:

bool CConcXml::UniteBibliography ( const CConcXml B1,
const CConcXml B2 
)
bool CConcXml::GetValueFromBiblSet ( const RML_RE::Options RegexOpts,
string  Value,
CDDCFilterWithBounds Filter 
) const
bool CConcXml::LoadXmlAndReadBibliography ( TiXmlDocument doc,
const char *  pFileBuffer,
CBibliography Bibl,
string &  strError 
)
bool CConcXml::ReadMorphXmlFileIntoGraTable ( string  FileName,
const char *  pFileBuffer,
vector< CXmlToken > &  GraTable,
string &  strError,
CBibliography Bibl 
)

load xml file under MorphXML_Index into vector<CXmlToken>& GraTable

References TiXmlNode::FirstChildElement(), Format(), GetTextAreaElements(), LoadXmlAndReadBibliography(), CXmlToken::m_Annots, CXmlMorphAnnot::m_GrammemsStr, CXmlMorphAnnot::m_Lemma, CXmlToken::m_Type, CXmlToken::m_WordStr, TiXmlNode::NextSiblingElement(), Trim(), and TiXmlNode::Value().

Referenced by CConcIndexator::IndexMorphXml().

Here is the call graph for this function:

Here is the caller graph for this function:

string CConcXml::GetVisibleFreeHeaderBiblAttributes ( size_t  FileNo,
string  Delim 
) const

return values of all visible free bibliographical attributes for the given FileNo delimited by "Delim"

References CConcXml::CFreeBiblIndex::GetStringValue(), CConcXml::CFreeBiblIndex::m_bShowInHeader, and m_FreeBiblIndices.

Referenced by CConcHolder::ShowBibliographyForTextOrHtml().

Here is the call graph for this function:

Here is the caller graph for this function:

string CConcXml::GetFreeHeaderBiblAttributesWithNames ( size_t  FileNo,
char  Delim 
) const

return names and values of all free bibliographical attributes for the given FileNo delimited by "Delim"

References CConcXml::CFreeBiblIndex::GetStringValue(), CConcXml::CFreeBiblIndex::m_bShowInHeader, m_FreeBiblIndices, and CConcXml::CFreeBiblIndex::m_Name.

Referenced by CConcHolder::ShowBibliographyForTable().

Here is the call graph for this function:

Here is the caller graph for this function:

string CConcXml::GetFreeHeaderBiblAttributesJson ( size_t  FileNo,
bool  assume_utf8 = true 
) const

return names and values of all free bibliographical attributes for the given FileNo as JSON (without enclosing {})

References CConcXml::CFreeBiblIndex::GetStringValue(), jsonStr(), CConcXml::CFreeBiblIndex::m_bShowInHeader, m_FreeBiblIndices, and CConcXml::CFreeBiblIndex::m_Name.

Referenced by CConcHolder::GenerateOneHitStringJson().

Here is the call graph for this function:

Here is the caller graph for this function:

void CConcXml::SetFreeBiblAttribsEmpty ( CBibliography Bibl  ) 

set all free bibliographical attributes to ""

References CBibliography::m_BiblAttribs, and m_FreeBiblIndices.

Referenced by CConcIndexator::LoadFileIntoGraphan().

Here is the caller graph for this function:

bool CConcXml::GetTextAreaElements ( const TiXmlDocument doc,
vector< TiXmlElement * > &  Result,
string &  strError 
) const

return all text area elements for this document ("doc")

References Format(), m_TextAreas, TiXmlDocument::RootElement(), TiXmlNode::ToElement(), and TinyXPath::XNp_xpath_node().

Referenced by CConcIndexator::IndexTable(), CConcIndexator::LoadXmlFile(), and ReadMorphXmlFileIntoGraTable().

Here is the call graph for this function:

Here is the caller graph for this function:

size_t CConcXml::GetTextAreasCount (  )  const

return all text area names

References m_TextAreas.

Referenced by CQueryNode::ConvertOccurrencesToHits(), CQueryNode::ConvertOccurrencesToHitsForPatterns(), CConcIndexator::IndexTextOrHtmlFile(), and CConcIndexator::LoadXmlFile().

Here is the caller graph for this function:

int CConcXml::ProcessTextAreaNoInQueryStr ( string &  Query  )  const

return text area index, which is specified in the input query (if nothing is specified, it returns UnknownTextAreaNo)

References GetTextAreaByName(), Trim(), and UnknownTextAreaNo.

Referenced by CQueryParser::ParseQuery().

Here is the call graph for this function:

Here is the caller graph for this function:

void CConcXml::InitLessByDate ( vector< CHit > &  Hits  )  const

References m_Dates, CHit::m_FileNo, and CHit::m_OrderId.

Referenced by CConcHolder::InitOrderIDForHits().

Here is the caller graph for this function:

void CConcXml::InitGreaterByDate ( vector< CHit > &  Hits  )  const

References m_Dates, CHit::m_FileNo, and CHit::m_OrderId.

Referenced by CConcHolder::InitOrderIDForHits().

Here is the caller graph for this function:

void CConcXml::InitLessByBiblIntegerField ( string  FreeBiblAttribName,
vector< CHit > &  Hits 
) const

References CConcXml::CFreeBiblIndex::GetIntegerValue(), InitNoSort(), CHit::m_FileNo, m_FreeBiblIndices, and CHit::m_OrderId.

Referenced by CConcHolder::InitLessByRank(), and CConcHolder::InitOrderIDForHits().

Here is the call graph for this function:

Here is the caller graph for this function:

void CConcXml::InitGreaterByBiblIntegerField ( string  FreeBiblAttribName,
vector< CHit > &  Hits 
) const

References CConcXml::CFreeBiblIndex::GetIntegerValue(), InitNoSort(), CHit::m_FileNo, m_FreeBiblIndices, and CHit::m_OrderId.

Referenced by CConcHolder::InitOrderIDForHits().

Here is the call graph for this function:

Here is the caller graph for this function:

void CConcXml::InitNoSort ( vector< CHit > &  Hits  )  const

References CHit::m_OrderId.

Referenced by InitGreaterByBiblIntegerField(), and InitLessByBiblIntegerField().

Here is the caller graph for this function:

bool CConcXml::IsRegisteredBiblField ( string  FreeBiblAttribName  )  const

References m_FreeBiblIndices.

Referenced by CConcHolder::InitLessByRank().

Here is the caller graph for this function:


Member Data Documentation

vector<int> CConcXml::m_Dates [private]
FILE* CConcXml::m_BiblBodyFile [private]
string CConcXml::m_Path [private]
size_t CConcXml::m_BiblBodyFileSize [private]
string CConcXml::m_OrigXPath [private]
string CConcXml::m_ScanXPath [private]
string CConcXml::m_DateXPath [private]
string CConcXml::m_StartPageXPath [private]
vector<CTextArea> CConcXml::m_TextAreas [private]

The documentation for this class was generated from the following files: