ArtsPackageVersion


[ libArts | Source | Keywords | Summary | Ancestors | All Members | Descendants ]

Quick Index

DESCRIPTION

Class Summary

class ArtsPackageVersion

{

public:
ArtsPackageVersion(const string & nameAndId);
const string & Name() const;
const string & Id() const;
protected:
}; // ArtsPackageVersion

Back to the top of ArtsPackageVersion


DESCRIPTION


---------------------------------------------------------------------------
class ArtsPackageVersion
---------------------------------------------------------------------------
Simple class for keeping CVS Name and Id tags so they can be retrieved from applications. The use of this class is trivial, and it's not a very smart (robust) class. To use it properly, you must pass a string of the form:

"@(#) $Name: $ $Id: ArtsPackageVersion.html,v 1.1.1.1.2.1 2000/04/11 15:32:50 margaret Exp $"

in the constructor, and then you may access the value of the Name tag via the Name() member and the Id tag via the Id() member.

In typical use, I keep a static const string named 'rcsid' in .cc files. If the .cc file is the main application, I instantiate an ArtsPackageVersion by passing rcsid in the ArtsPackageVersion constructor.
---------------------------------------------------------------------------

Back to the top of ArtsPackageVersion


ArtsPackageVersion(const string & nameAndId);


-------------------------------------------------------------------------
ArtsPackageVersion(const string & nameAndId)
.........................................................................
constructor. Takes a string of the form:

"@(#) $Name: $ $Id: ArtsPackageVersion.html,v 1.1.1.1.2.1 2000/04/11 15:32:50 margaret Exp $"


-------------------------------------------------------------------------

  ArtsPackageVersion(const string & nameAndId);

Back to the top of ArtsPackageVersion


const string & Name() const;


-------------------------------------------------------------------------
const string & Name() const
.........................................................................
Returns the value of the Name tag.
-------------------------------------------------------------------------

  const string & Name() const;

Back to the top of ArtsPackageVersion


const string & Id() const;


-------------------------------------------------------------------------
const string & Id() const
.........................................................................
Returns the value of the Id tag.
-------------------------------------------------------------------------

  const string & Id() const;

Back to the top of ArtsPackageVersion


All Members

public:
const string & Name() const;
const string & Id() const;
protected:

Back to the top of ArtsPackageVersion


Ancestors

Class does not inherit from any other class.

Back to the top of ArtsPackageVersion


Descendants

Class is not inherited by any others.

Back to the top of ArtsPackageVersion


Generated from source by the Cocoon utilities on Sat Oct 17 14:39:59 1998 .

Report problems to jkotula@unimax.com