⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 cq@plugin_name@.cc.in

📁 The GIFT (the GNU Image-Finding Tool) is a Content Based Image Retrieval System (CBIRS: http://en.wi
💻 IN
字号:
// -*- mode: c++ -*- /*     GIFT, a flexible content based image retrieval system.    Copyright (C) 1998, 1999, 2000, 2001, 2002, CUI University of Geneva    This program is free software; you can redistribute it and/or modify    it under the terms of the GNU General Public License as published by    the Free Software Foundation; either version 2 of the License, or    (at your option) any later version.    This program is distributed in the hope that it will be useful,    but WITHOUT ANY WARRANTY; without even the implied warranty of    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the    GNU General Public License for more details.    You should have received a copy of the GNU General Public License    along with this program; if not, write to the Free Software    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA*/#include "libMRML/include/mrml_const.h" // for parsing#include "libGIFTQu@PLUGIN_NAME@/include/CQ@PLUGIN_NAME@.h"    // the header for this class#include "libGIFTAc@PLUGIN_NAME@/include/CAc@PLUGIN_NAME@.h"   // the header for its accessor#include "libMRML/include/CXMLElementBuilder.h" //building XML elements from a string// for pipes#include <errno.h>  // error number (man errno)#include <string.h> // error string#include <cstdio>   // c standard i/o (enspricht stdio.h)#include <assert.h> // /**     There is no special initialisation to do,    so this function is empty */void CQ@PLUGIN_NAME@::init(){};/** * * default constructor SHOULD NOT BE CALLED *  */CQ@PLUGIN_NAME@::CQ@PLUGIN_NAME@(){  assert(0);};/** * constructor * see CQuery */CQ@PLUGIN_NAME@::CQ@PLUGIN_NAME@(CAccessorAdminCollection& inAccessorAdminCollection,			 CAlgorithm&          inAlgorithm):  CQuery(inAccessorAdminCollection,	 inAlgorithm){  {    // mproxy has been filled in a reasonable way     // by CQuery::CQuery    mAccessor=mAccessorAdmin->openAccessor("@PLUGIN_TYPE@");    init();    assert(mAccessor);  }};    /** * * destructor: at present empty *  */CQ@PLUGIN_NAME@::~CQ@PLUGIN_NAME@(){  cout << "destroying this "       << __FILE__       << __LINE__       << flush       << endl;  //i thought i will need this, but at present I do not have this impression  //it does not hurt, so we leave it in};/**  */bool CQ@PLUGIN_NAME@::setAlgorithm(CAlgorithm & inAlgorithm){  if(mAlgorithm && mAlgorithm->getCollectionID()==inAlgorithm.getCollectionID()){        return true;      }else{    //close the old collection, if exsisting    if(mAccessorAdmin)      mAccessorAdmin->closeAccessor("@PLUGIN_NAME@");    //    mAccessorAdmin=&mAccessorAdminCollection->getProxy(inAlgorithm.getCollectionID());    mAccessor=mAccessorAdmin->openAccessor("@PLUGIN_NAME@");        assert(mAccessor);    //    return (CQuery::setAlgorithm(inAlgorithm) && mAccessor);  }};/** * * */CIDRelevanceLevelPairList* CQ@PLUGIN_NAME@::fastQuery(const CXMLElement& ,					      int ,					      double){    assert(!"@PLUGIN_NAME@: METHOD fastQuery not implemented");}/** * * */CXMLElement* CQ@PLUGIN_NAME@::query(const CXMLElement& inQuery){  CXMLElement* lReturnValue=new CXMLElement(mrml_const::query_result);  return  lReturnValue;};

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -