1 #ifndef VERSIONMANAGER_HXX_SEEN 2 #define VERSIONMANAGER_HXX_SEEN 4 #include "HLClonesArray.hxx" 5 #include "BasicTypes.hxx" 10 const UInt_t NMAXPACKAGES=20;
12 typedef Int_t ProdId_h;
14 const ProdId_h UNKNOWN_PRODUCTION = -1;
22 PackageVersion(
const std::string& name,
const std::string& version);
64 bool CheckVersionCompatibility(
const std::string& versionInput,ProdId_h prodND280);
67 void AddProduction(ProdId_h prodId,
const std::string& prodName,
const std::string& prodLowVersion,
const std::string& prodHighVersion);
70 ProdId_h GetProduction(
const std::string softVersion);
73 std::string GetProductionName(
const std::string softVersion);
76 void AddPackage(
const std::string& name,
const std::string& version);
79 void ReadVersions(
const std::string& file);
99 bool GetSoftwareVersionRangeForProduction(ProdId_h prodId, std::string& lowVersion, std::string& highVersion);
102 std::string ConvertProduction(ProdId_h prod);
105 bool CheckBeforeVersion(
const std::string& version,
const std::string& version0);
108 void ParseSoftwareVersion(
const std::string& version,
int& v,
int& r,
int& p);
111 std::vector<std::string> _prodLowVersion;
112 std::vector<std::string> _prodHighVersion;
115 std::vector<ProdId_h> _prodId;
118 std::vector<std::string> _prodName;
121 std::vector<PackageVersion*> _packages;
void SetVersion(const std::string &version)
Set the version of this package.
const std::string & Version() const
Return the version of this package.
std::string _version
The name of this package.
void SetName(const std::string &name)
Set the name of this package.
virtual ~PackageVersion()
Everyone should have a destructor.
virtual const char * GetName() const
Return the name of this package. This overrides the TObject::GetName() interface. ...
std::string _name
The name of this package.
const std::string & Name() const
Return the name of this package.