FirteX-高性能全文索引和检索平台API Documentation |
00001 // 00002 // Copyright(C) 2005--2006 Institute of Computing Tech, Chinese Academy of Sciences. 00003 // All rights reserved. 00004 // This file is part of FirteX (www.firtex.org) 00005 // 00006 // Use of the FirteX is subject to the terms of the software license set forth in 00007 // the LICENSE file included with this software, and also available at 00008 // http://www.firtex.org/license.html 00009 // 00010 // Author : 郭瑞杰(GuoRuijie) 00011 // Email : ruijieguo@software.ict.ac.cn,ruijieguo@gmail.com 00012 // Created : 2006/7/2 00013 // 00014 #ifndef __COMDOCUMENTSCHEMA_H 00015 #define __COMDOCUMENTSCHEMA_H 00016 00017 #if _MSC_VER > 1000 00018 #pragma once 00019 #endif // _MSC_VER > 1000 00020 00021 #include "FirteXCOM.h" 00022 #include "ComObject.h" 00023 #include "../document/DocumentSchema.h" 00024 00025 using namespace firtex::document; 00026 00027 namespace firtex 00028 { 00029 namespace plugin 00030 { 00031 class CComDocumentSchema : public CComObject 00032 { 00033 public: 00034 CComDocumentSchema(CDocumentSchema* pDocSchema); 00035 virtual ~CComDocumentSchema(void); 00036 public: 00037 static IDocumentSchema* wrap(CDocumentSchema* pDocSchema); 00038 static CDocumentSchema* unwrap(IDocumentSchema* pInterface); 00039 public: 00040 BEGIN_INTERFACE_PART(DocumentSchema, IDocumentSchema) 00041 FX_STDMETHOD(addKeywordItem)(/* [in] */firtex::com::BSTR name, 00042 /* [in] */firtex::plugin::FIELDTYPE ft, 00043 /* [out] */firtex::plugin::fieldid_t* pid); 00044 00045 FX_STDMETHOD(addUnIndexedItem)(/* [in] */firtex::com::BSTR name, 00046 /* [out] */firtex::plugin::fieldid_t* pid); 00047 00048 FX_STDMETHOD(addTextItem)(/* [in] */firtex::com::BSTR name, 00049 /* [in] */firtex::plugin::FIELDTYPE ft, 00050 /* [in] */firtex::plugin::Store_ store, 00051 /* [in] */firtex::plugin::TermVector_ termVector, 00052 /* [out] */firtex::plugin::fieldid_t* pid); 00053 00054 FX_STDMETHOD(addUnStoredItem)(/* [in] */firtex::com::BSTR name, 00055 /* [in] */firtex::plugin::FIELDTYPE ft, 00056 /* [in] */firtex::plugin::TermVector_ termVector, 00057 /* [out] */firtex::plugin::fieldid_t* pid); 00058 00059 FX_STDMETHOD(addBinaryItem)(/* [in] */firtex::com::BSTR name, 00060 /* [in] */firtex::com::bool_t bCompress, 00061 /* [out] */firtex::plugin::fieldid_t* pid); 00062 00063 END_INTERFACE_PART(DocumentSchema) 00064 private: 00065 CDocumentSchema* m_pDocSchema; 00066 }; 00067 } 00068 } 00069 00070 #endif
http://www.firtex.org http://www.sourceforge.net/projects/firtex