00001 //---------------------------------------------------------------------- 00002 // The Motion Strategy Library (MSL) 00003 //---------------------------------------------------------------------- 00004 // 00005 // Copyright (c) University of Illinois and Steven M. LaValle. 00006 // All Rights Reserved. 00007 // 00008 // Permission to use, copy, and distribute this software and its 00009 // documentation is hereby granted free of charge, provided that 00010 // (1) it is not a component of a commercial product, and 00011 // (2) this notice appears in all copies of the software and 00012 // related documentation. 00013 // 00014 // The University of Illinois and the author make no representations 00015 // about the suitability or fitness of this software for any purpose. 00016 // It is provided "as is" without express or implied warranty. 00017 //---------------------------------------------------------------------- 00018 00019 #ifndef MSL_UTIL_H 00020 #define MSL_UTIL_H 00021 00022 #include <list> 00023 #include <string> 00024 #include <sys/types.h> 00025 #include <sys/stat.h> 00026 #include <fstream> 00027 #include <vector> 00028 #include <unistd.h> 00029 #include <dirent.h> 00030 00031 using namespace std; 00032 00033 00034 //#include "point.h" 00035 00036 00037 float used_time(); 00038 00039 float used_time(float&); 00040 00041 //ostream& operator<<(ostream& out, const list<string>& L); 00042 00043 //istream& operator>>(istream& in, list<string>& L); 00044 00045 //ostream& operator<<(ostream& out, const list<int>& L); 00046 00047 //istream& operator>>(istream& in, list<int>& L); 00048 00049 bool is_file(string fname); 00050 00051 bool is_directory(string fname); 00052 00053 #endif