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

Goofy Class Reference

#include <Goofy.h>

List of all members.

Public Member Functions

 Goofy (int, char **)
 Goofy ()
 ~Goofy ()

Static Public Member Functions

int Shell (std::string s)

Private Member Functions

void Banner ()
void SetJobOptions ()

Private Attributes

std::string initmacro
std::vector< std::string > opts
RunMode rm
std::string runmacro
GoofyMessengertheMessenger
ProjectMessengertheProject
RandomCenterMessengertheRandomCenter


Constructor & Destructor Documentation

Goofy::Goofy  ) 
 

00013 {
00014 
00015         Banner();       
00016         
00017         theMessenger=new GoofyMessenger(this);
00018         theProject=new ProjectMessenger(this);
00019         theRandomCenter=new RandomCenterMessenger(this);
00020         
00021 }

Goofy::Goofy int  ,
char ** 
 

Goofy::~Goofy  ) 
 

00056 {
00057         delete theMessenger;
00058         delete theProject;
00059         delete theRandomCenter;
00060 }


Member Function Documentation

void Goofy::Banner  )  [private]
 

00068 {
00069         std::cout<<std::endl<<std::endl<<
00070         "***********************************************************************"<<std::endl<<
00071         "***********************************************************************"<<std::endl<<  
00072         "**                                                                   **"<<std::endl<<
00073         "**      GGGGG      OOOOO      OOOOO    FFFFFFF    Y     Y            **"<<std::endl<<
00074         "**     G     G    O     O    O     O   F          Y     Y            **"<<std::endl<<
00075         "**     G          O     O    O     O   F           Y   Y             **"<<std::endl<<
00076         "**     G          O     O    O     O   FFFFF        YYY              **"<<std::endl<<
00077         "**     G   GGGG   O     O    O     O   F             Y               **"<<std::endl<<
00078         "**     G     G    O     O    O     O   F             Y               **"<<std::endl<<
00079         "**      GGGGG      OOOOO      OOOOO    F             Y               **"<<std::endl<<
00080         "**                                                                   **"<<std::endl<<
00081         "**                                                                   **"<<std::endl<<
00082         "**           The Geant4-based Object Oriented FollY                  **"<<std::endl<<
00083         "**                                                                   **"<<std::endl<<
00084         "**                                             Jan 10th, 2000        **"<<std::endl<<
00085         "**                                                                   **"<<std::endl<<
00086         "***********************************************************************"<<std::endl<<
00087         "***********************************************************************"<<std::endl<<  
00088         std::endl<<std::endl<<std::endl;
00089         
00090         char *greetings=getenv("GOOFY_GREETINGS");
00091         
00092         if (greetings)
00093         Shell("xv -wait 2 $GOOFY_GREETINGS");
00094 }

void Goofy::SetJobOptions  )  [private]
 

00098 {
00099         rm=Interactive;
00100         std::vector<std::string>::const_iterator it;
00101         
00102         it=find(opts.begin(),opts.end(),"-b");
00103         if (it!=opts.end()) rm=Batch;
00104         
00105         it=find(opts.begin(),opts.end(),"-i");
00106         if (it!=opts.end())
00107         {
00108                 it++;
00109                 initmacro=*it;
00110         }
00111         
00112         it=find(opts.begin(),opts.end(),"-m");
00113         if (it!=opts.end())
00114         {
00115                 it++;
00116                 runmacro=*it;
00117         }
00118 }

int Goofy::Shell std::string  s  )  [static]
 

00063 {
00064         return system(s.c_str());
00065 }


Member Data Documentation

std::string Goofy::initmacro [private]
 

std::vector<std::string> Goofy::opts [private]
 

RunMode Goofy::rm [private]
 

std::string Goofy::runmacro [private]
 

GoofyMessenger* Goofy::theMessenger [private]
 

ProjectMessenger* Goofy::theProject [private]
 

RandomCenterMessenger* Goofy::theRandomCenter [private]
 


The documentation for this class was generated from the following files:
Generated on Wed Feb 2 16:16:38 2011 for BOSS6.5.5 by  doxygen 1.3.9.1