示例#1
0
      // Assignment operator.
   Variable& Variable::operator=(const Variable& right)
   {

         // First check if these Variables are the same
      if ( this == &right ) return (*this);

         // If Variables are different, then set values of all fields
      setType( right.getType() );

      setModel( right.getModel() );

      setSourceIndexed( right.getSourceIndexed() );

      setSatIndexed( right.getSatIndexed() );

      setInitialVariance( right.getInitialVariance() );

      setDefaultCoefficient( right.getDefaultCoefficient() );

      setDefaultForced( right.isDefaultForced() );

      setSource( right.getSource() );

      setSatellite( right.getSatellite() );

      setTypeIndexed(right.getTypeIndexed());              


      return *this;

   }  // End of 'Variable::operator='
示例#2
0
void trxWidget::updateTransponderList() {
  // for now: do as if we had a new satellite - but with the old one
  if (sat)
    setSatellite(sat);
}