//Check whether the theater exists as a section and pass it on void TheaterCollection::createTheater(const std::string& _theaterName) { if (configFile->sectionExists(_theaterName)) { INISection* theaterSection = configFile->getSection(_theaterName); theaters.insert(theaters.end(), std::make_unique<TheaterDefinition>(getDefaultValues(_theaterName), theaterSection)); } else theaters.insert(theaters.end(), std::make_unique<TheaterDefinition>(getDefaultValues(_theaterName))); }
void printProperties( const tth::ofx::property::OfxhSet properties, std::string context="" ) { if( context.size() == 0 ) { TUTTLE_COUT( _color._red << "Number of properties : " << properties.getSize() << _color._std ); } else { TUTTLE_COUT( _color._red << "Number of properties for \"" << context << "\": " << properties.getSize() << _color._std ); } TUTTLE_COUT( _color._red << "RW" << _color._std << " " << _color._red << "ModifiedBy" << _color._std << "\t" << _color._red << "Type" << _color._std << "\t" << _color._red << "Size" << _color._std << "\t" << _color._red <<std::setw (50) << std::left << "Property Name" << _color._std << "\t" << _color._red << "Default Values" << _color._std ); tth::ofx::property::PropertyMap propMap = properties.getMap(); for( tth::ofx::property::PropertyMap::const_iterator itProperty = propMap.begin(); itProperty != propMap.end(); ++itProperty ) { const tth::ofx::property::OfxhProperty& prop = *( itProperty->second ); TUTTLE_COUT( _color._green << ( prop.getPluginReadOnly() ? (_color._green + "r-" + _color._std + " ") : (_color._green + "rw" + _color._std + " " ) ) << ( prop.getModifiedBy() == tth::ofx::property::eModifiedByHost ? ( _color._green + "host" + _color._std + " \t" ) : ( _color._green + "plugin" + _color._std + "\t" ) ) << _color._green << ( tth::ofx::property::mapTypeEnumToString( prop.getType() ) ) << _color._std << "\t" << _color._green << "[" << prop.getDimension() << "]" << _color._std << "\t" << _color._blue << std::setw (50) << std::left << itProperty->first << _color._std << "\t" << _color._green << "{ " << getDefaultValues(prop) << " }" << _color._std ); } }
void planning_models::KinematicModel::JointModel::getDefaultValues(std::map<std::string, double> &values, const Bounds &bounds) const { std::vector<double> defv; defv.reserve(variable_names_.size()); getDefaultValues(defv, bounds); for (std::size_t i = 0 ; i < variable_names_.size() ; ++i) values[variable_names_[i]] = defv[i]; }
AbstractRuleBinder::AbstractRuleBinder( RuleChecker* ruleChecker, Sample* sample, const QString strForm, QWidget *parent): QObject(parent), ruleCheckerPtr(ruleChecker), m_strForm(strForm), m_sample(sample){ // Let's not connect directly to Rulechecker, so establish all signal-slot dialog here! connect(this, SIGNAL(addRecord()), this, SLOT(getDefaultValues())); connect(this, SIGNAL(submitRecord()), this, SLOT(getPreSubmitValidation())); }