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

void JackTrip::createHeader ( const DataProtocol::packetHeaderTypeT  headertype )
Todo:
Document all these functions

Definition at line 395 of file JackTrip.cpp.

References DataProtocol::DEFAULT, DataProtocol::EMPTY, DataProtocol::JAMLINK, and mPacketHeader.

Referenced by setPacketHeaderType(), and start().

{
  switch (headertype) {
  case DataProtocol::DEFAULT :
    mPacketHeader = new DefaultHeader(this);
    break;
  case DataProtocol::JAMLINK :
    mPacketHeader = new JamLinkHeader(this);
    break;
  case DataProtocol::EMPTY :
    mPacketHeader = new EmptyHeader(this);
    break;
  default :
    throw std::invalid_argument("Undefined Header Type");
    break;
  }
}

Here is the caller graph for this function:


Generated by  Doxygen 1.6.0   Back to index