NtpEventDisplayFactory Class Reference

#include <NtpEventDisplayFactory.h>

List of all members.

Public Member Functions

NtpEventDisplayMakeEventDisplay (const char *name="default")

Static Public Member Functions

static NtpEventDisplayFactoryInstance ()

Private Member Functions

 NtpEventDisplayFactory ()
 ~NtpEventDisplayFactory ()

Private Attributes

NtpEventDisplayfDisplayTiming

Detailed Description

Definition at line 8 of file NtpEventDisplayFactory.h.


Constructor & Destructor Documentation

NtpEventDisplayFactory::NtpEventDisplayFactory (  )  [private]

Definition at line 55 of file NtpEventDisplayFactory.cxx.

References fDisplayTiming.

00056 {
00057   fDisplayTiming = 0;
00058 }

NtpEventDisplayFactory::~NtpEventDisplayFactory (  )  [private]

Definition at line 60 of file NtpEventDisplayFactory.cxx.

References fDisplayTiming.

00061 {
00062   if( fDisplayTiming ) delete fDisplayTiming;
00063 }


Member Function Documentation

NtpEventDisplayFactory * NtpEventDisplayFactory::Instance ( void   )  [static]

Definition at line 14 of file NtpEventDisplayFactory.cxx.

Referenced by NtpEventViewer::controlStart().

00015 {
00016   // create display factor
00017   if(!fgDisplayFactoryInstance){
00018     fgDisplayFactoryInstance = new NtpEventDisplayFactory();
00019   }
00020  
00021   // die if factory hasn't actually been created
00022   if(!fgDisplayFactoryInstance){
00023     assert(fgDisplayFactoryInstance);
00024   }
00025  
00026   // can do re-setting here
00027   if(fgDisplayFactoryInstance){
00028  
00029   }
00030    
00031   return fgDisplayFactoryInstance;
00032 }

NtpEventDisplay * NtpEventDisplayFactory::MakeEventDisplay ( const char *  name = "default"  ) 

Definition at line 34 of file NtpEventDisplayFactory.cxx.

References fDisplayTiming.

Referenced by NtpEventViewer::controlStart().

00035 {
00036   std::cout << " *** NtpEventDisplayFactory::MakeEventDisplay(...) *** " << std::endl;
00037 
00038   if( strcmp(name,"Timing")==0 
00039    || strcmp(name,"default")==0 ) {
00040     if( fDisplayTiming==0 ){
00041       std::cout << "   Building Display: " << name << std::endl;
00042       fDisplayTiming = new NtpEventDisplayTiming();
00043     }
00044     std::cout << "   Returning Display: " << name << std::endl;
00045     return fDisplayTiming;
00046   }
00047 
00048   else {
00049     std::cout << "   <warning> unknown display: " << name << std::endl;
00050   }
00051 
00052   return 0;
00053 }


Member Data Documentation


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

Generated on 2 Nov 2017 for loon by  doxygen 1.6.1