Example #1
0
/** Copy the LiveDataAlgorithm-specific properties from "other" to "this"
 *
 * @param other :: LiveDataAlgorithm-type algo.
 */
void LiveDataAlgorithm::copyPropertyValuesFrom(const LiveDataAlgorithm &other) {
  std::vector<Property *> props = this->getProperties();
  for (size_t i = 0; i < props.size(); i++) {
    Property *prop = props[i];
    this->setPropertyValue(prop->name(), other.getPropertyValue(prop->name()));
  }
}
/** Copy the LiveDataAlgorithm-specific properties from "other" to "this"
 *
 * @param other :: LiveDataAlgorithm-type algo.
 */
void LiveDataAlgorithm::copyPropertyValuesFrom(const LiveDataAlgorithm &other) {
  std::vector<Property *> props = this->getProperties();
  for (auto prop : props) {
    this->setPropertyValue(prop->name(), other.getPropertyValue(prop->name()));
  }
}