15 #ifndef SCID_OPTABLE_H 16 #define SCID_OPTABLE_H 107 uint maxExtraMoves,
uint maxThemeMoveNumber);
113 Init (g, ie, gnum, max, tm);
116 void SetPositionalThemes (
Position * pos);
117 void Insert (
OpLine * subline);
120 static void PrintMove (
DString * dstr,
const char *
move,
uint format);
122 void PrintSummary (
DString * dstr,
uint format,
bool fullDate,
bool nmoves);
138 uint MaxThemeMoveNumber;
168 void SelectTableLines (
void);
170 bool IsRowMergable (
uint rownum);
171 void MergeRow (
uint rownum);
179 Init (type, g, ecoBook);
186 void SetFormat (
const char * str);
197 const char*
GetEco()
const {
return ECOstr_.c_str(); }
199 void GuessNumRows (
void);
202 MaxTableLines = nlines;
215 uint PercentScore (
void);
216 uint TheoryPercent (
void);
217 uint TheoryScore (
void);
221 void BestGames (
DString * dstr,
uint count,
const char * rtype);
224 void PrintStemLine (
DString * dstr,
uint format,
bool exclude);
226 void MakeRows (
void);
228 void DumpLines (Tcl_Channel fp);
230 void DumpLines (FILE * fp);
232 void PrintTable (
DString * dstr,
const char *title,
const char *comment);
233 void PrintLaTeX (
DString * dstr,
const char *title,
const char *comment);
234 void PrintHTML (
DString * str,
const char *title,
const char *comment);
235 void PrintText (
DString * str,
const char *title,
const char *comment,
237 static uint FormatFromStr (
const char * str);
239 void PopularMoveOrders (
DString * dstr,
uint count);
240 void ThemeReport (
DString * dstr,
uint argc,
const char ** argv);
241 void AddEndMaterial (
matSigT ms,
bool inFilter);
242 void EndMaterialReport (
DString * dstr,
const char * repGames,
243 const char * allGames);
244 uint * SelectGames (
char type,
uint number);
247 #endif // SCID_OPTABLE_H const uint POSTHEME_CastSame
const uint POSTHEME_THRESHOLD
void SetMaxThemeMoveNumber(uint x)
const uint OPTABLE_MAX_ROWS
uint AvgElo(colorT color, uint *count, uint *oppScore, uint *oppPerf)
const uint POSTHEME_OneBPair
const uint POSTHEME_CastOpp
const uint NUM_RESULT_TYPES
uint GetMaxExtraMoves(void)
const uint OPTABLE_COLUMNS
const char * GetEco() const
const uint OPTABLE_MAX_STARTLINE
const uint OPTABLE_DEFAULT_ROWS
const uint POSTHEME_OpenFyle
void SetMaxTableLines(uint nlines)
const uint POSTHEME_Kstorm
const uint OPTABLE_MAX_LINES
void SetMaxExtraMoves(uint nmoves)
const uint OPTABLE_MIN_ROWS
OpTable(const char *type, Game *g)
const uint POSTHEME_BAdvPawn
UI_res_t Result(UI_handle_t ti, errorT res)
const uint OPTABLE_MAX_EXTRA_MOVES
void SetExcludeMove(const char *s)
void SetMoveOrderID(uint id)
OpTable(const char *type, Game *g, PBook *ecoBook)
void SetDecimalChar(char c)
void PrintStemLine(DString *dstr)
const uint OPTABLE_MAX_TABLE_LINES
const uint POSTHEME_WAdvPawn
void SetNumRows(uint nrows)
void strCopy(char *target, const char *original)
const uint POSTHEME_QueenSwap
uint GetMaxTableLines(void)
void strStrip(char *str, char ch)
A PBook is a collection of chess positions, each with the corresponding ECO code, a mnemonic name...
const char * GetMove(uint depth)
const uint OPTABLE_Compact
OpLine(Game *g, const IndexEntry *ie, gamenumT gnum, uint max, uint tm)