You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Factory classes would now look for a "type: ClassName" YAML-esque field in config files. They would reset the file pointer and pass opened file to appropriate class's initializer.
loadFromFile(ifstream config)
or
loadFromFile(ifstream index)
Pros:
Removes file opening boilerplate from loadFromFile methods
Greatly reduces file extension clutter
ClassName uniquely identifies class and is easy to autogenerate (no key:value needed)
The text was updated successfully, but these errors were encountered:
Factory classes would now look for a "type: ClassName" YAML-esque field in config files. They would reset the file pointer and pass opened file to appropriate class's initializer.
loadFromFile(ifstream config)
or
loadFromFile(ifstream index)
Pros:
The text was updated successfully, but these errors were encountered: