Logo Search packages:      
Sourcecode: maxdb-7.5.00 version File versions

DBMCli_MediumParallel & DBMCli_Media::NewMediumParallel ( const DBMCli_String sName  ) 

------------------------------------------------------------------------- function: NewMediumParallel ------------------------------------------------------------------------- description: A new parallel medium. return value: Reference to a medium object. -------------------------------------------------------------------------

Definition at line 971 of file DBMCli_Media.cpp.

References DBMCli_Array< TYPE, ARG_TYPE >::Add(), DBMCli_MediumParallel::MediumArray(), DBMCli_Array< TYPE, ARG_TYPE >::RemoveAll(), DBMCli_MediumParallel::SetDatabase(), DBMCli_Medium::SetDatabase(), and DBMCli_MediumParallel::SetProperties().

{
  m_oNewMediumParallel.SetDatabase( m_pDatabase );
  m_oNewMediumParallel.SetProperties( sName );

  m_oNewMediumParallel.MediumArray( ).RemoveAll( );

  for(SAPDB_Int nMedium = 0; nMedium < m_nMaxParallelDevices; nMedium++ )
  {
    DBMCli_Medium oMedium;

    oMedium.SetDatabase( m_pDatabase );

    m_oNewMediumParallel.MediumArray( ).Add( oMedium );
  }

  return m_oNewMediumParallel;
}


Generated by  Doxygen 1.6.0   Back to index