#pragma once #include "Object.h" #include "Range.h" // database object table row struct UniversalObject { String name; String description; String type; Range value; int protection; }; class ObjectFactory { public: static Object * create_object(const UniversalObject & universal); static Object * create_object(const String & name = "", const String & description = ""); private: ObjectFactory() = delete; };