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