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

recode.h

Go to the documentation of this file.
00001 #ifdef HAVE_CONFIG_H
00002 #include "config.h"
00003 #endif
00004 
00005 #ifdef HAVE_RECODE
00006 
00007 #include <stdio.h>
00008 #include <recode.h>
00009 #include <string>
00010 
00012 class Recode
00013 {
00014 private:
00015   RECODE_OUTER outer; 
00016   std::string err;
00017   
00018 public:
00019   Recode()
00020   {
00021     outer = recode_new_outer(false);
00022   }
00023 
00024   ~Recode()
00025   {
00026     recode_delete_outer( outer );
00027   }
00028 
00029   std::string get_err() const
00030   { return err; }
00031 
00032   bool convert( std::string in, std::string& out,  std::string character_set );
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