X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=senf%2FUtils%2FConsole%2FMainpage.dox;h=1811aa2d18aea96fc45cec75c68f348c6a521545;hb=b0918b010bd5ebfb4cce6900c6889dbe4767b5f3;hp=7d7c79b9e926a6d0840b3d8dff3496b1e0b82015;hpb=9465eb3519ce665237bad18498883a436bbe7867;p=senf.git diff --git a/senf/Utils/Console/Mainpage.dox b/senf/Utils/Console/Mainpage.dox index 7d7c79b..1811aa2 100644 --- a/senf/Utils/Console/Mainpage.dox +++ b/senf/Utils/Console/Mainpage.dox @@ -1193,22 +1193,22 @@ All container types are parsed as parenthesized list of elements. Each element is parsed as defined for the element type: - \c vector, \c list or \c set of integers + \c vector, \c list or \c set of integers:
     (1 2 3)
     
- \c vector, \c list or \c set of strings + \c vector, \c list or \c set of strings:
     ("String 1" "String 2" "String 3")
     
- \c vector, \c list or \c set of \c pair<\c int,\c string> + \c vector, \c list or \c set of pair:
     ((1 "String 1") (2 "String 2") (3 "String 3"))
     
- Empty collection + Empty collection:
     ()
     
@@ -1217,14 +1217,14 @@ type does not need additional parenthesis A \c vector, \c list or \c set of integer with one element may be written with or without - parenthesis + parenthesis:
     (1) 
     1
     
- \e but a single element \c vector, \c list or \c set of \c pair<\c int,\c string> may \e only be - written + \e but a single element \c vector, \c list or \c set of pair may \e only be + written:
     ((1 "String 1"))
     
@@ -1330,19 +1330,19 @@ basic idea is, to us \c boost::function to convert the real argument type to some different type \code - unsigned char fun4(unsigned char value) + int fun4(int value) { return value; } senf::console::root() - .add("test8", boost::function(&fun4)); + .add("test8", boost::function(&fun4)); \endcode Here, the type signature specified via \c boost::function is different from the real type signature but is compatible. \c boost::function automatically handles the conversion - process. Since the console library now sees the argument and return value of type \c unsigned, - the values will be parsed correctly as numeric values. + process. Since the console library now sees the argument and return value of type \c bool, + the values will be parsed and formatted as boolean values. \subsection console_args_special Special Console types