File: list-program.rst

package info (click to toggle)
odc 1.4.6-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 3,060 kB
  • sloc: cpp: 22,074; f90: 3,707; sh: 999; ansic: 471; python: 382; makefile: 39
file content (61 lines) | stat: -rw-r--r-- 1,834 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
Data Listing
============

Shown below is a simple program that decodes all the data in an ODB-2 file and outputs it to stdout.

.. tabs::

   .. group-tab:: C

      .. literalinclude:: ../../../tests/c_api/odc_ls.c
         :language: c
         :class: copybutton


      To use this sample program, invoke it from the command line with a path to an ODB-2 file:

      .. code-block:: none

         ./odc-c-ls example.odb

         1. int_column	2. real_column	3. str8_column	4. str16_column      	5. bitfield_column
         1       	1.200000	abcdefgh	abcdefghijklmnop	0000001
         2       	3.400000	01234567	0123456789012345	0001011
         3       	5.600000	string  	another string  	1101011


   .. group-tab:: C++

      .. literalinclude:: ../../../tests/api/odc_ls.cc
         :language: cpp
         :class: copybutton


      To use this sample program, invoke it from the command line with a path to an ODB-2 file:

      .. code-block:: none

         ./odc-cpp-ls example.odb

         1. int_column	2. real_column	3. str8_column	4. str16_column      	5. bitfield_column
         1       	1.2     	abcdefgh	abcdefghijklmnop	0000001
         2       	3.4     	01234567	0123456789012345	0001011
         3       	5.6     	string  	another string  	1101011

   .. group-tab:: Fortran

      .. literalinclude:: ../../../tests/f_api/odc_ls.f90
         :language: fortran
         :class: copybutton


      To use this sample program, invoke it from the command line with a path to an ODB-2 file:

      .. code-block:: none

         ./odc-fortran-ls example.odb

         1. int_column	2. real_column	3. str8_column	4. str16_column		5. bitfield_column
         1		1.2000		abcdefgh	abcdefghijklmnop	0000001
         2		3.4000		01234567	0123456789012345	0001011
         3		5.6000		string  	another string  	1101011