util.h

Go to the documentation of this file.
00001 /*==============================================================================
00002  * FILE:       util.h
00003  * OVERVIEW:   Provides the definition for the miscellaneous bits and pieces
00004  *               implemented in the util.so library
00005  *============================================================================*/
00006 /*
00007  * $Revision: 1.10 $
00008  *
00009  * 10 Apr 02 - Mike: Created
00010  */
00011 
00012 #ifndef __UTIL_H__
00013 #define __UTIL_H__
00014 
00015 #include <sstream>
00016 #include <string>
00017 
00018 // was a workaround
00019 #define STR(x) (char *)(x.str().c_str())
00020 // Upper case a C string: s is source, d is dest
00021 void upperStr(const char* s, char* d);
00022 // Add string and integer
00023 std::string operator+(const std::string& s, int i);
00024 
00025 void escapeXMLChars(std::string &s);
00026 char* escapeStr(char* str);
00027 
00028 int lockFileRead(const char *fname);
00029 int lockFileWrite(const char *fname);
00030 void unlockFile(int n);
00031 
00032 #endif

Generated on Tue Sep 19 21:18:35 2006 for Boomerang by  doxygen 1.4.6