Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010 #ifndef __RD_CATALOGENTRY_H__
00011 #define __RD_CATALOGENTRY_H__
00012
00013 #include <iostream>
00014 #include <string>
00015
00016 namespace RDCatalog {
00017
00018
00019 class CatalogEntry {
00020 public:
00021 virtual ~CatalogEntry() = 0;
00022
00023
00024 void setBitId(int bid) {d_bitId = bid;};
00025
00026
00027 int getBitId() const {return d_bitId;};
00028
00029
00030 virtual std::string getDescription() const = 0;
00031
00032
00033 virtual void toStream(std::ostream &ss) const = 0;
00034
00035 virtual std::string Serialize() const = 0;
00036
00037 virtual void initFromStream(std::istream &ss) = 0;
00038
00039 virtual void initFromString(const std::string &text) = 0;
00040
00041
00042
00043 private:
00044 int d_bitId;
00045 };
00046 }
00047
00048 #endif
00049