Older/Database/HomeBox.h
amass 059d6d3879
Some checks failed
Deploy / Build (push) Failing after 3m33s
use wt dbo.
2024-11-26 22:58:54 +08:00

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__