#include <iostream>

#include <qimessaging/signature.hpp>

//sample foo function to take the signature from
int foo(int a, int b)
{
  return a + b + 42;
}

int main()
{
  //wrapper arround signature, to create the signature of a function with it's name
  std::string signature;

  signature = qi::makeFunctionSignature("foo", &foo);
  std::cout << "function signature should be      : foo::i:ii" << std::endl;
  std::cout << "function signature                : " << signature << std::endl;
  std::cout << "Pretty printed function signature : " << qi::signatureToString(signature) << std::endl;

  return 0;
}

#include <iostream>
#include <qimessaging/signature.hpp>

//sample foo function to take the signature from
int foo(int a, int b)
{
  return a + b + 42;
}

int main()
{
  //wrapper arround signature, to create the signature of a function with it's name
  std::string signature;

  signature = qi::makeFunctionSignature("foo", &foo);
  std::cout << "function signature should be      : foo::i(ii)" << std::endl;
  std::cout << "function signature                : " << signature << std::endl;
  std::cout << "Pretty printed function signature : " << qi::signatureToString(signature) << std::endl;

  return 0;
}

Update function example for foo::i(ii), instead of foo::i:ii
Examples: Update function example for foo::i(ii), instead of foo::i:ii

Change-Id: I78f2644fb56bc55d698cf852c11aa7020dc6cdbe
Reviewed-on: http://gerrit.aldebaran.lan:8080/82
Reviewed-by: Cedric GESTES <ddb78fe00abb42f91254c16a0860e38eb0781789@aldebaran-robotics.com>
Tested-by: Cedric GESTES <ddb78fe00abb42f91254c16a0860e38eb0781789@aldebaran-robotics.com>
