example1.cpp File Reference

Simple example 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 example of LTKCPP that talks to an actual reader.

This is sometimes called the "LLRP Hello World" program

The steps:

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

Definition in file example1.cpp.


Function Documentation

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

Command main routine.

Command synopsis:

example1 [-v[v]] READERHOSTNAME

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

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 165 of file example1.cpp.

References usage().

void usage ( char *  pProgName  ) 

Print usage message and exit.

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

Definition at line 247 of file example1.cpp.

Referenced by main().


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