2 #include <samchon/example/packer/Instance.hpp> 12 using namespace library;
13 using namespace protocol;
52 Product(
const string &name,
int price,
int volume,
int weight)
53 : super(name, price, volume, weight)
62 virtual auto TAG() const ->
string override 70 virtual auto toString() const ->
string override 72 return "Product " + super::toString();
An entity, a standard data class.
Product()
Defualt Constructor.
Product(const string &name, int price, int volume, int weight)
Construct from arguments.
virtual auto TAG() const -> string override
A tag name when represented by XML.
Top level namespace of products built from samchon.
virtual auto toString() const -> string override
Return a string represents the Instance.