dx201.cpp File Reference

Simple test of LTKCPP that talks to an actual reader. More...

#include <stdio.h>
#include "ltkcpp.h"

Go to the source code of this file.

Functions

int main (int ac, char *av[])
 Command main routine.
void usage (char *pProgName)
 Print usage message and exit.


Detailed Description

Simple test of LTKCPP that talks to an actual reader.

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

DX201 controls an LLRP reader to do a very simple operation.

It is best to be sure DX10x tests work properly before trying this test. The one facility DX201 uses that the DX10x tests don't is the connection management interface (LLRP::CConnection).

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

This program can be run with zero, one, or two verbose options (-v). no -v -- Only prints the tag report and errors -v -- Also prints one line progress messages -vv -- Also prints all LLRP messages as XML text

This is a test of LTKCPP and also a reasonable example to help people get started with LTKCPP.

Definition in file dx201.cpp.


Function Documentation

int main ( int  ac,
char *  av[] 
)

Command main routine.

Command synopsis:

dx201 [-v[v]] READERHOSTNAME

Options: -v Verbose, each -v increments verbosity -q Quiet, don't print tag reports (used for characterization) -012345 Select mode, if not given the default mode is used

0 Everything *seemed* to work. 1 Bad usage 2 Run failed

Command synopsis:

dx101 INPUTFILE

0 Everything *seemed* to work. 1 Bad usage 2 Could not open input file

Definition at line 131 of file llrp2xml.cpp.

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

void usage ( char *  pProgName  ) 

Print usage message and exit.

Parameters:
[in] nProgName Program name string
Returns:
none, exits


Generated on Wed Jun 6 11:55:49 2012 for LTKCPP-- LLRP Toolkit C Plus Plus Library by  doxygen 1.5.9