Geant4  10.01.p03
G4InteractorMessenger.cc File Reference
#include <string.h>
#include <stdlib.h>
#include "G4UIdirectory.hh"
#include "G4UIcommand.hh"
#include "G4VInteractiveSession.hh"
#include "G4InteractorMessenger.hh"
+ Include dependency graph for G4InteractorMessenger.cc:

Go to the source code of this file.

Macros

#define STRDUP(str)   ((str) != NULL ? (strcpy((char*)malloc((unsigned)strlen(str) + 1), str)) : (char*)NULL)
 
#define STRDEL(str)   {if((str)!=NULL) {free(str);str=NULL;}}
 

Functions

static G4bool GetValues (G4String, int, G4String *)
 

Macro Definition Documentation

#define STRDEL (   str)    {if((str)!=NULL) {free(str);str=NULL;}}

Definition at line 38 of file G4InteractorMessenger.cc.

Referenced by GetValues().

#define STRDUP (   str)    ((str) != NULL ? (strcpy((char*)malloc((unsigned)strlen(str) + 1), str)) : (char*)NULL)

Definition at line 37 of file G4InteractorMessenger.cc.

Referenced by GetValues().

Function Documentation

G4bool GetValues ( G4String  newValue,
int  paramn,
G4String params 
)
static

Definition at line 154 of file G4InteractorMessenger.cc.

References G4String::both, G4String::data(), G4String::isNull(), STRDEL, STRDUP, and G4String::strip().

Referenced by G4InteractorMessenger::SetNewValue().

+ Here is the call graph for this function:

+ Here is the caller graph for this function: