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 * NAME DATE - COMMENTS 00014 * tnt 03/2001 - created 00015 * ======================================================================== 00016 */ 00017 00018 #ifndef _DOCUMENTPROPS_HPP 00019 #define _DOCUMENTPROPS_HPP 00020 namespace lemur 00021 { 00022 namespace parse 00023 { 00024 00026 00033 class DocumentProps { 00034 public: 00035 DocumentProps() { len=0; sid=NULL;}; 00036 ~DocumentProps() {}; 00037 00039 void length(int dl) { len=dl; }; 00040 00042 int length() const { return len; }; 00043 00045 void stringID(const char* did) { sid = did; }; 00046 00048 const char* stringID() const { return sid; }; 00049 00050 private: 00051 int len; 00052 const char* sid; 00053 }; 00054 } 00055 } 00056 00057 #endif