#ifndef TPackageVersion_hxx_seen #define TPackageVersion_hxx_seen ///////////////////////////////////////////////////////////////////// // $Id: IPackageVersion.hxx,v 1.1 2008/07/23 22:10:10 mcgrew Exp $ // // Define the base type for all of the package version classes. #include #include namespace COMET { class IPackageVersion; } /// This provides the facility to track the compilation history of packages. /// The build environment creates a file ../src/[package]_version.hxx which /// should be included in the implementation of classes which inherit from /// this one. The information in that include file allows useful information /// to be returned from the Getter methods. class COMET::IPackageVersion: public TObject { public: IPackageVersion(); virtual ~ IPackageVersion(); /// Do any initialization needed for this package. This is called /// by the constructor. virtual void Initialize(void) {} /// Return the version of this library. virtual const char *GetName(void) const { return "none"; } /// Return the version of this library. virtual const char *GetVersion(void) const { return "none"; } /// Return the date that this library was compiled. virtual const char *GetCompilationDate(void) const { return "none"; } /// Return the host that this library was compiled on. virtual const char *GetCompilationHost(void) const { return "none"; } /// Return the directory from which this library was compiled. virtual const char *GetCompilationDirectory(void) const { return "none"; } /// Return the machine information for the machine that compiled this /// library. On most machines this is generated from "uname -a". const char *GetCompilationMachineInfo(void) const { return "none"; } ClassDef(IPackageVersion, 0); }; #endif