00001
00002
00003
00004
00005
00006 #ifndef __RD_CATALOGPARAMS_H__
00007 #define __RD_CATALOGPARAMS_H__
00008
00009 #include <string>
00010
00011 namespace RDCatalog {
00012
00013 class CatalogParams {
00014 public:
00015 virtual ~CatalogParams() = 0;
00016
00017
00018 std::string getTypeStr() const { return d_typeStr; };
00019
00020
00021 void setTypeStr(const std::string &typeStr) { d_typeStr=typeStr; };
00022
00023
00024 virtual void toStream(std::ostream &) const = 0;
00025
00026 virtual std::string Serialize() const = 0;
00027
00028 virtual void initFromStream(std::istream &ss) = 0;
00029
00030 virtual void initFromString(const std::string &text) = 0;
00031
00032 protected:
00033 std::string d_typeStr;
00034 };
00035 }
00036
00037 #endif