LCIO  02.17
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes | Functions | Variables
lcio_check_col_elements.cc File Reference
#include <getopt.h>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <string>
#include <vector>
#include <sstream>
#include <cmath>
#include "lcio.h"
#include "IO/LCReader.h"
#include "IMPL/LCTOOLS.h"
#include "IMPL/LCCollectionVec.h"
+ Include dependency graph for lcio_check_col_elements.cc:

Go to the source code of this file.

Classes

struct  opts_t
 

Functions

void display_usage (const char *progName, const std::string &errmsg="")
 
void showopts (void)
 
int main (int argc, char **argv)
 

Variables

struct opts_t opts
 
static const int min_args = 2
 
static const char * optString = "s:n:x:m:M:pavh?"
 
static struct option longOpts []
 

Function Documentation

void display_usage ( const char *  progName,
const std::string errmsg = "" 
)

Definition at line 89 of file lcio_check_col_elements.cc.

References std::endl(), std::exit(), and std::stringstream::str().

Referenced by main().

int main ( int  argc,
char **  argv 
)
void showopts ( void  )

Variable Documentation

struct option longOpts[]
static
Initial value:
= {
{ "verbose", no_argument, NULL, 'v' },
{ "pedantic", no_argument, NULL, 'p' },
{ "average", no_argument, NULL, 'a' },
{ "startevent", required_argument, NULL, 's' },
{ "maxevents", required_argument, NULL, 'n' },
{ "expelements", required_argument, NULL, 'x' },
{ "minelements", required_argument, NULL, 'm' },
{ "maxelements", required_argument, NULL, 'M' },
{ "abselementerror", required_argument, NULL, 0 },
{ "abseventerror", required_argument, NULL, 0 },
{ "relelementerror", required_argument, NULL, 0 },
{ "releventerror", required_argument, NULL, 0 },
{ "help", no_argument, NULL, 'h' },
{ NULL, no_argument, NULL, 0 }
}

Definition at line 70 of file lcio_check_col_elements.cc.

Referenced by main().

const int min_args = 2
static

Definition at line 63 of file lcio_check_col_elements.cc.

Referenced by main().

struct opts_t opts

Referenced by main(), and showopts().

const char* optString = "s:n:x:m:M:pavh?"
static

Definition at line 67 of file lcio_check_col_elements.cc.

Referenced by main().