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 std::string &categoryName) throw (BadNameException)
 ~Category ()
void addSubCategory (Category *aSubCategory) throw (AlreadyExistingCategoryException)
void delSubCategory (const std::string &aSubCategory) throw (UnknownCategoryException)
const CategorygetSubCategory (const std::string &aSubCategory) throw (UnknownCategoryException)
const std::list< Category * > & getCategorys ()
std::string getCompleteName ()
std::string getCompleteName () const
void setName (const std::string &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
const std::string & getOwner ()

Friends

class Store
class PackageSystem

Member Typedef Documentation

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

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

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

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


Constructor & Destructor Documentation

Spm::Core::Category::Category  ) 
 

Spm::Core::Category::Category const std::string &  categoryName  )  throw (BadNameException)
 

Parameters:
categoryName The name of the Category

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


Member Function Documentation

void Spm::Core::Category::addSubCategory Category aSubCategory  )  throw (AlreadyExistingCategoryException)
 

Parameters:
aSubCategory A Category to add

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

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

void Spm::Core::Category::delSubCategory const std::string &  aSubCategory  )  throw (UnknownCategoryException)
 

Parameters:
aSubCategory The name of the sub Category to remove

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

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

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

Returns:
The list of sub categorys of this category

std::string Spm::Core::Category::getCompleteName  )  const
 

Returns:
the complete name of the Category

std::string Spm::Core::Category::getCompleteName  ) 
 

Returns:
the complete name of the Category

const std::string& Spm::Core::Category::getOwner  ) 
 

const Category* Spm::Core::Category::getSubCategory const std::string &  aSubCategory  )  throw (UnknownCategoryException)
 

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

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

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

Returns:
The top Category

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

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

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

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

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

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

void Spm::Core::Category::setName const std::string &  aName  ) 
 

Parameters:
aName the new name of the Category

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

Parameters:
category The new top Category


Friends And Related Function Documentation

friend class PackageSystem [friend]
 

friend class Store [friend]
 


The documentation for this class was generated from the following file:
Generated on Wed Jul 4 15:27:21 2007 for libSpm by  doxygen 1.4.6