Scid  4.7.0
Macros | Functions
tkscid.h File Reference
#include "tcl.h"
Include dependency graph for tkscid.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define TCL_ARGS   ClientData cd, Tcl_Interp * ti, int argc, const char ** argv
 

Functions

int sc_eco_base (TCL_ARGS)
 
int sc_eco_game (TCL_ARGS)
 
int sc_eco_read (TCL_ARGS)
 
int sc_eco_summary (TCL_ARGS)
 
int sc_eco_translate (TCL_ARGS)
 
int sc_filter_first (TCL_ARGS)
 
int sc_filter_freq (scidBaseT *dbase, const HFilter &filter, Tcl_Interp *ti, int argc, const char **argv)
 
int sc_filter_last (TCL_ARGS)
 
int sc_filter_next (TCL_ARGS)
 
int sc_filter_prev (TCL_ARGS)
 
int sc_filter_stats (TCL_ARGS)
 
int sc_game_crosstable (TCL_ARGS)
 
int sc_game_find (TCL_ARGS)
 
int sc_game_firstMoves (TCL_ARGS)
 
int sc_game_import (TCL_ARGS)
 
int sc_game_info (TCL_ARGS)
 
int sc_game_load (TCL_ARGS)
 
int sc_game_merge (TCL_ARGS)
 
int sc_game_moves (TCL_ARGS)
 
int sc_game_novelty (TCL_ARGS)
 
int sc_game_new (TCL_ARGS)
 
int sc_game_pgn (TCL_ARGS)
 
int sc_game_pop (TCL_ARGS)
 
int sc_game_push (TCL_ARGS)
 
int sc_game_save (TCL_ARGS)
 
int sc_game_startBoard (TCL_ARGS)
 
int sc_game_strip (TCL_ARGS)
 
int sc_game_summary (TCL_ARGS)
 
int sc_game_tags (TCL_ARGS)
 
int sc_game_tags_get (TCL_ARGS)
 
int sc_game_tags_set (TCL_ARGS)
 
int sc_game_tags_reload (TCL_ARGS)
 
int sc_game_tags_share (TCL_ARGS)
 
int sc_info_limit (TCL_ARGS)
 
int sc_info_suffix (TCL_ARGS)
 
int sc_info_tb (TCL_ARGS)
 
int sc_info_priority (TCL_ARGS)
 
int sc_move_add (TCL_ARGS)
 
int sc_move_addSan (TCL_ARGS)
 
int sc_move_addUCI (TCL_ARGS)
 
int sc_move_back (TCL_ARGS)
 
int sc_move_forward (TCL_ARGS)
 
int sc_move_pgn (TCL_ARGS)
 
int sc_report_create (TCL_ARGS)
 
int sc_report_select (TCL_ARGS)
 
int sc_pos_addNag (TCL_ARGS)
 
int sc_pos_analyze (TCL_ARGS)
 
int sc_pos_bestSquare (TCL_ARGS)
 
int sc_pos_getNags (TCL_ARGS)
 
int sc_pos_hash (TCL_ARGS)
 
int sc_pos_html (TCL_ARGS)
 
int sc_pos_isAt (TCL_ARGS)
 
int sc_pos_isLegal (TCL_ARGS)
 
int sc_pos_isPromo (TCL_ARGS)
 
int sc_pos_matchMoves (TCL_ARGS)
 
int sc_pos_moves (TCL_ARGS)
 
int sc_pos_probe (TCL_ARGS)
 
int sc_pos_probe_board (TCL_ARGS)
 
int sc_pos_setComment (TCL_ARGS)
 
int sc_tree_move (TCL_ARGS)
 
int sc_tree_search (TCL_ARGS)
 
int sc_tree_cachesize (TCL_ARGS)
 
int sc_tree_cacheinfo (TCL_ARGS)
 
int sc_var_delete (TCL_ARGS)
 
int sc_var_delete_free (TCL_ARGS)
 
int sc_var_enter (TCL_ARGS)
 
int sc_var_first (TCL_ARGS)
 
int sc_var_list (TCL_ARGS)
 
errorT search_index (const scidBaseT *base, HFilter &filter, int argc, const char **argv, const Progress &progress)
 search_index() - search for games using game's IndexEntry info More...
 
int sc_search_board (Tcl_Interp *ti, const scidBaseT *dbase, HFilter filter, int argc, const char **argv)
 
int sc_search_material (TCL_ARGS)
 
int sc_search_header (ClientData cd, Tcl_Interp *ti, scidBaseT *base, HFilter &filter, int argc, const char **argv)
 
int sc_search_rep_add (TCL_ARGS)
 
int sc_search_rep_go (TCL_ARGS)
 
int sc_book_load (TCL_ARGS)
 
int sc_book_close (TCL_ARGS)
 
int sc_book_moves (TCL_ARGS)
 
