FirteX-高性能全文索引和检索平台

API Documentation


首页 | 名字空间列表 | 类继承关系 | 组合类型列表 | $(BL\录(B | 文件列表 | 名字空间成员 | 组合类型成员 | 文件成员

ComTokens.h

浏览该文件的文档。
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/9
00013 //
00014 #ifndef __COMTOKENS_H
00015 #define __COMTOKENS_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 "../analyzer/Tokens.h"
00024 using namespace firtex::analyzer;
00025 
00026 namespace firtex
00027 {
00028         namespace plugin
00029         {
00030                 class CComTokens :      public CComObject
00031                 {
00032                 public:
00033                         CComTokens(CTokens* pTokens);
00034                         virtual ~CComTokens(void);
00035                 public:
00036                         static ITokens*         wrap(CTokens* pTokens);
00037                         static CTokens*         unwrap(ITokens* pInterface);
00038                 public:
00039                         BEGIN_INTERFACE_PART(Tokens, ITokens)                           
00040                                 FX_STDMETHOD(getType)(/* [out] [retval] */TOKENTYPE* type);
00041                                 FX_STDMETHOD(setType)(/* [in] */TOKENTYPE type);
00042                                 FX_STDMETHOD(getCapacity)(/* [out] [retval]*/int32_t* cap);
00043                                 FX_STDMETHOD(getTokenNum)(/* [out] [retval]*/int32_t* numTokens);
00044                                 FX_STDMETHOD(getMaxTokens)(/* [out] [retval]*/int32_t* maxTokens);
00045                                 FX_STDMETHOD(setMaxTokens)(/* [in] */int32_t maxTokens);
00046                                 FX_STDMETHOD(clear)();
00047                                 FX_STDMETHOD(getBuffer)(/* [out] [retval] */byte** buf);
00048                                 FX_STDMETHOD(appendWord)(/* [in] */TERMID tid,/* [out] [retval] */firtex::com::bool_t* bSuc);
00049                                 FX_STDMETHOD(appendDate)(/* [in] */int64_t dt,/* [out] [retval] */firtex::com::bool_t* bSuc);
00050                         END_INTERFACE_PART(Tokens)
00051                 private:
00052                         CTokens* m_pTokens;
00053                 };
00054         }
00055 }
00056 
00057 #endif

http://www.firtex.org http://www.sourceforge.net/projects/firtex