00001 #include "TestDataWrapper.h" 00002 #include "Sct/LogicErrors.h" 00003 #include "CalibrationController/IS/TestData.h" 00004 00005 namespace SctCalibrationController { 00006 std::string TestDataWrapper::getClassName() const{ 00007 return "TestData"; 00008 } 00009 00010 Sct::UniqueID TestDataWrapper::getUniqueID() const { 00011 shared_ptr<const TestData> wrapped = boost::dynamic_pointer_cast<const TestData>(getWrapped()); 00012 if (!wrapped.get()) throw Sct::IllegalStateError("No wrapped object",__FILE__,__LINE__); 00013 return Sct::UniqueID(wrapped->runNumber, wrapped->startScanNumber, wrapped->testName); 00014 } 00015 00016 TestDataWrapper::TestDataWrapper(boost::shared_ptr<TestData> td) : IsInfoWrapper(td) { 00017 } 00018 }