int sc_book_positions (TCL_ARGS)
 
int sc_book_update (TCL_ARGS)
 
int sc_book_movesupdate (TCL_ARGS)
 

Macro Definition Documentation

◆ TCL_ARGS

#define TCL_ARGS   ClientData cd, Tcl_Interp * ti, int argc, const char ** argv

Definition at line 25 of file tkscid.h.

Function Documentation

◆ sc_book_close()

int sc_book_close ( TCL_ARGS  )

◆ sc_book_load()

int sc_book_load ( TCL_ARGS  )

◆ sc_book_moves()

int sc_book_moves ( TCL_ARGS  )

◆ sc_book_movesupdate()

int sc_book_movesupdate ( TCL_ARGS  )

◆ sc_book_positions()

int sc_book_positions ( TCL_ARGS  )

◆ sc_book_update()

int sc_book_update ( TCL_ARGS  )

◆ sc_eco_base()

int sc_eco_base ( TCL_ARGS  )

◆ sc_eco_game()

int sc_eco_game ( TCL_ARGS  )

◆ sc_eco_read()

int sc_eco_read ( TCL_ARGS  )

◆ sc_eco_summary()

int sc_eco_summary ( TCL_ARGS  )

◆ sc_eco_translate()

int sc_eco_translate ( TCL_ARGS  )

◆ sc_filter_first()

int sc_filter_first ( TCL_ARGS  )

◆ sc_filter_freq()

int sc_filter_freq ( scidBaseT dbase,
const HFilter filter,
Tcl_Interp *  ti,
int  argc,
const char **  argv 
)

Definition at line 1823 of file tkscid.cpp.

◆ sc_filter_last()

int sc_filter_last ( TCL_ARGS  )

◆ sc_filter_next()

int sc_filter_next ( TCL_ARGS  )

◆ sc_filter_prev()

int sc_filter_prev ( TCL_ARGS  )

◆ sc_filter_stats()

int sc_filter_stats ( TCL_ARGS  )

◆ sc_game_crosstable()

int sc_game_crosstable ( TCL_ARGS  )

◆ sc_game_find()

int sc_game_find ( TCL_ARGS  )

◆ sc_game_firstMoves()

int sc_game_firstMoves ( TCL_ARGS  )

◆ sc_game_import()

int sc_game_import ( TCL_ARGS  )

◆ sc_game_info()

int sc_game_info ( TCL_ARGS  )

◆ sc_game_load()

int sc_game_load ( TCL_ARGS  )

◆ sc_game_merge()

int sc_game_merge ( TCL_ARGS  )

◆ sc_game_moves()

int sc_game_moves ( TCL_ARGS  )

◆ sc_game_new()

int sc_game_new ( TCL_ARGS  )

◆ sc_game_novelty()

int sc_game_novelty ( TCL_ARGS  )

◆ sc_game_pgn()

int sc_game_pgn ( TCL_ARGS  )

◆ sc_game_pop()

int sc_game_pop ( TCL_ARGS  )

◆ sc_game_push()

int sc_game_push ( TCL_ARGS  )

◆ sc_game_save()

int sc_game_save ( TCL_ARGS  )

◆ sc_game_startBoard()

int sc_game_startBoard ( TCL_ARGS  )

◆ sc_game_strip()

int sc_game_strip ( TCL_ARGS  )

◆ sc_game_summary()

int sc_game_summary ( TCL_ARGS  )

◆ sc_game_tags()

int sc_game_tags ( TCL_ARGS  )

◆ sc_game_tags_get()

int sc_game_tags_get ( TCL_ARGS  )

◆ sc_game_tags_reload()

int sc_game_tags_reload ( TCL_ARGS  )

◆ sc_game_tags_set()

int sc_game_tags_set ( TCL_ARGS  )

◆ sc_game_tags_share()

int sc_game_tags_share ( TCL_ARGS  )

◆ sc_info_limit()

int sc_info_limit ( TCL_ARGS  )

◆ sc_info_priority()

int sc_info_priority ( TCL_ARGS  )

◆ sc_info_suffix()

int sc_info_suffix ( TCL_ARGS  )

◆ sc_info_tb()

int sc_info_tb ( TCL_ARGS  )

◆ sc_move_add()

int sc_move_add ( TCL_ARGS  )

◆ sc_move_addSan()

int sc_move_addSan ( TCL_ARGS  )

◆ sc_move_addUCI()

int sc_move_addUCI ( TCL_ARGS  )

◆ sc_move_back()

int sc_move_back ( TCL_ARGS  )

◆ sc_move_forward()

int sc_move_forward ( TCL_ARGS  )

◆ sc_move_pgn()

int sc_move_pgn ( TCL_ARGS  )

◆ sc_pos_addNag()

int sc_pos_addNag ( TCL_ARGS  )

