Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| playground:doxycode [2024/01/20 21:59] – lprobsth1 | playground:doxycode [2024/01/21 15:06] (current) – fix language lprobsth1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| |< 100% min:1000px 50% 50%>| | |< 100% min:1000px 50% 50%>| | ||
| ^ Dokuwiki/ | ^ Dokuwiki/ | ||
| - | | <file c test2.c> | + | | The following example shows some C code from our custom library. Unfortunately the doxygen instance is not publicly available. || |
| + | | <file c test.c> | ||
| #include " | #include " | ||
| Line 24: | Line 25: | ||
| TEST_ASSERT_MESSAGE(error==CANOPEN_DICTIONARY_LIB_ERROR_NONE," | TEST_ASSERT_MESSAGE(error==CANOPEN_DICTIONARY_LIB_ERROR_NONE," | ||
| } | } | ||
| - | </ | + | </ |
| #include " | #include " | ||
| Line 48: | Line 49: | ||
| } | } | ||
| </ | </ | ||
| - | | <file c [enable_line_numbers=" | + | | Here the same example - but with linenumbers enabled. The doxycode code snippet uses the same XML cache file as the example above. || |
| + | | <file c [enable_line_numbers=" | ||
| #include " | #include " | ||
| Line 71: | Line 73: | ||
| TEST_ASSERT_MESSAGE(error==CANOPEN_DICTIONARY_LIB_ERROR_NONE," | TEST_ASSERT_MESSAGE(error==CANOPEN_DICTIONARY_LIB_ERROR_NONE," | ||
| } | } | ||
| - | </ | + | </ |
| #include " | #include " | ||
| Line 95: | Line 97: | ||
| } | } | ||
| </ | </ | ||
| + | | < | ||
| + | The following example is taken from [[https:// | ||
| + | Building the snippet through the task runner is enabled globally for the tag file. | ||
| + | </ | ||
| + | | <code c> | ||
| + | #include < | ||
| + | cv:: | ||
| + | inputVideo.open(0); | ||
| + | cv:: | ||
| + | cv:: | ||
| + | cv:: | ||
| - | + | while (inputVideo.grab()) { | |
| - | + | | |
| - | + | | |
| - | < | + | image.copyTo(imageCopy); |
| + | | ||
| + | std:: | ||
| + | detector.detectMarkers(image, | ||
| + | // if at least one marker detected | ||
| + | if (ids.size() > 0) | ||
| + | cv:: | ||
| + | cv:: | ||
| + | char key = (char) cv:: | ||
| + | if (key == 27) | ||
| + | break; | ||
| + | } | ||
| + | </ | ||
| #include < | #include < | ||
| cv:: | cv:: | ||
| Line 122: | Line 147: | ||
| break; | break; | ||
| } | } | ||
| - | </ | + | </ |