WebPage.h

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 Frank Hassanabad
00009  *
00010  * This library is free software; you can redistribute it and/or
00011  * modify it under the terms of the GNU Lesser General Public
00012  * License as published by the Free Software Foundation; either
00013  * version 2.1 of the License, or (at your option) any later version.
00014  *
00015  * This library is distributed in the hope that it will be useful,
00016  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00017  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00018  * Lesser General Public License for more details.
00019  *
00020  * You should have received a copy of the GNU Lesser General Public
00021  * License along with this library; if not, write to the Free Software
00022  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
00023  */
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

Generated on Wed Jul 26 21:39:06 2006 for RebeccaAIML by  doxygen 1.4.5