Crombie Tools
crombie::FileConfig Namespace Reference

Classes

class  DirectoryInfo
 Holds information for the files to run over as well as relevant processes. More...
 
class  FileConfig
 A single object that holds all of the information about the files to run on. More...
 
class  FileInfo
 Hold the necessary information for running over a single file. More...
 
struct  Process
 The processes that a directory can be divided between. More...
 

Typedefs

template<typename M >
using MapFunc = std::function< M(const FileInfo &)>
 The type that is used for the mapping function. More...
 
template<typename R , typename M >
using MergeFunc = std::function< R(const ToMerge< M > &)>
 A functional type that is not necessary, but might be a useful shortcut. More...
 
template<typename M >
using ToMerge = Types::map< std::list< M >>
 The parameter passed to the FileConfig::runfiles reduce function. More...
 

Enumerations

enum  Type { Type::Data, Type::Background, Type::Signal }
 The kinds of processes. More...
 

Functions

bool operator< (const FileInfo &a, const FileInfo &b)
 Compares FileInfo objects based on the size of the files; used for queue priority. More...
 
std::istream & operator>> (std::istream &is, FileConfig &config)
 
FileConfig read (const std::string &indir, const std::string &config)
 Reads a configuration file for file info. More...
 

Typedef Documentation

§ MapFunc

template<typename M >
using crombie::FileConfig::MapFunc = typedef std::function<M(const FileInfo&)>

The type that is used for the mapping function.

Definition at line 136 of file FileConfig.h.

§ MergeFunc

template<typename R , typename M >
using crombie::FileConfig::MergeFunc = typedef std::function<R(const ToMerge<M>&)>

A functional type that is not necessary, but might be a useful shortcut.

Parameters
RThe output of the reduction formula
MThe output of the map formula

Definition at line 149 of file FileConfig.h.

§ ToMerge

template<typename M >
using crombie::FileConfig::ToMerge = typedef Types::map<std::list<M>>

The parameter passed to the FileConfig::runfiles reduce function.

Parameters
Mis the type given by a SingleOut mapping function

Definition at line 142 of file FileConfig.h.

Enumeration Type Documentation

§ Type

The kinds of processes.

Enumerator
Data 
Background 
Signal 

Definition at line 45 of file FileConfig.h.

Function Documentation

§ operator<()

bool crombie::FileConfig::operator< ( const FileInfo a,
const FileInfo b 
)

Compares FileInfo objects based on the size of the files; used for queue priority.

Definition at line 309 of file FileConfig.h.

References crombie::FileConfig::FileInfo::size.

§ operator>>()

§ read()

FileConfig crombie::FileConfig::read ( const std::string &  indir,
const std::string &  config 
)

Reads a configuration file for file info.

Definition at line 196 of file FileConfig.h.

References hadd::input.