◆ sc_pos_analyze()

int sc_pos_analyze ( TCL_ARGS  )

◆ sc_pos_bestSquare()

int sc_pos_bestSquare ( TCL_ARGS  )

◆ sc_pos_getNags()

int sc_pos_getNags ( TCL_ARGS  )

◆ sc_pos_hash()

int sc_pos_hash ( TCL_ARGS  )

◆ sc_pos_html()

int sc_pos_html ( TCL_ARGS  )

◆ sc_pos_isAt()

int sc_pos_isAt ( TCL_ARGS  )

◆ sc_pos_isLegal()

int sc_pos_isLegal ( TCL_ARGS  )

◆ sc_pos_isPromo()

int sc_pos_isPromo ( TCL_ARGS  )

◆ sc_pos_matchMoves()

int sc_pos_matchMoves ( TCL_ARGS  )

◆ sc_pos_moves()

int sc_pos_moves ( TCL_ARGS  )

◆ sc_pos_probe()

int sc_pos_probe ( TCL_ARGS  )

◆ sc_pos_probe_board()

int sc_pos_probe_board ( TCL_ARGS  )

◆ sc_pos_setComment()

int sc_pos_setComment ( TCL_ARGS  )

◆ sc_report_create()

int sc_report_create ( TCL_ARGS  )

◆ sc_report_select()

int sc_report_select ( TCL_ARGS  )

◆ sc_search_board()

int sc_search_board ( Tcl_Interp *  ti,
const scidBaseT dbase,
HFilter  filter,
int  argc,
const char **  argv 
)

Definition at line 8531 of file tkscid.cpp.

◆ sc_search_header()

int sc_search_header ( ClientData  cd,
Tcl_Interp *  ti,
scidBaseT base,
HFilter filter,
int  argc,
const char **  argv 
)

Definition at line 9257 of file tkscid.cpp.

◆ sc_search_material()

int sc_search_material ( TCL_ARGS  )

◆ sc_search_rep_add()

int sc_search_rep_add ( TCL_ARGS  )

◆ sc_search_rep_go()

int sc_search_rep_go ( TCL_ARGS  )

◆ sc_tree_cacheinfo()

int sc_tree_cacheinfo ( TCL_ARGS  )

◆ sc_tree_cachesize()

int sc_tree_cachesize ( TCL_ARGS  )

◆ sc_tree_move()

int sc_tree_move ( TCL_ARGS  )

◆ sc_tree_search()

int sc_tree_search ( TCL_ARGS  )

◆ sc_var_delete()

int sc_var_delete ( TCL_ARGS  )

◆ sc_var_delete_free()

int sc_var_delete_free ( TCL_ARGS  )

◆ sc_var_enter()

int sc_var_enter ( TCL_ARGS  )

◆ sc_var_first()

int sc_var_first ( TCL_ARGS  )

◆ sc_var_list()

int sc_var_list ( TCL_ARGS  )

◆ search_index()

errorT search_index ( const scidBaseT base,
HFilter filter,
int  argc,
const char **  argv,
const Progress progress 
)

search_index() - search for games using game's IndexEntry info

Parameters
basethe scidBaseT to search
filterthe filter to be modified with the result of the search (RESET, AND, OR operations can be applied to the filter)
argcnumber of argv elements
argvan array of string pairs <criteria,value>
progressreport search progress to UI

This function perform a fast games search using the IndexEntry info. Criteria should start with the char '-' and can include the optional trailing chars '!': meaning that we want the games that do not match the <criteria,value> pair '|': that allows to search for games that match at least one <criteria,value> in a group of <criteria,value> pairs

Names searches (-player, -white, -black, -event, -site -round) have special rules:

  • normal searches ignore case and spaces, so -player carlsen is equal to -player C a R L s en
  • player surname and name are usually separated by the char ,
  • exact searches (that do not ignore case and spaces) can be performed enclosing the searched value in "" like -player "Carlsen, Magnus"

Examples: -player "Carlsen, Magnus" means search for games played by (either as white or black) Carlsen (surname) Magnus (name)

-player carlsen -black kramnik means (white name contains 'carlsen' || black name contains 'carlsen') && (black name contains 'kramnik')

-white carlsen -black anand -black| kramnik -black| aronian means (white == carlsen) && (black == anand || black == kramnik || black == aronian) and will find the games played by carlsen as white against anand, or kramnik, or aronian

-elo "2700 4000" -event! blitz means elo > 2700 && elo < 4000 && event != blitz and will find the games played by players with elo greater or equal than 2700, excluding the blitz events

-welo "2700 4000" -belo|! "0 2700" -delo "-200 200" means (white elo > 2700 && white elo < 4000) || (belo is not in the range 0-2700) && ((welo - belo) > -200 && (welo - belo) < 200)

Definition at line 501 of file searchindex.cpp.