TheDog.cc

Go to the documentation of this file.
00001 // TheDog.C
00002 
00003 #include <iostream>
00004 
00005 using std::cout ;
00006 using std::endl ;
00007 
00008 #include "TheDog.h"
00009 #include "dog.h"
00010 #include "BESInitList.h"
00011 
00012 Animal *TheDog = 0;
00013 
00014 static bool
00015 buildNewDog(int, char**) {
00016     cout << "I am building new dog, using FUNINIT with no termination" << endl;
00017     TheDog = new dog("Killer");
00018     return true;
00019 }
00020 
00021 static bool
00022 destroyNewDog(void) {
00023     cout << "I am destroying the dog" << endl;
00024     if(TheDog) delete TheDog;
00025     return true;
00026 }
00027 
00028 FUNINIT(buildNewDog, 1);
00029 

Generated on Fri Nov 30 12:06:49 2007 for OPeNDAP Back End Server (BES) by  doxygen 1.5.1