// --- Standard library ---
-#include <iostream.h>
-
// --- AliRoot header files ---
#include "AliPHOSQAIntCheckable.h"
AliPHOSQAIntCheckable::AliPHOSQAIntCheckable(const char * name) : AliPHOSQAVirtualCheckable(name)
{
//ctor initial value is zero
- fType = new char[1] ;
- strcpy(fType,"I") ;
+ fType = "I" ;
fValue = 0 ;
}
AliPHOSQAIntCheckable::~AliPHOSQAIntCheckable()
{
// dtor
- delete fType ;
}
//____________________________________________________________________________
void AliPHOSQAIntCheckable::Print() const
{
// Print the chekable name and its value
- cout << " Checkable-> " << GetName() << " : value = " << fValue << endl ;
+ Info("Print", "Checkable-> %s : value = %d", GetName(), fValue) ;
}
//____________________________________________________________________________