ConfigFile.cc File Reference

configfile related functions More...

#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>

Include dependency graph for ConfigFile.cc:

This graph shows which files directly or indirectly include this file:

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


Detailed Description

configfile related functions

Definition in file ConfigFile.cc.


Function Documentation

void Get_ConfigFile (  ) 

Definition at line 74 of file ConfigFile.cc.

References cerr, ConfigFile, cout, endl(), and exit().

Referenced by Read_ConfigFile().

Here is the call graph for this function:

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().

Here is the call graph for this function:

const string read_restrictedName ( istream is  ) 

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().

Here is the call graph for this function:

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().

Here is the call graph for this function:


Variable Documentation

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"

Definition at line 43 of file ConfigFile.cc.

Referenced by main(), and Read_ConfigFile().

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().

std::ofstream Factorization_to_file

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"

Definition at line 51 of file ConfigFile.cc.

Referenced by Read_ConfigFile().

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

Definition at line 23 of file ConfigFile.cc.

Referenced by easy_factor(), and tune_parameters().

double phi_Phase2 = 10000000.0

Definition at line 24 of file ConfigFile.cc.

Referenced by easy_factor(), and tune_parameters().

bool PrintSummary = false

Definition at line 21 of file ConfigFile.cc.

Referenced by Read_ConfigFile(), and ExitManager::StopFactorization().

int rho_Phase = 150000

Definition at line 22 of file ConfigFile.cc.

Referenced by easy_factor(), and tune_parameters().

bool SkipEasyECM = false

Definition at line 19 of file ConfigFile.cc.

Referenced by easy_factor(), and Read_ConfigFile().

bool SkipECM = false

Definition at line 20 of file ConfigFile.cc.

Referenced by main(), and Read_ConfigFile().

bool SkipFermat = false

Definition at line 15 of file ConfigFile.cc.

Referenced by easy_factor(), and Read_ConfigFile().

bool SkipFibonacci = false

Definition at line 18 of file ConfigFile.cc.

Referenced by easy_factor(), and Read_ConfigFile().

bool SkipPhi = false

Definition at line 17 of file ConfigFile.cc.

Referenced by easy_factor(), and Read_ConfigFile().

string TempDir = "/tmp"

Definition at line 41 of file ConfigFile.cc.

Referenced by Read_ConfigFile().

bool UsePhimat = false

Definition at line 16 of file ConfigFile.cc.

Referenced by easy_factor(), and Read_ConfigFile().

string XML_StatusFile

Definition at line 39 of file ConfigFile.cc.

Referenced by Read_ConfigFile(), and ExitManager::StopFactorization().


Generated on Wed Nov 7 23:29:30 2007 for Qsieve by  doxygen 1.5.4