#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
Go to the source code of this file.
Functions | |
const string | read_restrictedName (istream &is) |
needed for security reasons to prevent escape sequences or similar bad things | |
void | Get_ConfigFile () |
void | Read_ConfigFile (void) |
void | tune_parameters (const unsigned int DecimalDigits) |
Variables | |
bool | SkipFermat = false |
bool | UsePhimat = false |
bool | SkipPhi = false |
bool | SkipFibonacci = false |
bool | SkipEasyECM = false |
bool | SkipECM = false |
bool | PrintSummary = false |
int | rho_Phase = 150000 |
int | phi_Phase1 = 500000 |
double | phi_Phase2 = 10000000.0 |
double | elcu_Phase1 = 20000.0 |
double | elcu_Phase2 = 2000000.0 |
int | elcu_Kurven = 100 |
int | ecm_curves_processed = 0 |
double | Factor_Threshold = 3.0 |
string | XML_StatusFile |
string | TempDir = "/tmp" |
string | ConfigFile = "qsieve.cfg" |
string | DynamicRelationsFile = "dynamic_relations.dat" |
string | ClientAccountName = "" |
unsigned long int | FFT_MAX_MEM_USAGE = 32*1024 |
const string | FactorizationsFile = "factorizations.txt" |
std::ofstream | Factorization_to_file |
Definition in file ConfigFile.cc.
void Get_ConfigFile | ( | ) |
Definition at line 74 of file ConfigFile.cc.
References cerr, ConfigFile, cout, endl(), and exit().
Referenced by Read_ConfigFile().
void Read_ConfigFile | ( | void | ) |
Definition at line 119 of file ConfigFile.cc.
References cerr, cin, ClientAccountName, ConfigFile, cout, DynamicRelationsFile, endl(), exit(), FactorizationsFile, FFT_MAX_MEM_USAGE, Get_ConfigFile(), std::basic_ofstream< _CharT, _Traits >::is_open(), std::basic_ofstream< _CharT, _Traits >::open(), PrintSummary, read_restrictedName(), SkipEasyECM, SkipECM, SkipFermat, SkipFibonacci, SkipPhi, TempDir, UsePhimat, and XML_StatusFile.
Referenced by main().
needed for security reasons to prevent escape sequences or similar bad things
Definition at line 61 of file ConfigFile.cc.
References isalnum().
Referenced by Cprocess_clients::process_data_stream(), and Read_ConfigFile().
void tune_parameters | ( | const unsigned int | DecimalDigits | ) |
Definition at line 310 of file ConfigFile.cc.
References cerr, cin, ConfigFile, cout, elcu_Kurven, elcu_Phase1, elcu_Phase2, endl(), exit(), Factor_Threshold, LogicalSieveSize, MARK, MAX(), StaticFactorbaseSettings::MaxSize, phi_Phase1, phi_Phase2, PhysicalSieveSize, rho_Phase, setprecision(), StaticFactorbaseSettings::Size(), and StaticFactorbaseSettings::Size_StaticFactorbase.
Referenced by easy_factor(), main(), Cprocess_clients::process_data_stream_ecm(), and process_ecm().
string ClientAccountName = "" |
Definition at line 45 of file ConfigFile.cc.
Referenced by Read_ConfigFile(), and CClientRelation_Delivery::THREAD_transmit_Relations().
string ConfigFile = "qsieve.cfg" |
Definition at line 42 of file ConfigFile.cc.
Referenced by Get_ConfigFile(), Read_ConfigFile(), and tune_parameters().
string DynamicRelationsFile = "dynamic_relations.dat" |
int ecm_curves_processed = 0 |
Definition at line 28 of file ConfigFile.cc.
Referenced by Cprocess_clients::process_data_stream_ecm(), process_ecm(), and statistical_data::XML_StatusReport().
int elcu_Kurven = 100 |
Definition at line 27 of file ConfigFile.cc.
Referenced by Cprocess_clients::process_data_stream_ecm(), process_ecm(), tune_parameters(), and statistical_data::XML_StatusReport().
double elcu_Phase1 = 20000.0 |
Definition at line 25 of file ConfigFile.cc.
Referenced by main(), Cprocess_clients::process_data_stream_ecm(), process_ecm(), tune_parameters(), and statistical_data::XML_StatusReport().
double elcu_Phase2 = 2000000.0 |
Definition at line 26 of file ConfigFile.cc.
Referenced by main(), Cprocess_clients::process_data_stream_ecm(), process_ecm(), tune_parameters(), and statistical_data::XML_StatusReport().
double Factor_Threshold = 3.0 |
Definition at line 30 of file ConfigFile.cc.
Referenced by CmpqsPolynom::compute_first_polynomial(), main(), Cprocess_clients::process_data_stream(), and tune_parameters().
Definition at line 52 of file ConfigFile.cc.
Referenced by CRelation::ComputeQuadraticCongruence(), elliptic_curves::factor_found(), fermat_like_method(), main(), phimat(), phimat2(), polphi_template(), Cprocess_clients::process_data_stream(), Cprocess_clients::process_data_stream_ecm(), and process_ecm().
const string FactorizationsFile = "factorizations.txt" |
unsigned long int FFT_MAX_MEM_USAGE = 32*1024 |
Definition at line 47 of file ConfigFile.cc.
Referenced by allowed_memory_usage_KB(), and Read_ConfigFile().
int phi_Phase1 = 500000 |
double phi_Phase2 = 10000000.0 |
bool PrintSummary = false |
Definition at line 21 of file ConfigFile.cc.
Referenced by Read_ConfigFile(), and ExitManager::StopFactorization().
int rho_Phase = 150000 |
bool SkipEasyECM = false |
bool SkipECM = false |
bool SkipFermat = false |
bool SkipFibonacci = false |
bool SkipPhi = false |
bool UsePhimat = false |
Definition at line 39 of file ConfigFile.cc.
Referenced by Read_ConfigFile(), and ExitManager::StopFactorization().