00001
00002
00003
00004
00005
00006
00007
00008 #ifndef incBAR
00009 #define incBAR
00010
00011
00012 #include "base.hpp"
00013
00014 namespace persist_test {
00015
00016 class bar : public base
00017 {
00018 private:
00019 int x;
00020 double y;
00021 int z;
00022
00023 public:
00024 bar(const std::string &type, const std::string &name) :
00025 base(type, name),
00026 x(0),
00027 y(0),
00028 z(0)
00029 {};
00030
00031
00032 virtual ph::common::object_base *get_composite_object(const std::string &name);
00033 virtual bool has(const std::string &name) const;
00034 virtual void set(const std::string &name, const std::string &value);
00035 virtual std::string get(const std::string &name) const;
00036 virtual bool write(ph::common::object_writer *writer) const;
00037 };
00038
00039 };
00040
00041 #endif // incBAR