00001 00002 // 00003 // $Id: Blah.cxx,v 1.2 2001/02/19 17:21:29 buckley Exp $ 00004 // 00005 // Blah 00006 // 00007 // Package: Registry 00008 // 00009 // see header for comments. 00010 // 00011 // Contact: bv@bnl.gov 00012 // 00013 // Created on: Wed Oct 25 17:17:44 2000 00014 // 00016 00017 #include <iostream> 00018 00019 #include "Registry/test/Blah.h" 00020 00021 ClassImp(Blah); 00022 00023 static int count = 0; 00024 00025 Blah::Blah(int x) : fMyValue(x) 00026 { 00027 ++ count; 00028 cerr << "Blah ctor ("<<count<<" exist)\n"; 00029 } 00030 Blah::Blah(const Blah& b) : fMyValue(b.fMyValue) 00031 { 00032 ++ count; 00033 cerr << "Blah copy-ctor ("<<count<<" exist)\n"; 00034 } 00035 Blah::~Blah(void) 00036 { 00037 -- count; 00038 cerr << "Blah dtor ("<<count<<" left)\n"; 00039 } 00040 00041 int Blah::GetMe(void) 00042 { 00043 return fMyValue; 00044 } 00045 00046 void Blah::SetMe(int x) 00047 { 00048 fMyValue = x; 00049 } 00050 00051 void Blah::DumpMe(void) 00052 { 00053 cerr << "Blah: holding a value of `" << fMyValue <<"'\n"; 00054 } 00055