Program Listing for File SpeciationCommands.h

Return to documentation for file (necsim/SpeciationCommands.h)

//This file is part of necsim project which is released under MIT license.
//See file **LICENSE.txt** or visit https://opensource.org/licenses/MIT) for full license details.

#include <cstdio>
#include <memory>
#include "Community.h"
#include "TreeNode.h"
#include "SpecSimParameters.h"
namespace necsim
{
    class SpeciationCommands
    {
    private:
        // Contains all speciation current_metacommunity_parameters
        shared_ptr<SpecSimParameters> sp;
        // Command-line arguments for parsing
        vector<string> comargs;
        // number of command-line arguments
        int argc;

    public:

        SpeciationCommands() : sp(make_shared<SpecSimParameters>())
        {

        }

        void parseArgs();

        int applyFromComargs(int argc_in, char** argv);

    };
}