00001 /* @version $Revision: 1328 $ * @modifiedby $Author: jacquem $ * @lastmodified $Date: 2011-10-03 17:04:17 +0200 (Mon, 03 Oct 2011) $ */ 00002 #include "geometry/DifSoftId.hh" 00003 00004 using namespace std; 00005 00006 00007 00008 DifSoftId::DifSoftId():chamberId(0),difId(0) 00009 { 00010 00011 } 00012 00013 00014 DifSoftId::DifSoftId(const DifSoftId& orig) 00015 { 00016 chamberId = orig.chamberId; 00017 difId = orig.difId; 00018 } 00019 00020 00021 DifSoftId::~DifSoftId() 00022 { 00023 00024 } 00025 00026 void DifSoftId::SetValue(unsigned int _chamberId,unsigned int _difId) 00027 { 00028 chamberId = _chamberId; 00029 difId = _difId; 00030 } 00031 00032 string DifSoftId::toString( ) const 00033 { 00034 00035 string result; 00036 stringstream schamberId,sdifId, schipId,srow,scol;// (stringstream::in | stringstream::out); 00037 00038 schamberId<<chamberId; 00039 result="chamber["+schamberId.str(); 00040 sdifId<<difId; 00041 result+="]dif["+sdifId.str()+ "]"; 00042 00043 return result; 00044 00045 }