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

/otk/util.hh

Go to the documentation of this file.
00001 // -*- mode: C++; indent-tabs-mode: nil; c-basic-offset: 2; -*-
00002 #ifndef __util_hh
00003 #define __util_hh
00004 
00005 extern "C" {
00006 #include <X11/Xlib.h>
00007 #include <X11/Xutil.h>
00008 
00009 #ifdef    TIME_WITH_SYS_TIME
00010 #  include <sys/time.h>
00011 #  include <time.h>
00012 #else // !TIME_WITH_SYS_TIME
00013 #  ifdef    HAVE_SYS_TIME_H
00014 #    include <sys/time.h>
00015 #  else // !HAVE_SYS_TIME_H
00016 #    include <time.h>
00017 #  endif // HAVE_SYS_TIME_H
00018 #endif // TIME_WITH_SYS_TIME
00019 }
00020 
00021 #include <string>
00022 #include <vector>
00023 
00024 namespace otk {
00025 
00026 std::string expandTilde(const std::string& s);
00027 
00028 void bexec(const std::string& command, const std::string& displaystring);
00029 
00030 std::string itostring(unsigned long i);
00031 std::string itostring(long i);
00032 inline std::string itostring(unsigned int i)
00033   { return itostring((unsigned long) i); }
00034 inline std::string itostring(int i)
00035   { return itostring((long) i); }
00036 
00037 void putenv(const std::string &data);
00038 
00039 std::string basename(const std::string& path);
00040 
00041 }
00042 
00043 #endif // __util_hh

Generated on Tue Feb 4 22:58:57 2003 for Openbox by doxygen1.3-rc2