23 lines
437 B
C++
23 lines
437 B
C++
#ifndef __HOMEBOX_H__
|
|
#define __HOMEBOX_H__
|
|
|
|
#include <Wt/Dbo/Dbo.h>
|
|
#include <string>
|
|
|
|
namespace HomeBox {
|
|
class Item {
|
|
public:
|
|
std::string name;
|
|
std::string location;
|
|
int cost;
|
|
|
|
template <class Action>
|
|
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__
|