25 #include <giomm/init.h> 34 char const* filename=
"/home/carlo/projects/cwchessboard/cwchessboard/torture.pgn";
38 Glib::RefPtr<Glib::MainLoop> main_loop;
40 void open_finished(
size_t len)
42 std::cout <<
"Total size read: " << len <<
'\n';
46 int main(
int argc,
char* argv[])
48 Debug(NAMESPACE_DEBUG::init());
49 if (!Glib::thread_supported())
53 char const* infile = filename;
56 Glib::RefPtr<pgn::Database> pgn_data_base = pgn::DatabaseSeekable::open(infile, sigc::ptr_fun(&open_finished));
57 main_loop = Glib::MainLoop::create(
false);
A namespace for all chess related objects that are not related to the GUI.
This file contains the declaration of class pgn::Database.
This file contains the declaration of class ChessGame.