Hauptseite | Liste aller Namensbereiche | Klassenhierarchie | Übersicht | Auflistung der Dateien | Elemente eines Namensbereiches | Datenstruktur-Elemente | Datei-Elemente

Helper.hpp

gehe zur Dokumentation dieser Datei
00001 #ifndef PSFA_HELPER_HPP
00002 #define PSFA_HELPER_HPP
00003 // Copyright (C) 2004 Bernhard Assmann <bernie@tuxomania.net>
00004 //  
00005 // This program is free software; you can redistribute it and/or modify
00006 // it under the terms of the GNU General Public License as published by
00007 // the Free Software Foundation; either version 2 of the License, or
00008 // (at your option) any later version.
00009 //  
00010 // This program is distributed in the hope that it will be useful,
00011 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00012 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013 // GNU General Public License for more details.
00014 //  
00015 // You should have received a copy of the GNU General Public License
00016 // along with this program; if not, write to the Free Software
00017 // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
00018 //  
00019 
00020 #include <string>
00021 #include <vector>
00022 
00023 typedef unsigned short XMLCh; 
00025 namespace psfahelper 
00026 {
00034   bool
00035   onlyWhiteSpace( const std::string theString );
00036   
00044   unsigned int
00045   getXMLChLength ( const XMLCh* const field );
00046 
00057   const std::string
00058   stripWhiteSpace( std::string theString );
00059 
00068   const std::string
00069   getMd5Sum( const std::string path, const std::string fileName );
00070   
00081   void
00082   splitString( const std::string theString,
00083           std::vector< std::string >& theVector,
00084           const std::string delim = " " );
00085   
00095   void
00096   getFilePaths( const std::string path,
00097       const std::string pattern,
00098       std::vector< std::string > & fileList );
00099 
00107   bool
00108   pathIsDir( const std::string path );
00109 
00117   bool
00118   pathIsReadable( const std::string path );
00119 
00127   int
00128   getFileSize( const std::string path );
00129 }
00130 #endif

Erzeugt am Mon Jul 12 11:45:04 2004 für PSFA von doxygen 1.3.4