Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

lang.h

Go to the documentation of this file.
00001 #ifndef lang_h
00002 #define lang_h
00003 
00004 #include "tag.h"
00005 
00007 /*** <lang en text="hello"> */
00008 class Lang : private Tag
00009 {
00010 private:
00011   std::string lang;
00012   std::string text;
00013 
00014 public:
00015   Lang( Line& line );
00016 
00017   bool operator!() const
00018   { return Tag::operator!(); }
00019 
00021   std::string get_text( Strings::string_list& locs )
00022   {
00023     for( Strings::string_list_it it = locs.begin(); it != locs.end(); it++ )
00024       if( get_option( *it ) )
00025         return text;
00026     
00027     return "";
00028   }
00029 
00030   std::string get_text() const
00031   { return text; }
00032 
00033 };
00034 
00035 #endif

Generated on Tue Nov 20 02:19:52 2001 for Leo<HTML> by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001