Logo Search packages:      
Sourcecode: pwlib version File versions  Download package

PString PArgList::GetParameter ( PINDEX  num  )  const

Get the parameter that was parsed in the argument list.

parameter string at the specified index.
num  Number of the parameter to retrieve.

Definition at line 1739 of file osutils.cxx.

References argumentArray, IllegalArgumentIndex(), parameterIndex, and shift.

Referenced by operator[]().

  int idx = shift+(int)num;
  if (idx >= 0 && idx < (int)parameterIndex.GetSize())
    return argumentArray[parameterIndex[idx]];

  return PString();

Generated by  Doxygen 1.6.0   Back to index