BinnerAxisFactory.cxx

Go to the documentation of this file.
00001 /*
00002  * HippoPlot BinnerAxisFactory class implementation
00003  *
00004  * Copyright (C) 2003   The Board of Trustees of The Leland Stanford
00005  * Junior University.  All Rights Reserved.
00006  *
00007  * $Id: BinnerAxisFactory_8cxx-source.html,v 1.40 2008/03/24 19:27:27 pfkeb Exp $
00008  *
00009  */
00010 
00011 // for truncation warning in debug mode
00012 #ifdef _MSC_VER
00013 #include "msdevstudio/MSconfig.h"
00014 #endif
00015 
00016 #include "BinnerAxisFactory.h"
00017 
00018 // List of default Binner container objects
00019 #include "BinnerAxisLinear.h"
00020 #include "BinnerAxisLog.h"
00021 
00022 namespace hippodraw {
00023 
00024 BinnerAxisFactory * BinnerAxisFactory::s_instance = 0;
00025 
00026 BinnerAxisFactory::BinnerAxisFactory ()
00027 {
00028 }
00029 
00030 BinnerAxisFactory * BinnerAxisFactory::instance ()
00031 {
00032   if ( s_instance == 0 ) {
00033     s_instance = new BinnerAxisFactory ();
00034     s_instance->initialize ();
00035   }
00036   return s_instance;
00037 }
00038 
00039 void BinnerAxisFactory::initialize ()
00040 {
00041   add ( new BinnerAxisLinear () );
00042   add ( new BinnerAxisLog () );
00043 }
00044 
00045 } // namespace hippodraw

Generated for HippoDraw Class Library by doxygen