00001
00002
00003
00004
00005
00006
00007
00008
00009
00010 #ifndef TYPEDEFS_H
00011 #define TYPEDEFS_H
00012 #include <vector>
00013 #include <iterator>
00014 #include <string>
00015 #include <sstream>
00016
00017 #ifndef HAVE_NO_BOOST
00018 #include <boost/shared_ptr.hpp>
00019 using boost::shared_ptr;
00020 #else
00021 template <typename T>
00022 class shared_ptr {
00023 public:
00024 T* content;
00025 T& operator*() const{ return *content; }
00026 T* operator->() const{ return content; }
00027 template <class TO> shared_ptr(const shared_ptr<TO>& o) { content = o.content; }
00028 shared_ptr(T* ncontent = NULL) : content(ncontent) {}
00029 operator bool(){ return content != NULL; }
00030 };
00031 #endif
00032
00033 typedef std::vector<unsigned char> slurpedfile;
00034 typedef slurpedfile::const_iterator iter;
00035 using std::string;
00036 using std::ostringstream;
00037
00038 #ifndef PREFIX
00039 #define PREFIX "/usr/local"
00040 #endif
00041
00042 #endif