CartwrightLab / dawg

Simulating Sequence Evolution
GNU General Public License v2.0
11 stars 3 forks source link

Investigate Builder pattern #33

Closed zmertens closed 6 years ago

zmertens commented 7 years ago
zmertens commented 7 years ago

Basic example of builder syntax on my fork: trick_builder branch.
It uses XMacros to specify the parameters and then converts them from an enum/array over to the current trick input ( vector<section> where each section holds a map<string, vector<string>>).

The conversion I have in dawg.cpp is very messy at the moment but's just to get the example up and running.

example of the basic dna example from develop and my branch (example file unchanged)