Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

DocumentProps.hpp

Go to the documentation of this file.
00001 /*==========================================================================
00002  * Copyright (c) 2001 Carnegie Mellon University.  All Rights Reserved.
00003  *
00004  * Use of the Lemur Toolkit for Language Modeling and Information Retrieval
00005  * is subject to the terms of the software license set forth in the LICENSE
00006  * file included with this software, and also available at
00007  * http://www.lemurproject.org/license.html
00008  *
00009  *==========================================================================
00010 */
00011 
00012 
00013 #ifndef _DOCUMENTPROPS_HPP
00014 #define _DOCUMENTPROPS_HPP
00015 
00017 
00024 /*
00025  * NAME DATE - COMMENTS
00026  * tnt 03/2001 - created
00027  ==========================================================================*/
00028 class DocumentProps {
00029 public:
00030   DocumentProps() { len=0; sid=NULL;};
00031   ~DocumentProps() {};
00032   
00034   void length(int dl) { len=dl; };
00035 
00037   int length() const { return len; };
00038 
00040   void stringID(const char* did) { sid = did; };
00041 
00043   const char* stringID() const { return sid; };
00044 
00045 private:
00046   int len;
00047   const char* sid;
00048 };
00049 
00050 #endif

Generated on Wed Nov 3 12:58:54 2004 for Lemur Toolkit by doxygen1.2.18