#ifndef PACKAGE_CATEGORY_H
#define PACKAGE_CATEGORY_H
#include <Referenceable.h>
#include <String.h>
class PackageCategory : public BReferenceable {
public:
PackageCategory();
PackageCategory(const BString& code,
const BString& name);
PackageCategory(const PackageCategory& other);
bool operator<(const PackageCategory& other) const;
bool operator==(const PackageCategory& other) const;
bool operator!=(const PackageCategory& other) const;
const BString& Code() const
{ return fCode; }
const BString& Name() const
{ return fName; }
int Compare(const PackageCategory& other) const;
private:
BString fCode;
BString fName;
};
typedef BReference<PackageCategory> CategoryRef;
extern bool IsPackageCategoryRefLess(const CategoryRef& c1, const CategoryRef& c2);
#endif