/** Gets a string describing the read result */
static std::string getResultCodeString( unsigned code )
{
return
code == RESULT_OK ? "OK" :
code == RESULT_CANCELED ? "Read canceled" :
code == RESULT_NOT_FOUND ? "Target not found" :
code == RESULT_SERVER_ERROR ? "Server reported error" :
code == RESULT_TIMEOUT ? "Read timed out" :
code == RESULT_NO_READER ? "No suitable ReaderWriter found" :
code == RESULT_READER_ERROR ? "ReaderWriter error" :
code == RESULT_NOT_IMPLEMENTED ? "Not implemented" :
"Unknown error";
}