/search.css" rel="stylesheet" type="text/css"/> /search.js">
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

In This Package:

Public Member Functions | Public Attributes
PerJobInfo Class Reference

#include <PerJobInfo.h>

Collaboration diagram for PerJobInfo:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 PerJobInfo ()
 PerJobInfo (const DayaBay::JobId &jobId, const std::map< std::string, std::string > &parameters)
virtual ~PerJobInfo ()
unsigned int size ()
std::string name (unsigned int index)
std::string value (unsigned int index)
std::string infoString ()

Public Attributes

DayaBay::JobId jobId
std::map< std::string,
std::string > 
parameters

Detailed Description

Definition at line 17 of file PerJobInfo.h.


Constructor & Destructor Documentation

PerJobInfo::PerJobInfo ( )

Definition at line 5 of file PerJobInfo.cc.

  :  jobId(),
     parameters()
{
}
PerJobInfo::PerJobInfo ( const DayaBay::JobId jobId,
const std::map< std::string, std::string > &  parameters 
)

Definition at line 11 of file PerJobInfo.cc.

  : jobId(jobId),
    parameters(parameters)
{
}
PerJobInfo::~PerJobInfo ( ) [virtual]

Definition at line 18 of file PerJobInfo.cc.

{
}

Member Function Documentation

unsigned int PerJobInfo::size ( )

Definition at line 22 of file PerJobInfo.cc.

                             { 
  return parameters.size();
}
std::string PerJobInfo::name ( unsigned int  index)

Definition at line 26 of file PerJobInfo.cc.

                                            { 
  // Return the parameter name
  if(index>=parameters.size()) return "";
  std::map<std::string,std::string>::const_iterator pIter = parameters.begin();
  for(unsigned int i=0; i<index; i++) pIter++;
  return pIter->first;
}
std::string PerJobInfo::value ( unsigned int  index)

Definition at line 34 of file PerJobInfo.cc.

                                             {
  // Return the parameter index
  if(index>=parameters.size()) return "";
  std::map<std::string,std::string>::const_iterator pIter = parameters.begin();
  for(unsigned int i=0; i<index; i++) pIter++;
  return pIter->second;
}
std::string PerJobInfo::infoString ( )

Definition at line 42 of file PerJobInfo.cc.

                                {
  // Dump the parameters to a single string
  std::ostringstream params;
  params << "'jobId':'" << jobId.uuid() << "'\n";
  std::map<std::string,std::string>::const_iterator pIter, 
    pDone = parameters.end();
  for(pIter=parameters.begin(); pIter!=pDone; pIter++){
    params << "'" << pIter->first << "':'" << pIter->second << "'\n";
  }
  return params.str();
}

Member Data Documentation

Definition at line 29 of file PerJobInfo.h.

std::map<std::string, std::string> PerJobInfo::parameters

Definition at line 30 of file PerJobInfo.h.


The documentation for this class was generated from the following files:
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

Generated on Fri May 16 2014 09:59:17 for PerJobInfo by doxygen 1.7.4