MCPcopy Create free account
hub / github.com/dhbloo/rapfi / queryDatabaseText

Function queryDatabaseText

Rapfi/command/gomocup.cpp:851–865  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

849}
850
851void queryDatabaseText(bool getPosition)
852{
853 using namespace ::Database;
854 if (getPosition)
855 getDatabasePosition();
856
857 if (Search::Threads.dbStorage()) {
858 DBClient dbClient(*Search::Threads.dbStorage(), RECORD_MASK_ALL);
859 DBRecord record;
860 if (dbClient.query(*board, options.rule, record) && !record.isNull())
861 MESSAGEL("DATABASE TEXT " << std::quoted(UTF8ToConsoleCP(record.comment())));
862 else
863 MESSAGEL("DATABASE TEXT \"\"");
864 }
865}
866
867void editDatabaseTVD()
868{

Callers 1

runProtocolFunction · 0.85

Calls 6

getDatabasePositionFunction · 0.85
UTF8ToConsoleCPFunction · 0.85
dbStorageMethod · 0.80
queryMethod · 0.80
isNullMethod · 0.80
commentMethod · 0.80

Tested by

no test coverage detected