JobCommand.cxx File Reference

#include <cstdlib>
#include "JobControl/JobCommand.h"
#include "MessageService/MsgService.h"
#include "Registry/Registry.h"

Go to the source code of this file.

Functions

 CVSID ("$Id: JobCommand.cxx,v 1.24 2009/07/24 07:52:19 nwest Exp $")
ostream & operator<< (ostream &os, const JobCommand &jc)

Function Documentation

CVSID ( "$Id: JobCommand.  cxx,
v 1.24 2009/07/24 07:52:19 nwest Exp $"   
)
ostream& operator<< ( ostream &  os,
const JobCommand jc 
)

Definition at line 19 of file JobCommand.cxx.

References JobCommand::fCmdList, and JobCommand::fOptList.

00020 {
00021   vector<string>::const_iterator itrend(jc.fCmdList.end());
00022   vector<string>::const_iterator itr;
00023   bool ifirst = true;
00024   for (itr = jc.fCmdList.begin(); itr!= itrend; ++itr) {
00025     if (ifirst) { os << (*itr); ifirst = false; }
00026     else os << "/" << (*itr);
00027   }
00028   itrend = jc.fOptList.end();
00029   for (itr = jc.fOptList.begin(); itr!= itrend; ++itr) {
00030     os << " " << (*itr);
00031   }
00032   return os;
00033 }


Generated on 24 Apr 2018 for loon by  doxygen 1.6.1