00001 #ifndef CUSTOMHTML_WEBPAGE_H 00002 #define CUSTOMHTML_WEBPAGE_H 00003 00004 /* 00005 * RebeccaAIML, Artificial Intelligence Markup Language 00006 * C++ api and engine. 00007 * 00008 * Copyright (C) 2005,2006,2007 Frank Hassanabad 00009 * 00010 * This file is part of RebeccaAIML. 00011 * 00012 * RebeccaAIML is free software; you can redistribute it and/or modify 00013 * it under the terms of the GNU General Public License as published by 00014 * the Free Software Foundation; either version 3 of the License, or 00015 * (at your option) any later version. 00016 * 00017 * RebeccaAIML is distributed in the hope that it will be useful, 00018 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00019 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00020 * GNU General Public License for more details. 00021 * 00022 * You should have received a copy of the GNU General Public License 00023 * along with this program. If not, see <http://www.gnu.org/licenses/>. 00024 */ 00025 00026 #include <string> 00027 00028 namespace customTag 00029 { 00030 namespace impl 00031 { 00032 00033 using namespace std; 00034 00040 class WebPage 00041 { 00042 public: 00043 00050 void setFileName(const string &fileName) 00051 { 00052 m_fileName = fileName; 00053 } 00054 00060 string getFileName() const 00061 { 00062 return m_fileName; 00063 } 00064 00065 00074 bool operator<(const WebPage &rhs) 00075 { 00076 return this->getFileName() < rhs.getFileName(); 00077 } 00078 00079 private: 00080 00084 string m_fileName; 00085 }; 00086 00098 bool operator<(WebPage lfh, WebPage rhs); 00099 00100 00101 } //end of namespace impl 00102 } //end of namespace customTag 00103 00104 00105 #endif