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

libsvx::Svx Class Reference

The class containing Svx informations <svx></svx>. More...

#include <svx.h>

Inheritance diagram for libsvx::Svx:

libsvx::Element List of all members.

Public Methods

 Svx (TiXmlElement &Element)
 Create an SVX svx element based on an XML element.

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

bool IsValid () const
 Valid if there is at list one product and the version is 1.0.

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

bool Add (TiXmlElement &Element)
 Add the content of the class hierarchy to the current class. More...

ProductFindProduct (const std::string &the_product_name) const
 Find the specified Product in the Svx data.

void Iterate_Product_Begin ()
 Put the Svx internal iterator on the first document.

bool Iterate_Product_IsBegin ()
bool Iterate_Product_IsEnd ()
 Specify wether there is still a Product available in the list.

const std::string & Iterate_Product_Next ()
 Return the UID of the next Product in line.

const std::string & Iterate_Product_Prev ()
 Return the UID of the previous Product in line.

VersionFindVersion (const std::string &the_product_uid, const std::string &the_version_name)
 Find the specified Version in the Svx data.

void Iterate_Version_Begin (const std::string &the_product_uid)
 Put the Document internal iterator on the first document.

bool Iterate_Version_IsBegin (const std::string &the_product_uid)
 Specify wether there is still a Version available in the list.

bool Iterate_Version_IsEnd (const std::string &the_product_uid)
 Specify wether there is still a Version available in the list.

const std::string & Iterate_Version_Next (const std::string &the_product_uid)
 Return the UID of the next Version in line.

const std::string & Iterate_Version_Prev (const std::string &the_product_uid)
 Return the UID of the previous Version in line.


Protected Attributes

Attributem_A_href
 A URL to get updated versions of this SVX file.

Attributem_A_version
 The SVX syntax version (only 1.0 is currently supported).

Mvector< Productm_List_Product
 The list of products described in this SVX file.

size_t m_Iterator_Product
 The current Product iterator.


Detailed Description

The class containing Svx informations <svx></svx>.

Definition at line 64 of file svx.h.


Member Function Documentation

bool Svx::Add TiXmlElement &    Element
 

Add the content of the class hierarchy to the current class.

Todo:
overiding the URL should be optional

replace this method with a += operator

Note:
adding SVX files with different version numbers is not possible yet

Definition at line 91 of file svx.cxx.

References libsvx::Attribute::Attribute(), FindProduct(), m_A_href, m_A_version, m_List_Product, libsvx::Attribute::String(), and libsvx::ElementUid::UID().

Referenced by libsvx::Document::ParseAdd(), and Svx().


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