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

WindowOptions.cxx

Go to the documentation of this file.
00001 
00002 // $Id: WindowOptions.cxx,v 1.1 2007/12/01 21:27:25 jpaley Exp $
00003 //
00004 // Window display options
00005 //
00006 // \author jpaley@indiana.edu
00008 #include "EventDisplay/WindowOptions.h"
00009 #include "Config/Config.h"
00010 #include "Config/Param.h"
00011 
00012 WindowOptions* WindowOptions::fInstance = 0;
00013 
00014 //......................................................................
00015 
00016 const WindowOptions& WindowOptions::Instance() 
00017 {
00018   if (fInstance==0) fInstance = new WindowOptions();
00019   return *fInstance;
00020 }
00021 
00022 //......................................................................
00023 
00024 WindowOptions::WindowOptions() 
00025 {
00026   this->SetWatch("EVD Startup Options","test");
00027 }
00028 
00029 //......................................................................
00030 
00031 void WindowOptions::Update(const cfg::Config& c) 
00032 {
00033   // Try getting option as string, then as vector
00034   try { c("Windows").Get(fWindows); }
00035   catch (...) {
00036     std::string s;
00037     c("Windows").Get(s);
00038     fWindows.push_back(s);
00039   }
00040   c("PlaneViewWidth").    Get(fPlaneViewWidth);
00041   c("DetectorViewWidth"). Get(fDetectorViewWidth);
00042 
00043 }
00044 

Generated on Sat Oct 11 02:35:28 2008 for NOvA Offline by  doxygen 1.3.9.1