Print

Print


Commit in lcdd/include on MAIN
StoreInspector.hh+3-31.2 -> 1.3
indicate type of object being printed

lcdd/include
StoreInspector.hh 1.2 -> 1.3
diff -u -r1.2 -r1.3
--- StoreInspector.hh	9 Dec 2005 22:23:24 -0000	1.2
+++ StoreInspector.hh	9 Dec 2005 22:51:28 -0000	1.3
@@ -1,4 +1,4 @@
-// $Header: /cvs/lcd/lcdd/include/StoreInspector.hh,v 1.2 2005/12/09 22:23:24 jeremy Exp $
+// $Header: /cvs/lcd/lcdd/include/StoreInspector.hh,v 1.3 2005/12/09 22:51:28 jeremy Exp $
 #ifndef lcdd_StoreInspector_hh
 #define lcdd_StoreInspector_hh 1
 
@@ -121,7 +121,7 @@
    */
   std::ostream& printObject(std::ostream& os, const std::string& name, Object* obj)
   {
-    os << "name: " << name << endl;
+    os << _name << " - " << name << endl;
     os << (*obj) << endl;
     return os;
   }
@@ -129,7 +129,7 @@
   /* Defines G4UIcommand to be used with this inspector. */
   void defineCommands()
   {
-    _dir = new G4UIdirectory(std::string("/stores/" + _name).c_str());
+    _dir = new G4UIdirectory(std::string("/stores/" + _name + "/").c_str());
     _dir->SetGuidance( std::string("Commands for inspecting the " + _name + " store.").c_str() );
 
     _printCmd = new G4UIcmdWithAString(std::string("/stores/"+_name+"/print").c_str(), this);
CVSspam 0.2.8