#include "IRealDatum.hxx" ClassImp(COMET::IRealDatum); COMET::IRealDatum::IRealDatum() : COMET::IDatum("unnamed","Real Value") { fValue.push_back(0); } COMET::IRealDatum::IRealDatum(const char *name, double value) : COMET::IDatum(name,"Real Value") { fValue.push_back(value); } COMET::IRealDatum::IRealDatum(const char *name, const char* title, double value) : COMET::IDatum(name,title) { fValue.push_back(value); } COMET::IRealDatum::IRealDatum(const IRealDatum& rhs) : COMET::IDatum(rhs.GetName(),rhs.GetTitle()), fValue(rhs.fValue) {} COMET::IRealDatum::~IRealDatum() {} double COMET::IRealDatum::GetValue(void) const {return fValue.front();} void COMET::IRealDatum::SetValue(double v) {fValue.front() = v;} void COMET::IRealDatum::ls(Option_t* opt) const { ls_header(this, opt); for (std::vector::const_iterator v = fValue.begin(); v != fValue.end(); ++v) { std::cout << " " << *v; } std::cout << std::endl; }