30#if defined(G4INTY_BUILD_WT) || defined(G4INTY_USE_WT)
39#include <Wt/WApplication>
40#include <Wt/WEnvironment>
43G4Wt* G4Wt::instance = NULL;
48G4Wt* G4Wt::getInstance (
53 return G4Wt::getInstance (0,NULL,(
char*)
"Geant4");
57G4Wt* G4Wt::getInstance (
66 instance =
new G4Wt(a_argn,a_args,a_class);
82#ifdef G4DEBUG_INTERFACES_COMMON
83 printf(
"G4Wt::G4Wt try to inited Wt\n");
88 SetMainInteractor (wServer);
90 SetArguments (a_argn,a_args);
92#ifdef G4DEBUG_INTERFACES_COMMON
93 printf(
"G4Wt::G4Wt alredy inited in external \n");
113 args = (
char **)malloc( 1 *
sizeof(
char *) );
114 args[0] = (
char *)malloc(10 *
sizeof(
char));
115 strncpy(args[0],
"my_app \0", 9);
118 int *p_argn = (
int*)malloc(
sizeof(
int));
120#ifdef G4DEBUG_INTERFACES_COMMON
121 printf(
"G4Wt::G4Wt WAppl \n");
123 Wt::WApplication:: instance();
133#ifdef G4DEBUG_INTERFACES_COMMON
134 printf(
"G4Wt::G4Wt SetMainInteractor\n");
138 SetArguments (a_argn,a_args);
139#ifdef G4DEBUG_INTERFACES_COMMON
140 printf(
"G4Wt::G4Wt inited Wt END\n");
145#ifdef G4DEBUG_INTERFACES_COMMON
147 printf(
"G4Wt::wApp already exist\n");
149 printf(
"G4Wt::wApp not exist\n");
155 DisableSecondaryLoop ();
176void* G4Wt::GetEvent (
192void G4Wt::FlushAndWaitExecution (
G4GLOB_DLL std::ostream G4cout