Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

moot::cmdutil_file_churner Class Reference

Class for churning through many input files, given either directly or as a list-file.

#include <mootUtils.h>

Collaboration diagram for moot::cmdutil_file_churner:

Collaboration graph
[legend]
List of all members.

Public Methods

Public Attributes

Private Methods

Private Attributes


Constructor & Destructor Documentation

moot::cmdutil_file_churner::cmdutil_file_churner char *    my_progname = 0,
char **    my_inputs = 0,
int    my_ninputs = 0,
bool    my_use_list = false,
bool    my_paranoid = true
[inline]
 

Constructor

moot::cmdutil_file_churner::~cmdutil_file_churner   [inline]
 

Destructor


Member Function Documentation

FILE* moot::cmdutil_file_churner::first_input_file  
 

Step to the first (valid) input file; returns NULL if no input files were given : OBSOLETE: use next_input_file() instead.

std::string& moot::cmdutil_file_churner::first_input_name  
 

Step to the first (valid) input file, without opening it : OBSOLETE: use next_input_name() instead.

FILE* moot::cmdutil_file_churner::next_input_file  
 

Step the the next input file: returns NULL if no input files are left

std::string& moot::cmdutil_file_churner::next_input_name  
 

Step the the next input file, without opening it

FILE* moot::cmdutil_file_churner::next_list_file   [private]
 

Step the the next input-list filename (list mode): returns NULL if no input files are left


Member Data Documentation

mifstream moot::cmdutil_file_churner::in
 

Current real input file, wrapped

char** moot::cmdutil_file_churner::inputs
 

Input files/file-lists to be chruned (i.e. argv)

bool moot::cmdutil_file_churner::is_first_input [private]
 

true until next_input_name() has been called at least once

std::string moot::cmdutil_file_churner::line
 

Input line buffer

mifstream moot::cmdutil_file_churner::list
 

Current list input file, if in list-mode

int moot::cmdutil_file_churner::ninputs
 

Number of inputs given (i.e. argc)

bool moot::cmdutil_file_churner::paranoid
 

Whether to abort() for unreadable files

char* moot::cmdutil_file_churner::progname
 

Name of the running program (for error reporting)

bool moot::cmdutil_file_churner::use_list
 

Whether inputs are filenames or list-filenames


The documentation for this class was generated from the following file:
Generated on Mon Sep 11 16:10:35 2006 for libmoot by doxygen1.2.18