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

PString PIndirectChannel::GetName (  )  const [virtual, inherited]

Get the name of the channel. This is a combination of the channel pointers names (or simply the channel pointers name if the read and write channels are the same) or empty string if both null.

string for the channel names.

Reimplemented from PChannel.

Definition at line 740 of file pchannel.cxx.

References PIndirectChannel::channelPointerMutex, PChannel::GetName(), PIndirectChannel::readChannel, and PIndirectChannel::writeChannel.

  PReadWaitAndSignal mutex(channelPointerMutex);

  if (readChannel != NULL && readChannel == writeChannel)
    return readChannel->GetName();

  PStringStream name;

  name << "R<";
  if (readChannel != NULL)
    name << readChannel->GetName();
  name << "> T<";
  if (writeChannel != NULL)
    name << writeChannel->GetName();
  name << '>';

  return name;

Generated by  Doxygen 1.6.0   Back to index