#include <package.h>
Inheritance diagram for Package:
Public Member Functions | |
Package () | |
Default Constructor. | |
Package (PMString description) | |
Constructor - only supply the description, looks up other things. | |
Package (PMString category, PMString name) | |
Constructor - suppy name and category. | |
Package (PMString category, PMString name, MaskedStatus state) | |
Constructor - supply all info. | |
Package (const Package ©) | |
Copy Constructor. | |
virtual | ~Package () |
Destructor. | |
bool | operator== (const Package ¶m) |
Equality operator. | |
bool | operator!= (const Package ¶m) |
Non equality operator. | |
virtual Dbt | GetKey () |
Return the Key used by DB. | |
virtual Dbt | GetData () |
Return the Data used by DB. | |
virtual void | ReadData (Dbt data) |
Read the Data used by DB. | |
virtual void | ReadKey (Dbt key) |
Read the Key used by DB. | |
Public Attributes | |
PMString | name |
Package Name. | |
PMString | category |
Package Category. | |
PMString | url |
Package url. | |
PMString | description |
Package description. | |
MaskedStatus | packageMaskedState |
Masked State for this system, set by user. | |
Protected Member Functions | |
std::vector< PMString > | _GetInfo (PMString description) |
Given a description, returns vector of package info. | |
std::vector< PMString > | _FindCategories (PMString name) |
Given a name, returns a vector of possible categories. |
|
Default constructor - sets the usual maskedState. |
|
Constructor that takes in a PMString in the form category/packagename-version. Throws the exceptions recieved by _GetInfo(). Will call _FindCategories if it is needed. Do not use this if you can help it as it does not use the DB and will be slow.
|
|
Constructor, takes in PMStrings for category and name.
|
|
Constructor to fill in all the info using passed objects.
|
|
Copy constructor.
|
|
Destructor. |
|
Find the category referenced by name. Returns a vector of possible categories. Uses the directory structure at the moment and not the database. This is a speed issue and so this should be used sparingly where the database is not applicable.
|
|
Takes a description and returns a vector with category name in ( at 0 and 1 respectively ). throws EInvalidDescription if it is recieved by GetCategory or GetName.
|
|
Get the Data used by DB. Stores category, url, description and packageMaskedState.
Reimplemented in InstalledPackage, and PackageVersion. |
|
Get the Key used by DB. Stores name and thats it.
Reimplemented in InstalledPackage, and PackageVersion. |
|
Non Equality operator - with Package
Reimplemented in InstalledPackage, and PackageVersion. |
|
Equality operator - with Package.
Reimplemented in InstalledPackage, and PackageVersion. |
|
Read the Data stored in the DB
Reimplemented in InstalledPackage, and PackageVersion. |
|
Read the Key stored in the DB.
Reimplemented in InstalledPackage, and PackageVersion. |