Goofy Class Reference

#include <Goofy.h>

List of all members.

Public Member Functions

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

Static Public Member Functions

static int Shell (std::string s)

Private Member Functions

void Banner ()
void SetJobOptions ()

Private Attributes

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


Detailed Description

Definition at line 13 of file Goofy.h.


Constructor & Destructor Documentation

Goofy::Goofy (  ) 

Definition at line 12 of file Goofy.cpp.

References Banner(), theMessenger, theProject, and theRandomCenter.

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 (  ) 

Definition at line 55 of file Goofy.cpp.

References theMessenger, theProject, and theRandomCenter.

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


Member Function Documentation

void Goofy::Banner (  )  [private]

Definition at line 67 of file Goofy.cpp.

References Shell().

Referenced by Goofy().

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]

Definition at line 97 of file Goofy.cpp.

References Batch, initmacro, Interactive, opts, rm, and runmacro.

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]

Definition at line 62 of file Goofy.cpp.

Referenced by Banner(), ProjectMessenger::SetNewValue(), and GoofyMessenger::SetNewValue().

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


Member Data Documentation

std::string Goofy::initmacro [private]

Definition at line 22 of file Goofy.h.

Referenced by SetJobOptions().

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

Definition at line 23 of file Goofy.h.

Referenced by SetJobOptions().

RunMode Goofy::rm [private]

Definition at line 20 of file Goofy.h.

Referenced by SetJobOptions().

std::string Goofy::runmacro [private]

Definition at line 21 of file Goofy.h.

Referenced by SetJobOptions().

GoofyMessenger* Goofy::theMessenger [private]

Definition at line 26 of file Goofy.h.

Referenced by Goofy(), and ~Goofy().

ProjectMessenger* Goofy::theProject [private]

Definition at line 27 of file Goofy.h.

Referenced by Goofy(), and ~Goofy().

RandomCenterMessenger* Goofy::theRandomCenter [private]

Definition at line 28 of file Goofy.h.

Referenced by Goofy(), and ~Goofy().


Generated on Tue Nov 29 23:19:38 2016 for BOSS_7.0.2 by  doxygen 1.4.7