Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   Related Pages  

libsvx::Version Class Reference

The class containing Version informations <version></version>. More...

#include <version.h>

Inheritance diagram for libsvx::Version:

libsvx::ElementName libsvx::ElementLicense libsvx::ElementGeneric libsvx::ElementGeneric libsvx::Element libsvx::Element List of all members.

Public Methods

 Version (TiXmlElement &Element)
 Create an SVX version element based on an XML element. More...

 Version (const Version &a_version)
 Construct a clone of the class Version. More...

 ~Version ()
 destructor, free all the sub-informations.

bool IsValid () const
 There must be a name and a valid type.

TiXmlElement & XmlElement ()
 a method to get the informations of the element into an XML element.

PackageFindPackage (const Package &the_item) const
 Find the specified Package in the ElementPackage list.

Version & operator+= (const Version &the_object_to_add)
bool operator!= (const Version &the_object_to_compare) const
 2 versions are different if the type is different, the name is different. More...

bool operator< (const Version &the_object_to_compare) const
 compare if one version is anterior to the other The previous element is more important than the date.


Protected Attributes

Attributem_A_type
 The type of version (retail, eval, beta, alpha, todo).

Attributem_A_date
 The date of the version stamp/tag.

Attributem_A_previous
 The previous version of the same product (ie X.Y.Z-beta1).

Dependencym_Dependency
 The Dependency List.

Notesm_Notes
 The note connected to the version (explanations of what's new for example).

Changesm_Changes
 The changes added in this version.

Mvector< Packagem_List_Package
 The list of packages of this version.


Detailed Description

The class containing Version informations <version></version>.

Definition at line 63 of file version.h.


Constructor & Destructor Documentation

Version::Version TiXmlElement &    Element
 

Create an SVX version element based on an XML element.

Todo:
reorder the versions (using the previous attribute) on demand

Definition at line 64 of file version.cxx.

References m_A_date, m_A_previous, m_A_type, m_Changes, m_Dependency, m_List_Package, and m_Notes.

Version::Version const Version &    a_version
 

Construct a clone of the class Version.

Construct a clone of the class Version

Definition at line 128 of file version.cxx.

References m_A_date, m_A_previous, m_A_type, m_Changes, m_Dependency, m_List_Package, and m_Notes.


Member Function Documentation

bool Version::operator!= const Version &    the_object_to_compare const
 

2 versions are different if the type is different, the name is different.

Note:
2 objects MUST BE valid in order to be equal

Definition at line 351 of file version.cxx.

References IsValid(), m_A_date, m_A_type, m_Changes, m_Dependency, and m_Notes.


The documentation for this class was generated from the following files:
Generated on Sat Apr 13 22:56:50 2002 for libsvx by doxygen1.2.15