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

WindowOptions Class Reference

#include <WindowOptions.h>

Inheritance diagram for WindowOptions:

cfg::Observer List of all members.

Public Types

enum  { kDetectorView, kPlaneView, kDisplay3D }

Public Member Functions

void Update (const cfg::Config &c)

Static Public Member Functions

const WindowOptionsInstance ()

Public Attributes

std::vector< std::string > fWindows
int fPlaneViewWidth
int fDetectorViewWidth

Private Member Functions

 WindowOptions ()

Static Private Attributes

WindowOptionsfInstance = 0

Member Enumeration Documentation

anonymous enum
 

Enumeration values:
kDetectorView 
kPlaneView 
kDisplay3D 

Definition at line 19 of file WindowOptions.h.

00019        {
00020     kDetectorView,
00021     kPlaneView,
00022     kDisplay3D
00023   };


Constructor & Destructor Documentation

WindowOptions::WindowOptions  )  [private]
 

Definition at line 24 of file WindowOptions.cxx.

References cfg::Observer::SetWatch().

Referenced by Instance().

00025 {
00026   this->SetWatch("EVD Startup Options","test");
00027 }


Member Function Documentation

const WindowOptions & WindowOptions::Instance  )  [static]
 

Definition at line 16 of file WindowOptions.cxx.

References fInstance, and WindowOptions().

Referenced by main().

00017 {
00018   if (fInstance==0) fInstance = new WindowOptions();
00019   return *fInstance;
00020 }

void WindowOptions::Update const cfg::Config c  )  [virtual]
 

Implements cfg::Observer.

Definition at line 31 of file WindowOptions.cxx.

References fDetectorViewWidth, fPlaneViewWidth, and fWindows.

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 }


Member Data Documentation

int WindowOptions::fDetectorViewWidth
 

Definition at line 31 of file WindowOptions.h.

Referenced by Update().

WindowOptions * WindowOptions::fInstance = 0 [static, private]
 

Definition at line 12 of file WindowOptions.cxx.

Referenced by Instance().

int WindowOptions::fPlaneViewWidth
 

Definition at line 30 of file WindowOptions.h.

Referenced by Update().

std::vector<std::string> WindowOptions::fWindows
 

Definition at line 29 of file WindowOptions.h.

Referenced by main(), and Update().


The documentation for this class was generated from the following files:
Generated on Thu Sep 4 02:05:32 2008 for NOvA Offline by doxygen 1.3.5