#include <Goofy.h>
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::string > | opts |
GoofyMessenger * | theMessenger |
ProjectMessenger * | theProject |
RandomCenterMessenger * | theRandomCenter |
Definition at line 13 of file Goofy.h.
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 }
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 }
std::string Goofy::initmacro [private] |
std::vector<std::string> Goofy::opts [private] |
std::string Goofy::runmacro [private] |
GoofyMessenger* Goofy::theMessenger [private] |
ProjectMessenger* Goofy::theProject [private] |
RandomCenterMessenger* Goofy::theRandomCenter [private] |