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

SAPDB_Int DBMCli_MediumParallel::IndexByLocation ( const DBMCli_String sLocation  ) 

EndChapter: Properties

------------------------------------------------------------------------- function: IndexByLocation ------------------------------------------------------------------------- description: Get a index from a medium of this group by the the location return value: Index of medium in array. -------------------------------------------------------------------------

Definition at line 753 of file DBMCli_Media.cpp.

References DBMCli_Array< TYPE, ARG_TYPE >::GetSize(), and MediumArray().

{

  int nSize  = MediumArray().GetSize();
  int nIndex = -1;

  for (int i = 0; i < nSize; ++i) {
    if (MediumArray()[i].Location() == sLocation) {
      nIndex = i;;
    } // end if
  } // end for

  return nIndex;
} // end DBMCli_MediumParallel :: IndexByLocation


Generated by  Doxygen 1.6.0   Back to index