NSCL DDAS  1.0
Support for XIA DDAS at the NSCL
 All Classes Namespaces Files Functions Variables Macros Pages
Public Member Functions | Protected Member Functions | List of all members
BufdumpMain Class Reference

#include <BufdumpMain.h>

Public Member Functions

 BufdumpMain ()
 
virtual ~BufdumpMain ()
 
int operator() (int argc, char **argv)
 

Protected Member Functions

 BufdumpMain (const BufdumpMain &rhs)
 
BufdumpMainoperator= (const BufdumpMain &rhs)
 
int operator== (const BufdumpMain &rhs) const
 
int operator!= (const BufdumpMain &rhs) const
 

Detailed Description

This class is the actual dumper program. It defines a function object type that can be created and invoked from main() to do the job of dumping items from some item source on stdout.

See dumperargs.ggo for information about the switches etc. recognized by this program/object.

Constructor & Destructor Documentation

BufdumpMain::BufdumpMain ( )

Construct the object. No real action occurs until the operator() is called, as all of the interseting data must be determined by parsing the command line arguments.

BufdumpMain::~BufdumpMain ( )
virtual

Destroy the object:

Member Function Documentation

int BufdumpMain::operator() ( int  argc,
char **  argv 
)

Entry point for the dumper.

  • Parse the arguments.
  • Open the data source.
  • Accept items from the ring and dump them to stdout.
Parameters
argcNumber of command line arguments.
argvArray of pointers to command line arguments.
Returns
int
Return values
EXIT_SUCCESS- Successful execution
EXIT_FAILURE- Some problem.. or may just exit.

The documentation for this class was generated from the following files: