There are sample programs in the qbic/QbicApi
directory that illustrate how various QBIC class methods are implemented. This appendix contains the following sample programs:
These sample applications are used for QBIC database population and query. They are included to demonstrate how easy you can include the QBIC functionality into your application.
If you need to find out how they are implemented, you should go to qbic/QbicApi
to study QbicWrap.hpp
and QbicWrap.cpp
.
#include "QbicWrap.hpp" int main(int argc, char **argv) { QbicWrapClass qbicMake; int rc; rc = qbicMake.QbicWrapDBS(argc, argv); if(rc) { QbPrintErrorMessage(stderr); return -1; } return 0; }
#include "QbicWrap.hpp" int main(int argc, char **argv) { QbicWrapClass qbicMake; int rc; qbicMake.SetScreenPrint(1); rc = qbicMake.QbicWrapQBE(argc, argv); if(rc) { QbPrintErrorMessage(stderr); return -1; } return 0; }
#include "QbicWrap.hpp" int main(int argc, char **argv) { QbicWrapClass qbicMake; int rc; qbicMake.SetScreenPrint(1); rc = qbicMake.QbicWrapThm(argc, argv); if(rc) { QbPrintErrorMessage(stderr); return -1; } return 0; }
#include "QbicWrap.hpp" int main(int argc, char **argv) { QbicWrapClass qbicMake; int rc; rc = qbicMake.QbicWrapDumpDb(argc, argv, stdout); if(rc) { QbPrintErrorMessage(stderr); return -1; } return 0; }