Paramotopy
parallel parameter homotopy through bertini
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
para_aux_funcs.hpp
Go to the documentation of this file.
1 
2 #include <unistd.h>
3 #include <stdlib.h>
4 #include <errno.h>
5 #include <sys/wait.h>
6 #include <sys/stat.h>
7 #include <sys/types.h>
8 #include <sstream>
9 #include <fstream>
10 #include <string>
11 
12 #include <stdexcept>
13 #include <vector>
14 #include <map>
15 #include <iostream>
16 #include <string>
17 #include <sstream>
18 #include <fstream>
19 #include <stdio.h>
20 
21 
22 #define BOOST_FILESYSTEM_VERSION 3
23 #define BOOST_FILESYSTEM_NO_DEPRECATED
24 
25 #include <boost/filesystem.hpp>
26 #include <boost/filesystem/operations.hpp>
27 #include <boost/filesystem/path.hpp>
28 #include <boost/progress.hpp>
29 #include <boost/regex.hpp>
30 
31 
32 #ifndef __PARA_AUX_H__
33 #define __PARA_AUX_H__
34 
35 #include "paramotopy_enum.hpp"
36 #include "random.hpp"
37 #include "mtrand.hpp"
38 //#include "xml_preferences.hpp"
39 
42 extern "C" {
43  int bertini_main(int argC, char *args[]);
44 }
45 
46 
51 
52 
56 void BertiniSplashScreen(std::string bertinilocation);
57 
58 
59 
60 
66 int GetFileParserIndex(std::string filename);
67 
68 
69 
70 
78 void GetFilesToParse(boost::filesystem::path run_to_analyze, std::vector< std::string > & gather_savefiles, std::vector< int > & gather_parser_indices);
79 
80 
86 bool TestIfFinished(boost::filesystem::path & path_to_check);
87 
95 int ParseFailedPaths(std::ifstream & fin, int numvariables);
96 
102 std::string replace_tilde_with_home(std::string workwithme);
103 
110 std::vector<boost::filesystem::path> FindFiles(boost::filesystem::path dir, std::string expression);
111 
118 std::vector<boost::filesystem::path> FindDirectories(boost::filesystem::path, std::string expression);
119 
125 std::string getAlphaNumeric_WithSpaces();
126 
131 std::string getAlphaNumeric();
132 
133 
140 bool parseDouble( std::string const& text, double& results );
141 
147 double getDouble();
148 
154 int getInteger();
155 
163 bool parseInteger( std::string const& text, int& results );
164 
173 int get_int_choice(std::string display_string,int min_value,int max_value);
174 
175 
181 boost::filesystem::path make_base_dir_name(boost::filesystem::path filename);
182 
183 
184 
187 int ParamotopyMainMenu();
188 
189 
190 
195 std::string stackoverflow_getcwd();
196 
197 
198 
199 void safe_chdir(std::string desired_directory);
200 
201 std::string convert_spaces_to_escaped(std::string workwithme);
202 
203 #endif
204 
int ParseFailedPaths(std::ifstream &fin, int numvariables)
the parser for the failed_paths file type, which is output from bertini.
std::string replace_tilde_with_home(std::string workwithme)
std::string getAlphaNumeric()
int bertini_main(int argC, char *args[])
bool parseInteger(std::string const &text, int &results)
std::string getAlphaNumeric_WithSpaces()
int getInteger()
std::string convert_spaces_to_escaped(std::string workwithme)
double getDouble()
std::vector< boost::filesystem::path > FindDirectories(boost::filesystem::path, std::string expression)
bool TestIfFinished(boost::filesystem::path &path_to_check)
std::vector< boost::filesystem::path > FindFiles(boost::filesystem::path dir, std::string expression)
int get_int_choice(std::string display_string, int min_value, int max_value)
void GetFilesToParse(boost::filesystem::path run_to_analyze, std::vector< std::string > &gather_savefiles, std::vector< int > &gather_parser_indices)
boost::filesystem::path make_base_dir_name(boost::filesystem::path filename)
void BertiniSplashScreen(std::string bertinilocation)
int ParamotopyMainMenu()
void ParamotopySplashScreen()
void safe_chdir(std::string desired_directory)
bool parseDouble(std::string const &text, double &results)
int GetFileParserIndex(std::string filename)
std::string stackoverflow_getcwd()