int tellstdfunc::GDSconvertAll::execute() { bool over = getBoolValue(); bool recur = getBoolValue(); telldata::ttlist *pl = static_cast<telldata::ttlist*>(OPstack.top());OPstack.pop(); nameList top_cells; for (unsigned i = 0; i < pl->size(); i++) { top_cells.push_back((static_cast<telldata::ttstring*>((pl->mlist())[i]))->value()); } DATC->lockDB(false); DATC->importGDScell(top_cells, recur, over); updateLayerDefinitions(DATC->TEDLIB(), top_cells, TARGETDB_LIB); DATC->unlockDB(); // Don't refresh the tree browser here. // - First - it has been updated during the conversion // - Second - addTDTtab is running in the same thread as the caller. It must // make sure that there is nothing left in the PostEvent queue in the main thread // which was filled-up during the conversion. // bottom line - don't do that, or you'll suffer ... // @TODO Check whether is not a good idea to skip the cell browser update // during GDS import. The calling addTDTtab() at the end should be safe //browsers::addTDTtab(); LogFile << LogFile.getFN() << "(\""<< *pl << "\"," << LogFile._2bool(recur) << "," << LogFile._2bool(over) << ");"; LogFile.flush(); delete pl; return EXEC_NEXT; }
int tellstdfunc::GDSexportTOP::execute() { bool x2048 = getBoolValue(); std::string filename = getStringValue(); bool recur = getBoolValue(); std::string cellname = getStringValue(); if (expandFileName(filename)) { laydata::tdtcell *excell = NULL; laydata::tdtdesign* ATDB = DATC->lockDB(false); excell = ATDB->checkcell(cellname); if (NULL != excell) DATC->GDSexport(excell, recur, filename, x2048); DATC->unlockDB(); if (NULL != excell) { LogFile << LogFile.getFN() << "(\""<< cellname << "\"," << LogFile._2bool(recur) << ",\"" << filename << "\");"; LogFile.flush(); } else { std::string message = "Cell " + cellname + " not found in the database"; tell_log(console::MT_ERROR,message); } } else { std::string info = "Filename \"" + filename + "\" can't be expanded properly"; tell_log(console::MT_ERROR,info); } return EXEC_NEXT; }
/* start XML element */ void SpeakerDictionary_XMLHandler::startElement (const XMLCh * const uri, const XMLCh * const localname, const XMLCh * const qname, const Attributes & attrs) { map < string, string > attmap; map < string, string >::iterator it; getAttributes (attrs, attmap); if ( m_speakerTag == NULL ) { m_speakerTag = XMLString::transcode("speaker"); m_langTag = XMLString::transcode("spokenlanguage"); } if ( XMLString::compareIString(localname, m_speakerTag) == 0) { Speaker speaker; for ( it=attmap.begin(); it != attmap.end(); ++it ) speaker.setProperty(it->first, it->second); if ( m_speakerDic->addSpeaker(speaker) ) m_curId = attmap["id"]; else m_curId = ""; } else if ( XMLString::compareIString(localname, m_langTag) == 0 && !m_curId.empty()) { Speaker::Language lang(attmap["code"], getBoolValue(attmap["isnative"]), getBoolValue(attmap["isusual"]), attmap["accent"], attmap["dialect"]); Speaker& speaker = m_speakerDic->getSpeaker(m_curId); speaker.addLanguage(lang); } }
int tellstdfunc::CIFimport::execute() { real techno = getOpValue(); bool over = getBoolValue(); bool recur = getBoolValue(); SIMap* cifLays = DEBUG_NEW SIMap(); telldata::ttlist *lll = static_cast<telldata::ttlist*>(OPstack.top());OPstack.pop(); std::string name = getStringValue(); // Convert layer map telldata::tthsh* nameh; for (unsigned i = 0; i < lll->size(); i++) { nameh = static_cast<telldata::tthsh*>((lll->mlist())[i]); (*cifLays)[nameh->value().value()] = nameh->key().value(); } // Convert top structure list nameList top_cells; top_cells.push_back(name.c_str()); DATC->lockDB(false); DATC->CIFimport(top_cells, cifLays, recur, over, techno * DATC->DBscale()); updateLayerDefinitions(DATC->TEDLIB(), top_cells, TARGETDB_LIB); DATC->unlockDB(); // Don't refresh the tree browser here. See the comment in GDSimportAll::execute() LogFile << LogFile.getFN() << "(\"" << name<< "\"," << *lll << "," << LogFile._2bool(recur) << "," << LogFile._2bool(over) << "," << techno << ");"; LogFile.flush(); delete lll; cifLays->clear(); delete cifLays; return EXEC_NEXT; }
int tellstdfunc::GDSimportList::execute() { bool over = getBoolValue(); bool recur = getBoolValue(); telldata::ttlist *lll = static_cast<telldata::ttlist*>(OPstack.top());OPstack.pop(); telldata::ttlist *pl = static_cast<telldata::ttlist*>(OPstack.top());OPstack.pop(); nameList top_cells; for (unsigned i = 0; i < pl->size(); i++) { top_cells.push_back((static_cast<telldata::ttstring*>((pl->mlist())[i]))->value()); } // Convert layer map telldata::tthsh* nameh; USMap gdsLaysStrList; for (unsigned i = 0; i < lll->size(); i++) { nameh = static_cast<telldata::tthsh*>((lll->mlist())[i]); gdsLaysStrList[nameh->key().value()] = nameh->value().value(); } GdsLayers* gdsLaysAll = DEBUG_NEW GdsLayers(); GDSin::GdsFile* AGDSDB = DATC->lockGDS(); AGDSDB->collectLayers(*gdsLaysAll); DATC->unlockGDS(); LayerMapGds LayerExpression(gdsLaysStrList, gdsLaysAll); if (LayerExpression.status()) { DATC->lockDB(false); DATC->importGDScell(top_cells, LayerExpression, recur, over); updateLayerDefinitions(DATC->TEDLIB(), top_cells, TARGETDB_LIB); DATC->unlockDB(); // Don't refresh the tree browser here. // - First - it has been updated during the conversion // - Second - addTDTtab is running in the same thread as the caller. It must // make sure that there is nothing left in the PostEvent queue in the main thread // which was filled-up during the conversion. // bottom line - don't do that, or you'll suffer ... // @TODO Check whether is not a good idea to skip the cell browser update // during GDS import. The calling addTDTtab() at the end should be safe //browsers::addTDTtab(); LogFile << LogFile.getFN() << "("<< *pl << "," << *lll << "," << LogFile._2bool(recur) << "," << LogFile._2bool(over) << ");"; LogFile.flush(); } else { std::ostringstream ost; ost << "Can't execute GDS import - error in the layer map"; tell_log(console::MT_ERROR,ost.str()); } delete pl; delete lll; return EXEC_NEXT; }
int tellstdfunc::GDSimport::execute() { bool over = getBoolValue(); bool recur = getBoolValue(); telldata::ttlist *lll = static_cast<telldata::ttlist*>(OPstack.top());OPstack.pop(); std::string name = getStringValue(); // Convert layer map telldata::tthsh* nameh; USMap gdsLaysStrList; for (unsigned i = 0; i < lll->size(); i++) { nameh = static_cast<telldata::tthsh*>((lll->mlist())[i]); gdsLaysStrList[nameh->key().value()] = nameh->value().value(); } GDSin::GdsFile* AGDSDB = DATC->lockGDS(); GDSin::GdsStructure *src_structure = AGDSDB->getStructure(name.c_str()); std::ostringstream ost; if (!src_structure) { ost << "GDS structure named \"" << name << "\" does not exists"; tell_log(console::MT_ERROR,ost.str()); DATC->unlockGDS(); } else { GdsLayers* gdsLaysAll = DEBUG_NEW GdsLayers(); src_structure->collectLayers(*gdsLaysAll,true); DATC->unlockGDS(); LayerMapGds LayerExpression(gdsLaysStrList, gdsLaysAll); if (LayerExpression.status()) { nameList top_cells; top_cells.push_back(name); DATC->lockDB(false); DATC->importGDScell(top_cells, LayerExpression, recur, over); updateLayerDefinitions(DATC->TEDLIB(), top_cells, TARGETDB_LIB); DATC->unlockDB(); LogFile << LogFile.getFN() << "(\""<< name << "\"," << (*lll) << "," << LogFile._2bool(recur) << "," << LogFile._2bool(over) << ");"; LogFile.flush(); } else { ost << "Can't execute GDS import - error in the layer map"; tell_log(console::MT_ERROR,ost.str()); } } delete lll; return EXEC_NEXT; }
void peanoclaw::configurations::PeanoClawConfigurationForSpacetreeGrid::processEntry( const std::string& name, std::stringstream& values ) { if(name == "plot" || name == "plotAtOutputTimes") { _plotAtOutputTimes = getBoolValue(values); } else if(name == "plotAtEnd") { _plotAtEndTime = getBoolValue(values); } else if(name == "plotAtSubsteps") { _plotSubsteps = getBoolValue(values); } else if(name == "restrictStatistics") { _restrictStatistics = getBoolValue(values); } else if(name == "fluxCorrection") { _fluxCorrection = getBoolValue(values); } else if(name == "reduceReductions") { _reduceReductions = getBoolValue(values); } else if(name == "probe") { addProbe(values); } else if(name == "numberOfThreads") { _numberOfThreads = getIntegerValue(values); } else if(name == "neighborInducedMaximumTimesteps") { _estimateNeighborInducedMaximumTimestep = getBoolValue(values); } else if(name == "useDimensionalSplittingOptimization") { _useDimensionalSplittingOptimization = getBoolValue(values); } else if(name == "nodePoolStrategy") { std::string strategyName; values >> strategyName; if(strategyName == "levelAware") { _nodePoolStrategy = LevelAware; } else if (strategyName == "treeAware") { _nodePoolStrategy = TreeAware; } } else {
int tellstdfunc::CIFexportTOP::execute() { bool verbose = getBoolValue(); std::string filename = getStringValue(); telldata::ttlist *lll = static_cast<telldata::ttlist*>(OPstack.top());OPstack.pop(); bool recur = getBoolValue(); std::string cellname = getStringValue(); // Convert layer map USMap* cifLays = DEBUG_NEW USMap(); telldata::tthsh* nameh; for (unsigned i = 0; i < lll->size(); i++) { nameh = static_cast<telldata::tthsh*>((lll->mlist())[i]); (*cifLays)[nameh->key().value()] = nameh->value().value(); } if (expandFileName(filename)) { laydata::tdtcell *excell = NULL; laydata::tdtdesign* ATDB = DATC->lockDB(false); excell = ATDB->checkcell(cellname); if (NULL != excell) { DATC->CIFexport(excell, cifLays, recur, verbose, filename); LogFile << LogFile.getFN() << "( \"" << cellname << "\", " << LogFile._2bool(recur) << ", " << (*lll) << ", \"" << filename << "\", " << LogFile._2bool(verbose) << ");"; LogFile.flush(); } else { std::string message = "Cell " + cellname + " not found in the database"; tell_log(console::MT_ERROR,message); } DATC->unlockDB(); } else { std::string info = "Filename \"" + filename + "\" can't be expanded properly"; tell_log(console::MT_ERROR,info); } cifLays->clear(); delete cifLays; delete lll; return EXEC_NEXT; }
int tellstdfunc::GDSexportTOP::execute() { bool x2048 = getBoolValue(); std::string filename = getStringValue(); telldata::ttlist *lll = static_cast<telldata::ttlist*>(OPstack.top());OPstack.pop(); bool recur = getBoolValue(); std::string cellname = getStringValue(); // Convert layer map USMap gdsLays; telldata::tthsh* nameh; for (unsigned i = 0; i < lll->size(); i++) { nameh = static_cast<telldata::tthsh*>((lll->mlist())[i]); gdsLays[nameh->key().value()] = nameh->value().value(); } if (expandFileName(filename)) { laydata::tdtcell *excell = NULL; laydata::tdtdesign* ATDB = DATC->lockDB(false); excell = ATDB->checkcell(cellname); if (NULL != excell) { LayerMapGds default_map(gdsLays, NULL); DATC->GDSexport(excell, default_map, recur, filename, x2048); LogFile << LogFile.getFN() << "(\""<< cellname << "\"," << LogFile._2bool(recur) << ", " << *lll << ", " << "\"" << filename << "\"," << LogFile._2bool(x2048) <<");"; LogFile.flush(); } else { std::string message = "Cell " + cellname + " not found in the database"; tell_log(console::MT_ERROR,message); } DATC->unlockDB(); } else { std::string info = "Filename \"" + filename + "\" can't be expanded properly"; tell_log(console::MT_ERROR,info); } delete lll; return EXEC_NEXT; }
int tellstdfunc::GDSconvert::execute() { bool over = getBoolValue(); bool recur = getBoolValue(); std::string name = getStringValue(); nameList top_cells; top_cells.push_back(name.c_str()); laydata::tdtdesign* ATDB = DATC->lockDB(false); DATC->importGDScell(top_cells, recur, over); updateLayerDefinitions(ATDB, top_cells); DATC->unlockDB(); LogFile << LogFile.getFN() << "(\""<< name << "\"," << LogFile._2bool(recur) << "," << LogFile._2bool(over) << ");"; LogFile.flush(); return EXEC_NEXT; }
/*In this main method the run-arguments are being read * and the SettingObject is being configured accordingly. * At the end the get_Barcode() method is being called * */ int main(int argc, const char** argv ) { //example input: Barcode-App.exe false false false true false media/internet/chips.jpg i s const char* execute; bool stepByStep, showAllSteps, search, webcam, speach; const char* file; char webcamVersion, webcamStyle; execute = argv[0]; SettingObject s(execute); if (argc >= 7) { //6 is the least number of paramters stepByStep = getBoolValue(argv[1]); showAllSteps = getBoolValue(argv[2]); //step by step doesn't make sense if there aren't multiple windows // if (!showAllSteps) { // stepByStep = false; // } search = getBoolValue(argv[3]); webcam = getBoolValue(argv[4]); speach = getBoolValue(argv[5]); file = argv[6]; if (webcam) { webcamVersion = argv[7][0];//i(ntern) | e(xtern) webcamStyle = argv[8][0]; //s(ingle frame) | m(any frames (loop)) } else { //0 means invalid setting webcamVersion = '0'; webcamStyle = '0'; } s.setValues(stepByStep, showAllSteps, search, webcam, speach, file, webcamVersion, webcamStyle); //s = s2; } Mat src; if (s.isWebcam()) { src = get_image_from_webcam(webcamVersion, webcamStyle); } else { // cout << "load image from file" << endl; src = imread(s.getFile(), CV_LOAD_IMAGE_COLOR); } cout << "get_Barcode(src, s): " << get_Barcode(src, s) << endl; return 0; }
int tellstdfunc::stdREPORTLAY::execute() { bool recursive = getBoolValue(); std::string cellname = getStringValue(); WordList ull; DATC->lockDB(); bool success = DATC->TEDLIB()->collect_usedlays(cellname, recursive, ull); DATC->unlockDB(); telldata::ttlist* tllull = DEBUG_NEW telldata::ttlist(telldata::tn_int); if (success) { ull.sort();ull.unique(); std::ostringstream ost; ost << "used layers: {"; for(WordList::const_iterator CL = ull.begin() ; CL != ull.end();CL++ ) ost << " " << *CL << " "; ost << "}"; tell_log(console::MT_INFO, ost.str()); for(WordList::const_iterator CL = ull.begin() ; CL != ull.end();CL++ ) tllull->add(DEBUG_NEW telldata::ttint(*CL)); ull.clear(); } else { std::string news = "cell \""; news += cellname; news += "\" doesn't exists"; tell_log(console::MT_ERROR,news); } OPstack.push(tllull); return EXEC_NEXT; }
void tellstdfunc::stdGRID::undo() { TEUNDO_DEBUG("grid( int bool ) UNDO"); bool visu = getBoolValue(UNDOPstack, true); byte no = getByteValue(UNDOPstack, true); gridON(no,visu); RefreshGL(); }
int tellstdfunc::GDSexportLIB::execute() { bool x2048 = getBoolValue(); std::string filename = getStringValue(); telldata::ttlist *lll = static_cast<telldata::ttlist*>(OPstack.top());OPstack.pop(); // Convert layer map USMap gdsLays; telldata::tthsh* nameh; for (unsigned i = 0; i < lll->size(); i++) { nameh = static_cast<telldata::tthsh*>((lll->mlist())[i]); gdsLays[nameh->key().value()] = nameh->value().value(); } if (expandFileName(filename)) { DATC->lockDB(false); LayerMapGds default_map(gdsLays, NULL); DATC->GDSexport(default_map, filename, x2048); DATC->unlockDB(); LogFile << LogFile.getFN() << "( " << *lll << ", " << "\""<< filename << "\", " << LogFile._2bool(x2048) <<");"; LogFile.flush(); } else { std::string info = "Filename \"" + filename + "\" can't be expanded properly"; tell_log(console::MT_ERROR,info); } delete lll; return EXEC_NEXT; }
void ofXml::deserialize(ofAbstractParameter & parameter){ if(!parameter.isSerializable()) return; string name = parameter.getEscapedName(); if(parameter.type()==typeid(ofParameterGroup).name()){ ofParameterGroup & group = static_cast<ofParameterGroup&>(parameter); if(setTo(name)){ for(int i=0;i<group.size();i++){ deserialize(group.get(i)); } setToParent(); } }else{ if(exists(name)){ if(parameter.type()==typeid(ofParameter<int>).name()){ parameter.cast<int>() = getIntValue(name); }else if(parameter.type()==typeid(ofParameter<float>).name()){ parameter.cast<float>() = getFloatValue(name); }else if(parameter.type()==typeid(ofParameter<bool>).name()){ parameter.cast<bool>() = getBoolValue(name); }else if(parameter.type()==typeid(ofParameter<int64_t>).name()){ parameter.cast<int64_t>() = getInt64Value(name); }else if(parameter.type()==typeid(ofParameter<string>).name()){ parameter.cast<string>() = getValue(name); }else{ parameter.fromString(getValue(name)); } } } }
int tellstdfunc::CIFexportLIB::execute() { bool verbose = getBoolValue(); std::string filename = getStringValue(); telldata::ttlist *lll = static_cast<telldata::ttlist*>(OPstack.top());OPstack.pop(); // Convert layer map USMap* cifLays = DEBUG_NEW USMap(); telldata::tthsh* nameh; for (unsigned i = 0; i < lll->size(); i++) { nameh = static_cast<telldata::tthsh*>((lll->mlist())[i]); (*cifLays)[nameh->key().value()] = nameh->value().value(); } if (expandFileName(filename)) { DATC->lockDB(false); DATC->CIFexport(cifLays, verbose, filename); DATC->unlockDB(); LogFile << LogFile.getFN() << "( " << (*lll) << ", \"" << filename << "\", " << LogFile._2bool(verbose) << " );"; LogFile.flush(); } else { std::string info = "Filename \"" + filename + "\" can't be expanded properly"; tell_log(console::MT_ERROR,info); } delete cifLays; delete lll; return EXEC_NEXT; }
int tellstdfunc::stdCELLAREF::execute() { UNDOcmdQ.push_front(this); // get the parameters from the operand stack //cellaref("boza",getpoint(),0,false,1,3,2,30,70); real stepY = getOpValue(); real stepX = getOpValue(); word row = getWordValue(); word col = getWordValue(); real magn = getOpValue(); bool flip = getBoolValue(); real angle = getOpValue(); telldata::ttpnt *rpnt = static_cast<telldata::ttpnt*>(OPstack.top());OPstack.pop(); std::string name = getStringValue(); real DBscale = DATC->DBscale(); int4b istepX = (int4b)rint(stepX * DBscale); int4b istepY = (int4b)rint(stepY * DBscale); CTM ori(TP(rpnt->x(), rpnt->y(), DBscale), magn,angle,flip); laydata::ArrayProperties arrprops(istepX,istepY,col,row); laydata::tdtdesign* ATDB = DATC->lockDB(); telldata::ttlayout* cl = DEBUG_NEW telldata::ttlayout( ATDB->addcellaref(name,ori,arrprops),REF_LAY); DATC->unlockDB(); OPstack.push(cl); UNDOPstack.push_front(cl->selfcopy()); LogFile << LogFile.getFN() << "(\""<< name << "\"," << *rpnt << "," << angle << "," << LogFile._2bool(flip) << "," << magn << "," << col << "," << row << "," << stepX << "," << stepY << ");"; LogFile.flush(); delete rpnt; RefreshGL(); return EXEC_NEXT; }
string Object::getValue() { if (isArray == 1) { getMapValue(); } if (value=="") return ""; if (type=="bool") { return to_string(getBoolValue()); } else if (type=="int") { return to_string(getIntValue()); } else if (type=="double") { std::ostringstream os; os << getDoubleValue(); return os.str(); } return getStringValue(); }
int tellstdfunc::stdADDTEXT::execute() { // get the parameters from the operand stack real magn = getOpValue(); bool flip = getBoolValue(); real angle = getOpValue(); telldata::ttpnt *rpnt = static_cast<telldata::ttpnt*>(OPstack.top());OPstack.pop(); word la = getWordValue(); std::string text = getStringValue(); if ("" == text) { tell_log(console::MT_ERROR,"Empty string. Operation ignored"); return EXEC_ABORT; } if (0.0 == magn) { tell_log(console::MT_ERROR,"Text with size 0. Operation ignored"); return EXEC_ABORT; } UNDOcmdQ.push_front(this); UNDOPstack.push_front(DEBUG_NEW telldata::ttint(la)); real DBscale = DATC->DBscale(); CTM ori(TP(rpnt->x(), rpnt->y(), DBscale), magn*DBscale/OPENGL_FONT_UNIT,angle,flip); laydata::tdtdesign* ATDB = DATC->lockDB(); telldata::ttlayout* tx = DEBUG_NEW telldata::ttlayout(ATDB->addtext(la, text, ori), la); DATC->unlockDB(); OPstack.push(tx);UNDOPstack.push_front(tx->selfcopy()); LogFile << LogFile.getFN() << "(\"" << text << "\"," << la << "," << *rpnt << "," << angle << "," << LogFile._2bool(flip) << "," << magn << ");"; LogFile.flush(); delete rpnt; RefreshGL(); return EXEC_NEXT; }
int tellstdfunc::stdHIDELAYER::execute() { bool hide = getBoolValue(); word layno = getWordValue(); if (layno != DATC->curlay()) { laydata::tdtdesign* ATDB = DATC->lockDB(); UNDOcmdQ.push_front(this); UNDOPstack.push_front(new telldata::ttint(layno)); UNDOPstack.push_front(new telldata::ttbool(!hide)); laydata::selectList *listselected = ATDB->shapesel(); laydata::selectList *todslct = new laydata::selectList(); if (hide && (listselected->end() != listselected->find(layno))) { (*todslct)[layno] = new laydata::dataList(*((*listselected)[layno])); UNDOPstack.push_front(make_ttlaylist(todslct)); ATDB->unselect_fromList(todslct); } else { UNDOPstack.push_front(make_ttlaylist(todslct)); delete todslct; } DATC->hideLayer(layno, hide); DATC->unlockDB(); browsers::layer_status(browsers::BT_LAYER_HIDE, layno, hide); LogFile << LogFile.getFN() << "("<< layno << "," << LogFile._2bool(hide) << ");"; LogFile.flush(); UpdateLV(); } else { tell_log(console::MT_ERROR,"Layer above is the current. Can't be hidden"); } return EXEC_NEXT; }
//! //! Change function for the Merge Consecutive Delimiters parameter. //! void TextDelimiterSourceNode::mergeConsecutiveDelimitersChanged () { bool mergeConsecutiveDelimiters = getBoolValue("Merge Consecutive Delimiters"); if (!m_dtxt) return; m_dtxt->SetMergeConsecutiveDelimiters(mergeConsecutiveDelimiters); updateTable(); }
//! //! Change function for the Detect Numeric Columns parameter. //! void TextDelimiterSourceNode::detectNumericColumnsChanged () { bool detectNumericColumns = getBoolValue("Detect Numeric Columns"); if (!m_dtxt) return; m_dtxt->SetDetectNumericColumns(detectNumericColumns); updateTable(); }
bool RSettings::getImportRecomputedDimBlocks() { if (importRecomputedDimBlocks==-1) { importRecomputedDimBlocks = getBoolValue("Dwg/ImportRecomputedDimBlocks", false); if (!importRecomputedDimBlocks) { importRecomputedDimBlocks = originalArguments.contains("-recompute-dim") ? 1 : 0; } } return importRecomputedDimBlocks; }
//! //! Change function for the Have Header parameter. //! void TextDelimiterSourceNode::haveHeaderChanged () { bool haveHeader = getBoolValue("Have Header"); if (!m_dtxt) return; m_dtxt->SetHaveHeaders(haveHeader); updateTable(); }
void tellstdfunc::stdAUTOPAN::undo() { TEUNDO_DEBUG("autopan() UNDO"); bool autop = getBoolValue(UNDOPstack, true); DATC->setautopan(autop); wxCommandEvent eventGRIDUPD(wxEVT_SETINGSMENU); eventGRIDUPD.SetInt(autop ? tui::STS_AUTOPAN_ON : tui::STS_AUTOPAN_OFF); wxPostEvent(TopedMainW, eventGRIDUPD); }
void tellstdfunc::stdHIDECELLMARK::undo() { TEUNDO_DEBUG("hide_cellmarks( bool ) UNDO"); bool hide = getBoolValue(UNDOPstack,true); DATC->setcellmarks_hidden(hide); wxCommandEvent eventGRIDUPD(wxEVT_SETINGSMENU); eventGRIDUPD.SetInt((hide ? tui::STS_CELLMARK_OFF : tui::STS_CELLMARK_ON)); wxPostEvent(TopedCanvasW, eventGRIDUPD); RefreshGL(); }
//! //! Change function for the Use String Delimiter parameter. //! void TextDelimiterSourceNode::useStringDelimiterChanged () { bool useStringDelimiter = getBoolValue("Use String Delimiter"); if (!m_dtxt) return; m_dtxt->SetUseStringDelimiter(useStringDelimiter); updateTable(); }
void tellstdfunc::stdHIDECELLBOND::undo() { TEUNDO_DEBUG("hide_cellbox( bool ) UNDO"); bool hide = getBoolValue(UNDOPstack,true); DATC->setcellbox_hidden(hide); wxCommandEvent eventGRIDUPD(wxEVT_SETINGSMENU); eventGRIDUPD.SetInt((hide ? tui::STS_CELLBOX_OFF : tui::STS_CELLBOX_ON)); wxPostEvent(TopedCanvasW, eventGRIDUPD); LogFile << LogFile.getFN() << "(" << LogFile._2bool(hide) << ");"; LogFile.flush(); RefreshGL(); }
int tellstdfunc::GDSconvertAll::execute() { bool over = getBoolValue(); bool recur = getBoolValue(); telldata::ttlist *pl = static_cast<telldata::ttlist*>(OPstack.top());OPstack.pop(); nameList top_cells; for (unsigned i = 0; i < pl->size(); i++) { top_cells.push_back((static_cast<telldata::ttstring*>((pl->mlist())[i]))->value()); } laydata::tdtdesign* ATDB = DATC->lockDB(false); DATC->importGDScell(top_cells, recur, over); browsers::addTDTtab(ATDB->name(), ATDB->hiertree()); updateLayerDefinitions(ATDB, top_cells); DATC->unlockDB(); LogFile << LogFile.getFN() << "(\""<< *pl << "\"," << LogFile._2bool(recur) << "," << LogFile._2bool(over) << ");"; LogFile.flush(); delete pl; return EXEC_NEXT; }
bool CinReader::readBool () { string input = ""; getline(cin, input); while (!testBoolInput(input)) { cout << "Please enter \"true\" or \"false\": "; getline(cin, input); } return (getBoolValue(input)); }