ROOT logo
//*-- AUTHOR : Ilse Koenig
//*-- Created : 04/09/2004 by Ilse Koenig

//_HADES_CLASS_DESCRIPTION 
//////////////////////////////////////////////////////////////////////////////
//
// HOraSlowChanMeta
//
// Class for the slowcontrol meta data of a channel
//
//////////////////////////////////////////////////////////////////////////////

#include "horaslowchanmeta.h"

ClassImp(HOraSlowChanMeta)

HOraSlowChanMeta::HOraSlowChanMeta() {
  // Default constructor
  clear();
}

void HOraSlowChanMeta::clear() {
  // Clears the data
  lowGraphLimit=highGraphLimit=lowWarnLimit=highWarnLimit=lowAlarmLimit=highAlarmLimit=0.;
  units="";
  precision=0;
  startTime="";
}

void HOraSlowChanMeta::print() {
  // Prints the data to stdout
  cout<<"Start Time:         "<<startTime<<'\n';
  cout<<"Low Graph Limit:    "<<lowGraphLimit<<'\n';
  cout<<"High Graph Limit:   "<<highGraphLimit<<'\n';
  cout<<"Low Warning Limit:  "<<lowWarnLimit<<'\n';
  cout<<"High Warning Limit: "<<highWarnLimit<<'\n';
  cout<<"Low Alarm Limit:    "<<lowAlarmLimit<<'\n';
  cout<<"High Alarm Limit:   "<<highAlarmLimit<<'\n';
  cout<<"Units:              "<<units<<'\n';
  cout<<"Precision:          "<<precision<<'\n'<<'\n';
}

void HOraSlowChanMeta::write(fstream& fout) {
  // Streams the data
  fout<<"Start Time:         "<<startTime<<'\n';
  fout<<"Low Graph Limit:    "<<lowGraphLimit<<'\n';
  fout<<"High Graph Limit:   "<<highGraphLimit<<'\n';
  fout<<"Low Warning Limit:  "<<lowWarnLimit<<'\n';
  fout<<"High Warning Limit: "<<highWarnLimit<<'\n';
  fout<<"Low Alarm Limit:    "<<lowAlarmLimit<<'\n';
  fout<<"High Alarm Limit:   "<<highAlarmLimit<<'\n';
  fout<<"Units:              "<<units<<'\n';
  fout<<"Precision:          "<<precision<<'\n'<<'\n';
}
 horaslowchanmeta.cc:1
 horaslowchanmeta.cc:2
 horaslowchanmeta.cc:3
 horaslowchanmeta.cc:4
 horaslowchanmeta.cc:5
 horaslowchanmeta.cc:6
 horaslowchanmeta.cc:7
 horaslowchanmeta.cc:8
 horaslowchanmeta.cc:9
 horaslowchanmeta.cc:10
 horaslowchanmeta.cc:11
 horaslowchanmeta.cc:12
 horaslowchanmeta.cc:13
 horaslowchanmeta.cc:14
 horaslowchanmeta.cc:15
 horaslowchanmeta.cc:16
 horaslowchanmeta.cc:17
 horaslowchanmeta.cc:18
 horaslowchanmeta.cc:19
 horaslowchanmeta.cc:20
 horaslowchanmeta.cc:21
 horaslowchanmeta.cc:22
 horaslowchanmeta.cc:23
 horaslowchanmeta.cc:24
 horaslowchanmeta.cc:25
 horaslowchanmeta.cc:26
 horaslowchanmeta.cc:27
 horaslowchanmeta.cc:28
 horaslowchanmeta.cc:29
 horaslowchanmeta.cc:30
 horaslowchanmeta.cc:31
 horaslowchanmeta.cc:32
 horaslowchanmeta.cc:33
 horaslowchanmeta.cc:34
 horaslowchanmeta.cc:35
 horaslowchanmeta.cc:36
 horaslowchanmeta.cc:37
 horaslowchanmeta.cc:38
 horaslowchanmeta.cc:39
 horaslowchanmeta.cc:40
 horaslowchanmeta.cc:41
 horaslowchanmeta.cc:42
 horaslowchanmeta.cc:43
 horaslowchanmeta.cc:44
 horaslowchanmeta.cc:45
 horaslowchanmeta.cc:46
 horaslowchanmeta.cc:47
 horaslowchanmeta.cc:48
 horaslowchanmeta.cc:49
 horaslowchanmeta.cc:50
 horaslowchanmeta.cc:51
 horaslowchanmeta.cc:52
 horaslowchanmeta.cc:53
 horaslowchanmeta.cc:54