Spm::Core::Element Class Reference

#include <element.h>

Inheritance diagram for Spm::Core::Element:

Spm::Util::Object Spm::Core::Package Spm::Core::Set List of all members.

Public Types

typedef std::vector< Versionned
* >::iterator 
iterator
typedef std::vector< Versionned
* >::const_iterator 
const_iterator
typedef std::vector< Versionned
* >::reverse_iterator 
reverse_iterator
typedef std::vector< Versionned
* >::const_reverse_iterator 
const_reverse_iterator

Public Member Functions

virtual ~Element ()
const miniXml::ustring & getDescription ()
const miniXml::ustring & getDescription () const
void setName (const miniXml::ustring &name)
void setDescription (const miniXml::ustring &description)
const CategorygetCategory ()
const CategorygetCategory () const
void setCategory (Category *aCategory)
void add (Versionned *aBranch)
Versionnedremove (const miniXml::ustring &aBranch)
std::vector< Versionned * > & getVersions ()
const std::vector< Versionned * > & getVersions () const
const VersionnedgetVersionned (const miniXml::ustring &branchName) const
VersionnedgetVersionned (const miniXml::ustring &branchName)
Versionnedremove (Versionned *branch)
iterator find (Versionned *branch)
const_iterator find (Versionned *branch) const
iterator find (const miniXml::ustring &name)
const_iterator find (const miniXml::ustring &name) const
bool operator< (const Element *e) const
bool operator< (const Element &e) const
iterator begin ()
iterator end ()
const_iterator begin () const
const_iterator end () const
reverse_iterator rbegin ()
reverse_iterator rend ()
const_reverse_iterator rbegin () const
const_reverse_iterator rend () const

Static Public Member Functions

static void formatName (miniXml::ustring &version)

Protected Member Functions

 Element ()

Protected Attributes

Categorycategory
miniXml::ustring description
miniXml::ustring elementURL
std::vector< Versionned * > versions_

Friends

class ElementStore

Member Typedef Documentation

typedef std::vector<Versionned *>::iterator Spm::Core::Element::iterator

typedef std::vector<Versionned *>::const_iterator Spm::Core::Element::const_iterator

typedef std::vector<Versionned *>::reverse_iterator Spm::Core::Element::reverse_iterator

typedef std::vector<Versionned *>::const_reverse_iterator Spm::Core::Element::const_reverse_iterator


Constructor & Destructor Documentation

Spm::Core::Element::Element (  )  [protected]

virtual Spm::Core::Element::~Element (  )  [virtual]


Member Function Documentation

static void Spm::Core::Element::formatName ( miniXml::ustring &  version  )  [static]

const miniXml::ustring& Spm::Core::Element::getDescription (  ) 

Returns:
The description of the Element

const miniXml::ustring& Spm::Core::Element::getDescription (  )  const

Returns:
The description of the Element

void Spm::Core::Element::setName ( const miniXml::ustring &  name  ) 

Parameters:
name The new name of the Element

void Spm::Core::Element::setDescription ( const miniXml::ustring &  description  ) 

Parameters:
description The new description of the Element

const Category* Spm::Core::Element::getCategory (  ) 

Returns:
The description of the Element

const Category* Spm::Core::Element::getCategory (  )  const

Returns:
The description of the Element

void Spm::Core::Element::setCategory ( Category aCategory  ) 

Parameters:
aCategory The new Category of the Element

void Spm::Core::Element::add ( Versionned aBranch  ) 

Parameters:
aBranch The Branch to add

Versionned* Spm::Core::Element::remove ( const miniXml::ustring &  aBranch  ) 

Parameters:
aBranch The name of the Branch to remove

std::vector<Versionned *>& Spm::Core::Element::getVersions (  ) 

Returns:
The list of Branch of this Element

const std::vector<Versionned *>& Spm::Core::Element::getVersions (  )  const

const Versionned* Spm::Core::Element::getVersionned ( const miniXml::ustring &  branchName  )  const

Parameters:
branchName The name of the wanted Branch
Returns:
The wanted Branch

Versionned* Spm::Core::Element::getVersionned ( const miniXml::ustring &  branchName  ) 

Parameters:
branchName The name of the wanted Branch
Returns:
The wanted Branch

Versionned* Spm::Core::Element::remove ( Versionned branch  ) 

iterator Spm::Core::Element::find ( Versionned branch  )  [inline]

const_iterator Spm::Core::Element::find ( Versionned branch  )  const [inline]

iterator Spm::Core::Element::find ( const miniXml::ustring &  name  ) 

const_iterator Spm::Core::Element::find ( const miniXml::ustring &  name  )  const

bool Spm::Core::Element::operator< ( const Element e  )  const

bool Spm::Core::Element::operator< ( const Element e  )  const

iterator Spm::Core::Element::begin (  )  [inline]

iterator Spm::Core::Element::end (  )  [inline]

const_iterator Spm::Core::Element::begin (  )  const [inline]

const_iterator Spm::Core::Element::end (  )  const [inline]

reverse_iterator Spm::Core::Element::rbegin (  )  [inline]

reverse_iterator Spm::Core::Element::rend (  )  [inline]

const_reverse_iterator Spm::Core::Element::rbegin (  )  const [inline]

const_reverse_iterator Spm::Core::Element::rend (  )  const [inline]


Friends And Related Function Documentation

friend class ElementStore [friend]

Reimplemented in Spm::Core::Package.


Member Data Documentation

Category* Spm::Core::Element::category [protected]

miniXml::ustring Spm::Core::Element::description [protected]

miniXml::ustring Spm::Core::Element::elementURL [protected]

std::vector<Versionned *> Spm::Core::Element::versions_ [protected]


The documentation for this class was generated from the following file:
Generated on Sat Mar 21 17:00:14 2009 for libSpm by  doxygen 1.5.2