ParsedString.h

Go to the documentation of this file.
00001 //
00002 // ParsedString.h
00003 //
00004 // ParsedString: Contains a string. The string my contain $var, ${var}, $(var)
00005 //               `filename`. The get method will expand those using the
00006 //               dictionary given in argument.
00007 // 
00008 // Part of the ht://Dig package   <http://www.htdig.org/>
00009 // Copyright (c) 1999, 2000, 2001 The ht://Dig Group
00010 // For copyright details, see the file COPYING in your distribution
00011 // or the GNU General Public License version 2 or later 
00012 // <http://www.gnu.org/copyleft/gpl.html>
00013 //
00014 // $Id: ParsedString_8h-source.html,v 1.1 2008/06/08 10:12:55 sebdiaz Exp $
00015 
00016 #ifndef _ParsedString_h_
00017 #define _ParsedString_h_
00018 
00019 #include "Object.h"
00020 #include "htString.h"
00021 #include "Dictionary.h"
00022 
00023 class ParsedString : public Object
00024 {
00025 public:
00026         //
00027         // Construction/Destruction
00028         //
00029                                         ParsedString();
00030                                         ParsedString(const String& s);
00031                                         ~ParsedString();
00032 
00033         void                    set(const String& s);
00034         const String            get(const Dictionary &d) const;
00035 private:
00036         String                  value;
00037 
00038         void                    getFileContents(String &str, const String& filename) const;
00039 };
00040 
00041 #endif

Generated on Sun Jun 8 10:56:39 2008 for GNUmifluz by  doxygen 1.5.5