LTKCPP-- LLRP Toolkit C Plus Plus Library
Macros | Functions | Variables
llrp2xml.cpp File Reference

Converts a directory of LLRP binary packet files to LTK-XML files. More...

#include <stdio.h>
#include "ltkcpp.h"
#include "impinj_ltkcpp.h"
#include "impinjinternal_ltkcpp.h"
#include "dirent.h"
#include "sys/stat.h"

Go to the source code of this file.

Macros

#define MAX_PATH_LEN   (256)
 

Functions

void convertFile (char *ifile, char *ofile)
 
void convertDirEntry (char *idir, char *odir, struct dirent *ep)
 
int main (int ac, char *av[])
 

Variables

CTypeRegistrypTypeRegistry
 
char pathSeparator = '/'
 

Detailed Description

Converts a directory of LLRP binary packet files to LTK-XML files.

This is diagnostic 01 for the LLRP Tool Kit for C++ (LTKCPP).

llrp2xml reads all the .bin files from a directory passed on the command line and coverts them all to .xml LTK-XML files in the specified output directory. For each input frame:

This program can be tested using tools like valgrind (please see http://en.wikipedia.org/wiki/Valgrind) that detect memory leaks.

Definition in file llrp2xml.cpp.

Function Documentation

◆ convertFile()

void convertFile ( char *  ifile,
char *  ofile 
)

Converts a file in LLRP Binary format to a file in LTK-XML format and writes to the output file string. ifile – a string containing the path and file name of the input LLRP Binary file ofile – a string containing the path and file name of the output LTK-XML file

Returns
– nothing

Definition at line 78 of file llrp2xml.cpp.

References LLRP::CErrorDetails::m_eResultCode, LLRP::CTypeDescriptor::m_pName, LLRP::CFieldDescriptor::m_pName, LLRP::CErrorDetails::m_pRefField, and LLRP::CErrorDetails::m_pRefType.