27 #include "../../../dataaccess/dataset/DataSetType.h" 
   28 #include "../../../dataaccess/dataset/UniqueKey.h" 
   29 #include "../utils/DoubleListWidget.h" 
   31 #include "ui_ConstraintWidgetForm.h" 
   32 #include "ui_DoubleListWidgetForm.h" 
   51   if(m_ui->m_nameLineEdit->text().isEmpty())
 
   56   std::string constraintName = m_ui->m_nameLineEdit->text().toStdString();
 
   59   std::vector<std::string> vec = m_doubleListWidget->getOutputValues();
 
   71   for(
size_t t = 0; t < vec.size(); ++t)
 
   91   m_ui->m_nameLineEdit->setText(uk->
getName().c_str());
 
   94   std::vector<std::string> ukPropsStr;
 
   95   for(std::size_t i = 0; i < ukProps.size(); ++i)
 
   97     ukPropsStr.push_back(ukProps[i]->getName());
 
  100   std::vector<te::dt::Property*> dtProps = m_dsType->getProperties();
 
  101   std::vector<std::string> dtPropsStr;
 
  102   for(std::size_t i = 0; i < dtProps.size(); ++i)
 
  104     std::string propStr = dtProps[i]->getName();
 
  106     if(std::find(ukPropsStr.begin(), ukPropsStr.end(), propStr) != ukPropsStr.end())
 
  109     dtPropsStr.push_back(propStr);
 
  112   m_doubleListWidget->setInputValues(dtPropsStr);
 
  113   m_doubleListWidget->setOutputValues(ukPropsStr);
 
virtual void setName(const std::string &name)
It sets the constraint name. 
 
void add(te::dt::Property *p)
It adds the property to the list of properties that participates in the unique key. 
 
A class that models the description of a dataset. 
 
virtual Property * clone() const =0
It returns a clone of the object. 
 
It models a property definition. 
 
It describes a unique key (uk) constraint. 
 
const std::vector< te::dt::Property * > & getProperties() const 
It returns the properties that form the unique key. 
 
virtual const std::string & getName() const 
It returns the constraint name.