[Click] what does cp_va_ parse do?

sam barker sam.barker0 at gmail.com
Wed Dec 19 00:46:51 EST 2007


Hi guys,

I was going through the code for .hh and .cc file

In the .cc file I saw there is always a configure what does it do?
I got the code below from tee.cc

what does cp_va_parse do ?

tee::configure(Vector<String> &conf, ErrorHandler *errh)
{
  int n = noutputs();
  if (cp_va_parse(conf, this, errh,
          cpOptional,
          cpUnsigned, "number of arms", &n,
          cpEnd) < 0)
    return -1;
  if (n != noutputs())
      return errh->error("%d outputs implies %d arms", noutputs(),
noutputs());
  return 0;
}


Cheers,
Sam


More information about the click mailing list