ddc
Public Member Functions | Public Attributes | List of all members
CBibliography Struct Reference

#include <Bibliography.h>

Public Member Functions

 CBibliography ()
 
void CleanBibliography ()
 set all members empty More...
 
void ReadFromString (const string &S)
 read structure's members from a string More...
 
string WriteToString () const
 write structure's members to a string More...
 
bool ConvertDateToInt (int &Result) const
 convert m_DateStr to an integer More...
 
void Sanitize (bool sanitizeFree=false)
 

Public Attributes

string m_OrigBibl
 original bibliography More...
 
string m_ScanBibl
 scanned bibliography More...
 
string m_DateStr
 issue date More...
 
DWORD m_StartPageInfo
 starting page More...
 
vector< string > m_BiblAttribs
 free bibbliographical attributes More...
 

Detailed Description

CBibliography contains bibliographical information about one corpus file, this information is read from xml, xpathes are defined in options file.

Constructor & Destructor Documentation

◆ CBibliography()

CBibliography::CBibliography ( )

Member Function Documentation

◆ CleanBibliography()

void CBibliography::CleanBibliography ( )

set all members empty

References m_BiblAttribs, m_DateStr, m_OrigBibl, m_ScanBibl, m_StartPageInfo, and UnknownPageNumber.

Referenced by CConcIndexator::LoadFileIntoGraphan(), CConcXml::LoadXmlAndReadBibliography(), and ReadFromString().

Here is the caller graph for this function:

◆ ReadFromString()

void CBibliography::ReadFromString ( const string &  S)

read structure's members from a string

References CleanBibliography(), m_DateStr, m_OrigBibl, m_ScanBibl, and Trim().

Referenced by CBiblIndex::GetFullBibliographyOfHit().

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

◆ WriteToString()

string CBibliography::WriteToString ( ) const

write structure's members to a string

References m_DateStr, m_OrigBibl, and m_ScanBibl.

Referenced by CConcXml::AddIndexItem(), and CConcIndexator::IndexMorphXml().

Here is the caller graph for this function:

◆ ConvertDateToInt()

bool CBibliography::ConvertDateToInt ( int &  Result) const

convert m_DateStr to an integer

References date2int(), and m_DateStr.

Referenced by CConcXml::AddIndexItem(), CConcXml::LoadXmlAndReadBibliography(), and CQFDateSort::Str2Date().

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

◆ Sanitize()

void CBibliography::Sanitize ( bool  sanitizeFree = false)

sanitize (auto-truncate) built-in attribute strings free string values are auto-truncated by CFreeBiblStringIndex::RegisterBiblStringItemId()

Parameters
sanitizeFree: sanitize free bibl-attributes too?

References ddcLogWarn, Format(), m_BiblAttribs, m_DateStr, m_OrigBibl, m_ScanBibl, MaxBiblStringLen, SanitizeBiblString(), and TrimTruncate().

Referenced by CConcXml::LoadXmlAndReadBibliography().

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

Member Data Documentation

◆ m_OrigBibl

string CBibliography::m_OrigBibl

◆ m_ScanBibl

string CBibliography::m_ScanBibl

◆ m_DateStr

string CBibliography::m_DateStr

◆ m_StartPageInfo

DWORD CBibliography::m_StartPageInfo

◆ m_BiblAttribs

vector<string> CBibliography::m_BiblAttribs

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