00001 #ifndef BspGetRequest_HPP 00002 #define BspGetRequest_HPP 00003 00010 class BspGetRequest{ 00011 00012 00013 private: 00014 00015 int pid_; 00017 int logicSrc_; 00019 int offset_; 00022 int nBytes_; 00023 int superstep_; 00026 void * dst_; 00028 public: 00029 00033 BspGetRequest & pid(const int & aPid){ 00034 pid_ = aPid; 00035 return (*this); 00036 } 00037 00041 BspGetRequest & logicSrc(const int & aLogicSrc){ 00042 logicSrc_ = aLogicSrc; 00043 return (*this); 00044 } 00045 00049 BspGetRequest & dst(void * aDst){ 00050 dst_ = aDst; 00051 return (*this); 00052 } 00053 00057 BspGetRequest & offset(const int & aOffset){ 00058 offset_ = aOffset; 00059 return (*this); 00060 } 00061 00065 BspGetRequest & nBytes(const int & aNBytes){ 00066 nBytes_ = aNBytes; 00067 return (*this); 00068 } 00069 00073 BspGetRequest & superstep(const int & aSuperstep){ 00074 superstep_ = aSuperstep; 00075 return (*this); 00076 } 00077 00078 //Getters--------------------------------------------------------------------- 00079 00083 int pid() const{ return pid_; } 00084 00088 int logicSrc() const{ return logicSrc_; } 00089 00093 void * dst() const{return dst_;} 00094 00098 int offset() const{ return offset_; } 00099 00103 int nBytes() const{ return nBytes_; } 00104 00108 int superstep() const{ return superstep_; } 00109 00110 00111 //Other Methods--------------------------------------------------------------- 00112 00113 00120 // void dump () const{ 00121 // 00122 // cerr << "logicSrc: " << logicSrc_ << endl 00123 // << "offset: " << offset_ << endl 00124 // << "nBytes: " << nBytes_ << endl 00125 // << "superStep: " << superStep_ << endl 00126 // << "memArea: "; 00127 // } 00128 00129 }; 00130 00131 #endif//BspGetRequest_HPP