Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

jobc Namespace Reference

messier@indiana.edu///////////////////////////////////////////////////////////////////// More...


Classes

class  jobc::CmdLine
 Encapsulate the list of options set from the command line. More...
class  jobc::Exception
 A standard exception to be thrown by reconstruction code. More...
class  jobc::HistoFile
 Provide uniform interface and access to the histogram file. More...
class  jobc::Job
 Encapsulate a reconstruction job. More...
class  jobc::Module
 Base class for a basic unit of reconstruction and analysis code. More...
class  jobc::ModuleFactory
 Create job modules by name. More...
class  jobc::Node
 A node is the smallest unit of analysis and/or reconstruction code that defines a job. More...
class  jobc::Resource
 Summary of system resources. More...
class  jobc::ResourceSummary
 A module to summarize CPU and memory resources used by a job. More...
class  jobc::SeqTable
 Table of sequences indexed by their names. More...
class  jobc::Sequence
 A sequence is a set of nodes that are executed together as if they were a single node. More...
class  jobc::Stack
 The list of jobs to be executed when the program runs. More...
class  jobc::jobBuilder
class  jobc::jobdocBuilder
class  jobc::linkBuilder
class  jobc::nodeBuilder
class  jobc::sequenceBuilder

Typedefs

typedef int Result
typedef Module *(* ModuleMaker_t )(const char *version)

Functions

std::string XMLConfiguration ()

Variables

const int kPassed = 1
const int kFailed = 0


Detailed Description

messier@indiana.edu/////////////////////////////////////////////////////////////////////

Typedef Documentation

typedef Module*(* jobc::ModuleMaker_t)(const char *version)
 

Definition at line 23 of file fmwk/JobControl/Module.h.

Referenced by jobc::Node::GetModule(), and jobc::ModuleFactory::LookUp().

typedef int jobc::Result
 

Definition at line 18 of file fmwk/JobControl/Module.h.

Referenced by jobc::ResourceSummary::Ana(), and jobc::Node::Exec().


Function Documentation

std::string jobc::XMLConfiguration  ) 
 

Dump a complete xml string that encapsulates how this job was configured

Definition at line 45 of file jobc.cxx.

References jobc::Stack::GetList(), jobc::SeqTable::GetMap(), jobc::Stack::Instance(), jobc::SeqTable::Instance(), cfg::Table::Instance(), and list_libs().

Referenced by main().

00045                                {
00046     std::ostringstream xml;
00047 
00048     xml << "<jobdoc>\n";
00049     
00050     // Dump the list of linked libraries
00051     xml << "<link>\n";
00052     list_libs(xml);
00053     xml << "</link>\n";
00054     
00055     // Find all the configurations that have been loaded
00056     const cfg::Table::ConfigList&
00057       cfglst = cfg::Table::Instance().GetList();
00058     cfg::Table::ConfigList::const_iterator ic(cfglst.begin());
00059     cfg::Table::ConfigList::const_iterator icEnd(cfglst.end());
00060     for (; ic!=icEnd; ++ic) xml << (*ic)->AsXML();
00061 
00062     // Find all the sequences that have been defined
00063     const jobc::SeqTable::SeqTable_t& 
00064       seqmap = jobc::SeqTable::Instance().GetMap();
00065     jobc::SeqTable::SeqTable_t::const_iterator is(seqmap.begin());
00066     jobc::SeqTable::SeqTable_t::const_iterator isEnd(seqmap.end());
00067     for (; is!=isEnd; ++is) xml << is->second.AsXML();
00068     
00069     // Find all the jobs that have been defined
00070     const jobc::Stack::JobList&
00071       joblst = jobc::Stack::Instance().GetList();
00072     jobc::Stack::JobList::const_iterator ij(joblst.begin());
00073     jobc::Stack::JobList::const_iterator ijEnd(joblst.end());
00074     for (; ij!=ijEnd; ++ij) xml << (*ij)->AsXML();
00075     
00076     xml << "</jobdoc>" << std::endl;
00077 
00078     return xml.str();
00079   }


Variable Documentation

const int jobc::kFailed = 0 [static]
 

Definition at line 20 of file fmwk/JobControl/Module.h.

const int jobc::kPassed = 1 [static]
 

Definition at line 19 of file fmwk/JobControl/Module.h.


Generated on Sun Nov 22 04:45:31 2009 for NOvA Offline by  doxygen 1.3.9.1