#include "IIntegerDatum.hxx" ClassImp(COMET::IIntegerDatum); COMET::IIntegerDatum::IIntegerDatum() : COMET::IDatum("unnamed","Integer Value") { fValue.push_back(0); } COMET::IIntegerDatum::IIntegerDatum(const char *name, int value) : COMET::IDatum(name,"Integer Value") { fValue.push_back(value); } COMET::IIntegerDatum::IIntegerDatum(const char *name, const char* title, int value) : COMET::IDatum(name,title) { fValue.push_back(value); } COMET::IIntegerDatum::IIntegerDatum(const IIntegerDatum& rhs) : COMET::IDatum(rhs.GetName(),rhs.GetTitle()), fValue(rhs.fValue) {} COMET::IIntegerDatum::~IIntegerDatum() {} int COMET::IIntegerDatum::GetValue(void) const {return fValue.front();} void COMET::IIntegerDatum::SetValue(int v) {fValue.front() = v;} std::vector& COMET::IIntegerDatum::GetVector(void) {return fValue;} const std::vector& COMET::IIntegerDatum::GetVector(void) const {return fValue;} void COMET::IIntegerDatum::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; }