Jump to content

LibMISB/Examples/Library basic usage: Difference between revisions

Line 7: Line 7:
This library has an example that you can execute. This example is a metadata converter that can encode or decode metadata. If you want to encode, the input file must respect one of the formats developed (only JSON format is currently supported) and will return a binary file with metadata encoded. On the other hand, if you want to decode the program receives a binary file and converts it to the format file selected (only JSON format is currently supported).  
This library has an example that you can execute. This example is a metadata converter that can encode or decode metadata. If you want to encode, the input file must respect one of the formats developed (only JSON format is currently supported) and will return a binary file with metadata encoded. On the other hand, if you want to decode the program receives a binary file and converts it to the format file selected (only JSON format is currently supported).  


The executable is located on /misb-library/examples/misb/ or if you want to compile and execute the example file out of the project. The path of the example is located on /misb-library/examples/misb/misb-converter.cpp. To compile the example we suggest you follow the next Makefile:  
The executable is located on <code>/misb-library/examples/misb/</code> or if you want to compile and execute the example file out of the project. The path of the example is located on <code>/misb-library/examples/misb/misb-converter.cpp</code>. To compile the example we suggest you follow the next Makefile:  
<syntaxhighlight lang=Makefile>
<syntaxhighlight lang=Makefile>
FLAGS:=`pkg-config --cflags --libs misb-0.0`
FLAGS:=`pkg-config --cflags --libs misb-0.0`
437

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.