AtNuEventDisplayFactory Class Reference

#include <AtNuEventDisplayFactory.h>

List of all members.

Public Member Functions

AtNuEventDisplayMakeEventDisplay ()
AtNuEventDisplayMakeEventDisplay (const char *name)
 AtNuEventDisplayFactory ()
virtual ~AtNuEventDisplayFactory ()

Static Public Member Functions

static AtNuEventDisplayFactoryInstance ()

Private Attributes

AtNuEventDisplayfEventDisplayAB

Static Private Attributes

static AtNuEventDisplayFactoryfMyInstance = 0

Detailed Description

Definition at line 8 of file AtNuEventDisplayFactory.h.


Constructor & Destructor Documentation

AtNuEventDisplayFactory::AtNuEventDisplayFactory (  ) 

Definition at line 59 of file AtNuEventDisplayFactory.cxx.

References fEventDisplayAB.

00060 {
00061   fEventDisplayAB = 0;
00062 }

AtNuEventDisplayFactory::~AtNuEventDisplayFactory (  )  [virtual]

Definition at line 64 of file AtNuEventDisplayFactory.cxx.

References fEventDisplayAB.

00065 {
00066   if( fEventDisplayAB ) delete fEventDisplayAB;
00067 }


Member Function Documentation

AtNuEventDisplayFactory * AtNuEventDisplayFactory::Instance (  )  [static]

Definition at line 13 of file AtNuEventDisplayFactory.cxx.

00014 {
00015 
00016   if(!fMyInstance){
00017     fMyInstance = new AtNuEventDisplayFactory();
00018   }
00019  
00020   // die if finder hasn't actually been created
00021   if(!fMyInstance){
00022     assert(fMyInstance);
00023   }
00024  
00025   // can do re-setting here
00026   if(fMyInstance){
00027  
00028   }
00029    
00030   return fMyInstance;
00031 }

AtNuEventDisplay * AtNuEventDisplayFactory::MakeEventDisplay ( const char *  name  ) 

Definition at line 38 of file AtNuEventDisplayFactory.cxx.

References fEventDisplayAB.

00039 {
00040   if( strcmp(name,"default")==0 ) {
00041     if( fEventDisplayAB==0 ){
00042       std::cout << " Building Display: " << name << std::endl;
00043       fEventDisplayAB = new AtNuEventDisplayAB(); 
00044     }
00045     return fEventDisplayAB;
00046   }
00047 
00048   if( strcmp(name,"AB")==0 ) {
00049     if( fEventDisplayAB==0 ){
00050       std::cout << " Building Display: " << name << std::endl;
00051       fEventDisplayAB = new AtNuEventDisplayAB(); 
00052     }
00053     return fEventDisplayAB;
00054   }
00055 
00056   return 0;
00057 }

AtNuEventDisplay * AtNuEventDisplayFactory::MakeEventDisplay (  ) 

Definition at line 33 of file AtNuEventDisplayFactory.cxx.

Referenced by AtNuEventViewer::controlStart().

00034 {
00035   return this->MakeEventDisplay("default");
00036 }


Member Data Documentation

Definition at line 22 of file AtNuEventDisplayFactory.h.


The documentation for this class was generated from the following files:

Generated on 22 Nov 2017 for loon by  doxygen 1.6.1