Changeset 10351 for trunk/FACT++
- Timestamp:
- 04/10/11 10:45:09 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/Converter.cc
r10326 r10351 70 70 71 71 using namespace std; 72 /*73 In addition to converting the options from a string into binary format74 or back all found values are also put into a vector of boost::any objects.75 They can be accessed using e.g.76 77 \code78 Converter c(cout, "I:1;F:1;B:1;A:1;C", "112 5.5 on this is a test");79 80 cout << c.Get<int>(0) << endl; // prints '112'81 cout << c.Get<float>(1) << endl; // prints '5.5'82 cout << c.Get<bool>(2) << endl; // prints '1'83 cout << c.Get<string>(3) << endl; // prints 'this'84 cout << c.Get<string>(4) << endl; // prints 'is a test'85 \endcode86 */87 72 88 73 // --------------------------------------------------------------------------
Note:
See TracChangeset
for help on using the changeset viewer.