00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
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