Samchon Framework for CPP  1.0.0
ProductArray.hpp
1 #pragma once
2 #include <samchon/examples/packer/Product.hpp>
3 
4 #include <samchon/protocol/SharedEntityArray.hpp>
5 
6 namespace samchon
7 {
8 namespace examples
9 {
10 namespace packer
11 {
12  using namespace std;
13 
14  using namespace library;
15  using namespace protocol;
16 
23  : public SharedEntityArray<Product>
24  {
25  private:
27 
28  public:
29  /* ---------------------------------------------------------
30  CONSTRUCTORS
31  --------------------------------------------------------- */
32  using super::super;
33  virtual ~ProductArray() = default;
34 
35  protected:
36  virtual auto createChild(shared_ptr<XML>) -> Product* override
37  {
38  return new Product();
39  };
40 
41  public:
42  /* ---------------------------------------------------------
43  EXPORTERS
44  --------------------------------------------------------- */
45  virtual auto TAG() const -> string override
46  {
47  return "productArray";
48  };
49  virtual auto CHILD_TAG() const -> string override
50  {
51  return "product";
52  };
53  };
54 };
55 };
56 };
An Entity and a container of children Entity objects.
Definition: EntityGroup.hpp:40
virtual auto CHILD_TAG() const -> string override
A tag name of children.
A product, merchandise.
Definition: Product.hpp:26
An array of Product objects.