// -*- mode: c++ -*- // // $Id: BrCreationID.h,v 1.1.1.1 2001/06/21 14:54:58 hagel Exp $ // /////////////////////////////////////////////////////////////////////// // // // TBrCreationID // // // // Stores creation details for BrDataObject // // // // Author : Kris Hagel // // Created : October 1997 // // Version : 1.0 // // Changed : 2/24/98 // // // /////////////////////////////////////////////////////////////////////// #ifndef BRAT_BrCreationID #define BRAT_BrCreationID #ifndef ROOT_TClass #include "TClass.h" #endif #ifndef ROOT_TObject #include "TObject.h" #endif #ifndef ROOT_TSystem #include "TSystem.h" #endif #ifndef ROOT_TDatime #include "TDatime.h" #endif #ifndef ROOT_TString #include "TString.h" #endif class BrCreationID : public TObject { public: BrCreationID(); BrCreationID(TObject *Creator); virtual ~BrCreationID(); virtual void Print(Option_t* option="") const; virtual const TDatime& GetTime() const { return fTime; } virtual const TString& GetClassName() const { return fCreatorClassName; } virtual const Version_t GetClassVersion() const { return fCreatorClassVersion; } virtual const TInetAddress& GetHost() const { return fHost; } virtual const UInt_t GetUser() const { return fUserID; } private: TDatime fTime; // time when object was created TString fCreatorClassName; // Class name of creating object Version_t fCreatorClassVersion;// Class version of creating object TInetAddress fHost; // Host running creating process UInt_t fUserID; // User ID for creating process public: ClassDef(BrCreationID,2) // BRAHMS data object creation identifier }; #endif // // $Log: BrCreationID.h,v $ // Revision 1.1.1.1 2001/06/21 14:54:58 hagel // Initial revision of brat2 // // Revision 1.5 2001/06/01 15:46:08 cholm // Fixed creation id class to be more clean. Now sets the user name // (if avaliable) has a Print method. // PRint method in BrDataObject. // Print method in BrDataTable // Print method in BrEvent // Print method in BrEventNode // // Revision 1.4 1999/01/21 23:23:18 hagel // 1. Changed convention for checking includes. Current convention is: // BRAT_Br...... eg BRAT_BrModule ala ROOT. // 2. Added CVS logs to .h files that didn't have them. // 3. Moved checking of include definition to first line for easier reading // 4. Put checks before all includes in the include files as per BRAT specifications // 5. Added BrGeantHeader to Geant Makefile // 6. All changes have been checked to compile on NT ala Cygnus // // Revision 1.3 1998/08/14 21:26:22 videbaek // Some cleanup mods // // Revision 1.2 1998/04/06 21:11:46 videbaek // Clean up and additions for Win95 //