Back to index

nordugrid-arc-nox  1.1.0~rc6
job_request.cpp
Go to the documentation of this file.
00001 #ifdef HAVE_CONFIG_H
00002 #include <config.h>
00003 #endif
00004 
00005 #include "job_request.h"
00006 
00007 namespace Paul {
00008 
00009 JobRequest::JobRequest() 
00010 {
00011     // NOP
00012 }
00013 
00014 JobRequest::~JobRequest() 
00015 {
00016     // NOP
00017 }
00018 
00019 JobRequest::JobRequest(Arc::XMLNode &r) 
00020 {
00021     r.New(request);
00022 }
00023 
00024 JobRequest::JobRequest(const JobRequest &j) 
00025 {
00026     j.request.New(request);
00027 }
00028 
00029 const std::string JobRequest::getName(void) { 
00030     return (std::string)request["JobDefinition"]["JobDescription"]["JobIdentification"]["JobName"];  
00031 }
00032 
00033 const std::string JobRequest::getOS(void) { 
00034     return (std::string)request["JobDefinition"]["Resources"]["OperatingSystem"]["OperatingSystemType"]["OperatingSystemName"]; 
00035 }
00036  
00037  
00038 const std::string JobRequest::getArch(void) { 
00039     return (std::string)request["JobDefinition"]["Resources"]["CPUArchitecture"]["CPUArchitectureName"]; 
00040 }
00041 
00042 JobRequest &JobRequest::operator=(const JobRequest &j) 
00043 {
00044    if (this != &j) {
00045      j.request.New(request);
00046    }
00047 
00048    return *this;
00049 }
00050 
00051 } //namespace