18 #define MAKE_STRING( msg ) \ 19 ( ((std::ostringstream&)(std::ostringstream() << msg)).str() ) 20 #define MAKE_CSTRING( msg ) \ 21 ( ((std::ostringstream&)(std::ostringstream() << msg)).str().c_str() ) 23 #define COMMENT_CHAR '#' 25 inline std::istream&
comment(std::istream &s)
31 while (s.get(c) && c !=
'\n');
46 static LONGLONG frequency=0;
48 QueryPerformanceFrequency((LARGE_INTEGER*)&frequency);
50 QueryPerformanceCounter((LARGE_INTEGER*)&counter);
51 return (
unsigned long) (counter*1000 / frequency);
53 static struct timeval time;
54 gettimeofday(&time, 0);
55 return (
unsigned long)time.tv_sec*1000 + (
unsigned long)time.tv_usec/1000;
68 std::istringstream ss(str);
73 std::string&
replaceAll(std::string& txt,
char src,
char tar);
85 int findFiles(
const std::string& fmask, T iter) {
return 0; }
89 struct _finddata_t ff;
92 if((ffhandle = _findfirst(fmask.c_str(), &ff)) != -1) {
96 }
while(_findnext(ffhandle, &ff) == 0);
T & fromString(const std::string &str, T &v)
int findFiles(const std::string &fmask, T iter)
std::string toString(T v)
unsigned long getMilliSeconds()
std::string & replaceAll(std::string &txt, char src, char tar)
std::istream & comment(std::istream &s)
int __fixed_fnmatch(const struct dirent *dent)
int matlabCall(const std::string &cmd)
const std::string & __set_fnmatchpattern(const std::string &pattern)