LTKCPP-- LLRP Toolkit C Plus Plus Library
|
Converts a directory of LLRP binary packet files to LTK-XML files. More...
Go to the source code of this file.
Defines | |
#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 | |
CTypeRegistry * | pTypeRegistry |
char | pathSeparator = '/' |
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.
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
Definition at line 78 of file llrp2xml.cpp.
References enrollImpinjTypesIntoRegistry(), LLRP::CErrorDetails::m_eResultCode, LLRP::CFieldDescriptor::m_pName, LLRP::CTypeDescriptor::m_pName, LLRP::CErrorDetails::m_pRefField, LLRP::CErrorDetails::m_pRefType, and main().
Referenced by convertFile().