]> git.donarmstrong.com Git - mothur.git/blobdiff - mothur.h
worked on trim.seqs - added in the groupfiles for allfiles=t, cleaned up the outputNa...
[mothur.git] / mothur.h
index 6e5833f7032aafba146f8b92cd30bacc149ab931..190254a96e4c7d7830f8405035933efda4b003ea 100644 (file)
--- a/mothur.h
+++ b/mothur.h
@@ -57,6 +57,7 @@
        #include <sys/wait.h>
        #include <sys/time.h>
        #include <sys/resource.h>
+       #include <sys/types.h>
        #include <sys/stat.h>
        #include <unistd.h>
        
@@ -70,7 +71,7 @@
        #include <direct.h> //get cwd
        #include <windows.h>
        #include <psapi.h>
-
+       #include <direct.h>
 #endif
 
 using namespace std;
@@ -238,5 +239,15 @@ string toString(const T&x, int i){
 }
 //**********************************************************************************************************************
 
+template<class T>
+T fromString(const string& s){
+       istringstream stream (s);
+       T t;
+       stream >> t;
+       return t;
+}
+
+//**********************************************************************************************************************
+
 #endif