#ifndef __HOMEBOX_H__ #define __HOMEBOX_H__ #include #include namespace HomeBox { class Item { public: std::string name; std::string location; int cost; template void persist(Action &a) { Wt::Dbo::field(a, name, "name"); Wt::Dbo::field(a, location, "location"); Wt::Dbo::field(a, cost, "cost"); } }; } // namespace HomeBox #endif // __HOMEBOX_H__