This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

Calling it

By: a guest on Jan 21st, 2013  |  syntax: C++  |  size: 0.25 KB  |  views: 30  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. string s;
  2. double d;
  3.  
  4. switch(param.getValueType()):
  5. {
  6.         case ValueDataType::STRING_TYPE:
  7.                 s = param.getValue<string>();
  8.                 break;
  9.         case ValueDataType::DOUBLE_TYPE:
  10.                 d = param.getValue<double>();
  11.                 break;
  12.         default:
  13.                 // blah
  14.                 break;
  15. }
clone this paste RAW Paste Data