Scid  4.6.5
Public Member Functions | List of all members
PBook Class Reference

#include <pbook.h>

Public Member Functions

void Init ()
 
 PBook ()
 
 ~PBook ()
 
const char * GetFileName ()
 
void SetFileName (const char *filename)
 
bool IsAltered ()
 
bool IsReadOnly ()
 
uint GetLineNumber (void)
 
uint Size ()
 
uint FewestPieces ()
 
uint NumSkippedSearches ()
 
errorT ReadFile ()
 
errorT WriteFile ()
 
errorT ReadEcoFile ()
 
errorT Find (Position *pos, const char **ptrComment)
 
errorT FindNext (Position *pos, bool forwards)
 
errorT Insert (Position *pos, const char *comment)
 
errorT Delete (Position *pos)
 
errorT FindOpcode (Position *pos, const char *opcode, DString *target)
 
errorT FindSummary (Position *pos, DString *target)
 
uint StripOpcode (const char *opcode)
 
void EcoSummary (const char *ecoPrefix, DString *dstr)
 
void DumpStats (FILE *fp)
 
uint NumPositionBytes ()
 
uint NumCommentBytes ()
 

Detailed Description

Definition at line 38 of file pbook.h.

Constructor & Destructor Documentation

PBook::PBook ( )
inline

Definition at line 80 of file pbook.h.

PBook::~PBook ( )

Definition at line 101 of file pbook.cpp.

Member Function Documentation

errorT PBook::Delete ( Position pos)

Definition at line 320 of file pbook.cpp.

void PBook::DumpStats ( FILE *  fp)

Definition at line 682 of file pbook.cpp.

void PBook::EcoSummary ( const char *  ecoPrefix,
DString dstr 
)

Definition at line 341 of file pbook.cpp.

uint PBook::FewestPieces ( )
inline

Definition at line 97 of file pbook.h.

errorT PBook::Find ( Position pos,
const char **  ptrComment 
)

Definition at line 147 of file pbook.cpp.

errorT PBook::FindNext ( Position pos,
bool  forwards 
)

Definition at line 244 of file pbook.cpp.

errorT PBook::FindOpcode ( Position pos,
const char *  opcode,
DString target 
)

Definition at line 189 of file pbook.cpp.

errorT PBook::FindSummary ( Position pos,
DString target 
)

Definition at line 205 of file pbook.cpp.

const char* PBook::GetFileName ( )
inline

Definition at line 83 of file pbook.h.

uint PBook::GetLineNumber ( void  )
inline

Definition at line 88 of file pbook.h.

void PBook::Init ( void  )

Definition at line 77 of file pbook.cpp.

errorT PBook::Insert ( Position pos,
const char *  comment 
)

Definition at line 288 of file pbook.cpp.

bool PBook::IsAltered ( )
inline

Definition at line 85 of file pbook.h.

bool PBook::IsReadOnly ( )
inline

Definition at line 86 of file pbook.h.

uint PBook::NumCommentBytes ( )
inline

Definition at line 114 of file pbook.h.

uint PBook::NumPositionBytes ( )
inline

Definition at line 113 of file pbook.h.

uint PBook::NumSkippedSearches ( )
inline

Definition at line 98 of file pbook.h.

errorT PBook::ReadEcoFile ( )

Definition at line 428 of file pbook.cpp.

errorT PBook::ReadFile ( )

Definition at line 540 of file pbook.cpp.

void PBook::SetFileName ( const char *  filename)

Definition at line 117 of file pbook.cpp.

uint PBook::Size ( )
inline

Definition at line 90 of file pbook.h.

uint PBook::StripOpcode ( const char *  opcode)

Definition at line 377 of file pbook.cpp.

errorT PBook::WriteFile ( )

Definition at line 617 of file pbook.cpp.


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