Пример #1
0
bool
CoreModule::HandleParam( istream& is )
{
  if( mpStatevector && mpStatevector->StateValue( "Running" ) )
    BCIERR << "Unexpected Param message" << endl;

  Param p;
  if( p.ReadBinary( is ) )
    mParamlist[ p.Name() ] = p;
  return is;
}
Пример #2
0
bool
CoreModule::HandleParam( istream& is )
{
  if( mRunning )
    bcierr << "Unexpected Param message" << endl;

  ParamList& list = mReceivingNextModuleInfo ? mNextModuleInfo : mParamlist;
  Param p;
  if( p.ReadBinary( is ) )
    list[p.Name()] = p;
  return is ? true : false;
}