315
edits
mNo edit summary |
|||
Line 446: | Line 446: | ||
As seen here some extra flags can be present after the decoding process since the encoding might add required tags to the encoding. | As seen here some extra flags can be present after the decoding process since the encoding might add required tags to the encoding. | ||
=== API example === | |||
To test the encoding and decoding functionality using the internal API with the Metadata class and not using input and output files, you can execute the following command: | |||
<syntaxhighlight lang="bash"> | |||
./misb-converter-API | |||
</syntaxhighlight> | |||
Once the command is executed, the encoded bytes and the tags after the decoding process will be shown. | |||
<syntaxhighlight> | |||
INFO Encoded bytes: 6 e 2b 34 2 b 1 1 e 1 3 1 1 0 0 0 43 2 8 0 4 59 f9 ae 20 22 a8 3 9 4d 49 53 53 49 4f 4e 30 31 4 6 41 46 2d 31 30 31 5 2 6b 6 30 19 2 1 1 4 14 54 53 2f 53 49 2f 43 6f 6d 70 61 72 74 6d 65 6e 74 41 2f 2f 41 1 13 1 2 4d 69 | |||
INFO Decoded tags: {tag: 2, value: Oct. 24, 2008. 00:13:29.913}, {tag: 3, value: MISSION01}, {tag: 4, value: AF-101}, {tag: 5, value: 150.504005}, {tag: 48, value: [ {tag: 2, value: 1}, {tag: 4, value: TS/SI/CompartmentA//},]}, {tag: 65, value: 19}, | |||
</syntaxhighlight> | |||
== Logging == | == Logging == |
edits