//---------------- // Constructors -- //---------------- makemask::makemask (const std::string& name) : Module(name) , p_badPixelLowerBoundary(0) , p_badPixelUpperBoundary(0) , p_outputPrefix("") , p_mask_fn("") , p_useMask(0) , p_takeOutThirteenthRow(0) , p_takeOutASICFrame(0) , p_takeOutWholeSection(-1) , io(0) , p_mask(0) , p_sum_sp() , p_count(0) { // get the values from configuration or use defaults p_badPixelLowerBoundary = config ("badPixelLowerBoundary", 0); p_badPixelUpperBoundary = config ("badPixelUpperBoundary", 1500); p_mask_fn = configStr("mask", ""); p_useMask = config ("useMask", 0); p_takeOutThirteenthRow = config ("takeOutThirteenthRow", 1); p_takeOutASICFrame = config ("takeOutASICFrame", 1); p_takeOutWholeSection = config ("takeOutWholeSection", -1); io = new arraydataIO(); p_sum_sp = shared_ptr<array1D<double> >( new array1D<double>(nMaxTotalPx) ); }
CSPadImageGetTest::CSPadImageGetTest (const std::string& name) : Module(name) , m_str_src() , m_key() , m_eventSave() , m_saveAll() , m_fname() , m_count(0) { // get the values from configuration or use defaults m_str_src = configStr("source", "CxiDs1.0:Cspad.0"); m_key = configStr("key", "Image2D"); m_eventSave = config ("eventSave", 0); m_saveAll = config ("saveAll", false); m_fname = configStr("fname", "cspad-image"); }
//---------------- // Constructors -- //---------------- info::info (const std::string& name) : Module(name) , p_outputPrefix("") , p_count(0) , p_stopflag(false) , fout() , p_pvs() { p_outputPrefix = configStr("outputPrefix", "out"); }
CSPadImageProducer::CSPadImageProducer (const std::string& name) : Module(name) , m_calibDir() , m_typeGroupName() , m_str_src() , m_inkey() , m_imgkey() , m_tiltIsApplied() , m_print_bits() , m_count(0) { // get the values from configuration or use defaults m_calibDir = configStr("calibDir", ""); // if not provided default from env will be used m_typeGroupName = configStr("typeGroupName", "CsPad::CalibV1"); m_str_src = configStr("source", "CxiDs1.0:Cspad.0"); m_inkey = configStr("key", ""); m_imgkey = configStr("imgkey", "Image2D"); m_tiltIsApplied = config ("tiltIsApplied", true); m_print_bits = config ("print_bits", 0); }
String8 StringPool::entry::makeConfigsString() const { String8 configStr(configTypeName); if (configStr.size() > 0) configStr.append(" "); if (configs.size() > 0) { for (size_t j=0; j<configs.size(); j++) { if (j > 0) configStr.append(", "); configStr.append(configs[j].toString()); } } else { configStr = "(none)"; } return configStr; }
CSPadImageProducer::CSPadImageProducer (const std::string& name) : Module(name) , m_typeGroupName() , m_source() , m_src() , m_inkey() , m_imgkey() , m_maxEvents() , m_filter() , m_tiltIsApplied() , m_print_bits() , m_count(0) { // get the values from configuration or use defaults m_typeGroupName = configStr("typeGroupName", "CsPad::CalibV1"); m_source = configStr("source", "CxiDs1.0:Cspad.0"); m_inkey = configStr("key", ""); m_imgkey = configStr("imgkey", "Image2D"); m_maxEvents = config ("events", 1<<31U); m_filter = config ("filter", false); m_tiltIsApplied = config ("tiltIsApplied", true); m_print_bits = config ("print_bits", 0); m_src = m_source; }
void KCookiesOptions::changePressed() { const char *domain = le_domain->text(); const char *advice; if (strlen(domain) == 0) { QMessageBox::warning( 0, i18n("Error"), i18n("You must enter a domain first !") ); return; } if (rb_domPolicyAccept->isChecked()) advice = adviceToStr(KCookieAccept); else if (rb_domPolicyReject->isChecked()) advice = adviceToStr(KCookieReject); else advice = adviceToStr(KCookieAsk); QString configStr(domain); if (configStr[0] != '.') configStr = "." + configStr; removeDomain(configStr.data()); configStr += ":"; configStr += advice; domainConfig.inSort(configStr.data()); int index = domainConfig.find(configStr.data()); updateDomainList(); wList->setCurrentItem(index); }
//---------------- // Constructors -- //---------------- correlate::correlate (const std::string& name) : Module(name) , p_tifOut(0) , p_edfOut(0) , p_h5Out(0) , p_singleOutput(0) , p_outputPrefix("") , p_mask_fn("") , p_useMask(0) , p_nPhi(0) , p_nQ1(0) , p_nQ2(0) , p_nLag(0) , p_alg(0) , p_autoCorrelateOnly(0) , p_startQ(0) , p_stopQ(0) , p_units(0) , p_LUTx(0) , p_LUTy(0) , p_useGrandAvgPolar(0) , p_grandAvgPolarDir("") , p_grandAvgPolarExt("") , io(0) , p_pix1_sp() , p_pix2_sp() , p_mask(0) , p_polarAvg_sp() , p_corrAvg_sp() , p_qAvg_sp() , p_iAvg_sp() , p_cc(0) , p_count(0) { p_tifOut = config ("tifOut", 0); p_edfOut = config ("edfOut", 1); p_h5Out = config ("h5Out", 0); p_singleOutput = config ("singleOutput", 0); p_mask_fn = configStr("mask", ""); p_useMask = config ("useMask", 0); p_nPhi = config ("nPhi", 128); p_nQ1 = config ("nQ1", 1); p_nQ2 = config ("nQ2", 1); p_alg = config ("algorithm", 1); p_autoCorrelateOnly = config ("autoCorrelateOnly", 1); p_startQ = config ("startQ", 0); p_stopQ = config ("stopQ", 0); p_units = config ("units", 1); p_LUTx = config ("LUTx", 1000); p_LUTy = config ("LUTy", 1000); p_useGrandAvgPolar = config ("useGrandAvgPolar", 0); p_grandAvgPolarDir = configStr("grandAvgPolarDir", ""); p_grandAvgPolarExt = configStr("grandAvgPolarExt", ""); io = new arraydataIO(); }