Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

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.cxx,v 1.3 2003/08/23 20:02:13 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 BinnerAxisFactory * BinnerAxisFactory::s_instance = 0;
00023 
00024 BinnerAxisFactory::BinnerAxisFactory ()
00025 {
00026 }
00027 
00028 BinnerAxisFactory * BinnerAxisFactory::instance ()
00029 {
00030   if ( s_instance == 0 ) {
00031     s_instance = new BinnerAxisFactory ();
00032     s_instance->initialize ();
00033   }
00034   return s_instance;
00035 }
00036 
00037 void BinnerAxisFactory::initialize ()
00038 {
00039   add ( new BinnerAxisLinear () );
00040   add ( new BinnerAxisLog () );
00041 }

Generated for HippoDraw-1.14.8.5 by doxygen 1.4.3