A CQProductInfo object provides Rational® ClearQuest® product information, such as product version, license version and company information.
The CQProductInfo methods return information to identify product information and its current build. The methods of CQProductInfo allow you to retrieve information such as:
To create a CQProductInfo object, you can use the CreateProductInfo method of a Rational ClearQuest object. For example:
use CQPerlExt;
my $cqobject = CQSession::Build();
my $prodinfo = $cqobject->GetProductInfo();
print $prodinfo->GetProductVersion(),"\n";
CQSession::Unbuild($cqobject);
You can also CQProductInfo methods directly, from Perl, without creating a Rational ClearQuest session.
use CQPerlExt;
print CQProdInfo::GetProductVersion(),"\n";