PdbParameter.cc
//-----------------------------------------------------------------------------
// $header$
//
// The pdbcal package
// Copyright (C) PHENIX collaboration, 1999
//
// Implementation of class PdbParameter
//
// Author: federica
//-----------------------------------------------------------------------------
#include "PdbParameter.hh"
#include <iostream.h>
PdbParameter::PdbParameter()
{
thePar = 0;
strcpy(theName,"UNKNOWN");
}
PdbParameter::PdbParameter(float value)
{
thePar = value;
strcpy(theName,"UNKNOWN");
}
PdbParameter::PdbParameter(float value, char name[])
{
thePar = value;
strcpy(theName,name);
}
PdbParameter::~PdbParameter()
{
}
PdbParameter::PdbParameter(const PdbParameter &rhs)
{
thePar = rhs.thePar;
strcpy(theName,rhs.theName);
}
PdbParameter & PdbParameter::operator = (const PdbParameter &rhs)
{
thePar = rhs.thePar;
strcpy(theName,rhs.theName);
return *this;
}
void PdbParameter::print() const
{
cout << theName << ": " << thePar << endl;
}
void PdbParameter::setName(char name[])
{
strcpy(theName, name);
}