Spm::Core::Category Class Reference

#include <category.h>

Inheritance diagram for Spm::Core::Category:

Spm::Util::Object List of all members.

Public Types

typedef std::list< Category
* >::iterator 
iterator
typedef std::list< Category
* >::const_iterator 
const_iterator
typedef std::list< Category
* >::reverse_iterator 
reverse_iterator
typedef std::list< Category
* >::const_reverse_iterator 
const_reverse_iterator

Public Member Functions

 Category ()
 Category (const miniXml::ustring &categoryName)
 ~Category ()
void add (Category *aSubCategory)
Categoryremove (const miniXml::ustring &aSubCategory)
const CategorygetCategory (const miniXml::ustring &aSubCategory)
const std::list< Category * > & getCategorys ()
miniXml::ustring getCompleteName ()
miniXml::ustring getCompleteName () const
void setName (const miniXml::ustring &aName)
void setTopCategory (const Category *category)
const CategorygetTopCategory ()
const CategorygetTopCategory () const
iterator begin ()
reverse_iterator rbegin ()
iterator end ()
reverse_iterator rend ()
const_iterator begin () const
const_reverse_iterator rbegin () const
const_iterator end () const
const_reverse_iterator rend () const
bool operator< (const Category *p) const
bool operator< (const Category &p) const

Friends

class CategoryStore
class PackageSystem

Member Typedef Documentation

typedef std::list<Category *>::iterator Spm::Core::Category::iterator

typedef std::list<Category *>::const_iterator Spm::Core::Category::const_iterator

typedef std::list<Category *>::reverse_iterator Spm::Core::Category::reverse_iterator

typedef std::list<Category *>::const_reverse_iterator Spm::Core::Category::const_reverse_iterator


Constructor & Destructor Documentation

Spm::Core::Category::Category (  ) 

Spm::Core::Category::Category ( const miniXml::ustring &  categoryName  ) 

Parameters:
categoryName The name of the Category

Spm::Core::Category::~Category (  ) 


Member Function Documentation

void Spm::Core::Category::add ( Category aSubCategory  ) 

Parameters:
aSubCategory A Category to add

Category* Spm::Core::Category::remove ( const miniXml::ustring &  aSubCategory  ) 

Parameters:
aSubCategory The name of the sub Category to remove

const Category* Spm::Core::Category::getCategory ( const miniXml::ustring &  aSubCategory  ) 

Parameters:
aSubCategory The name of the wanted Category
Returns:
the wanted Category

const std::list<Category *>& Spm::Core::Category::getCategorys (  ) 

Returns:
The list of sub categorys of this category

miniXml::ustring Spm::Core::Category::getCompleteName (  ) 

Returns:
the complete name of the Category

miniXml::ustring Spm::Core::Category::getCompleteName (  )  const

Returns:
the complete name of the Category

void Spm::Core::Category::setName ( const miniXml::ustring &  aName  ) 

Parameters:
aName the new name of the Category

void Spm::Core::Category::setTopCategory ( const Category category  ) 

Parameters:
category The new top Category

const Category* Spm::Core::Category::getTopCategory (  ) 

Returns:
The top Category

const Category* Spm::Core::Category::getTopCategory (  )  const

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

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

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

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

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

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

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

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

bool Spm::Core::Category::operator< ( const Category p  )  const

bool Spm::Core::Category::operator< ( const Category p  )  const


Friends And Related Function Documentation

friend class CategoryStore [friend]

friend class PackageSystem [friend]


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