#include "honlineparameter.h" #include "TClass.h" #include using namespace std; //_HADES_CLASS_DESCRIPTION //////////////////////////////////////////////////////////////////////////// // HOnlineParameter // virtual base class for server client communication via parameter // objects. // updateFrom() copies content from a received object to an local object // clear() clear the parameter of the object // print() print parameters // execute() execute actions on the receiver side //////////////////////////////////////////////////////////////////////////// HOnlineParameter::HOnlineParameter(const char* name) : TNamed(name, "This is a Parameter Object") { } HOnlineParameter::HOnlineParameter(const char* name, const char* title) : TNamed(name, title) { } HOnlineParameter::HOnlineParameter() { } HOnlineParameter::~HOnlineParameter() { } void HOnlineParameter::print(Option_t* dummy) { } Bool_t HOnlineParameter::updateFrom(HOnlineParameter* rhs) { if(rhs) return kFALSE; // this method should better be pure virtual. // however, we have to implement dummy for root // to let it clone and stream this with baseclass type cout << "ERROR: HOnlineParameter::updateFrom() not implemented!!!" << endl; cout << "Please overwrite virtual method in your class: "; cout << this->IsA()->GetName() << endl; return kFALSE; } void HOnlineParameter::clear(Option_t* opt) { // dummy clear, may be implemented by user cout << "ERROR: HOnlineParameter::clear() not implemented!!!" << endl; cout << "Please overwrite virtual method in your class: "; cout << this->IsA()->GetName() << endl; } void HOnlineParameter::execute() { // dummy clear, may be implemented by user cout << "ERROR: HOnlineParameter::execute() not implemented!!!" << endl; cout << "Please overwrite virtual method in your class: "; cout << this->IsA()->GetName() << endl; } ClassImp(HOnlineParameter)