#define XERR
#include "costs.ih"

void Costs::setVariables(bool lungCancer)
{
    // d_base = { "Costs:", "???", "????"}

    if (not lungCancer)
    {
        d_base.resize(2);
        d_base[1] = "biop:";
        Parser::nonNegative(d_base, d_usingCosts);
        d_treatment = &Costs::otherTreatment;
        return;
    }

            // reset d_base to read the CT: costs
    d_base = StringVect{ "Modalities:", "CT:", "costs:" };

    d_treatmentCosts.resize(2);
    d_treatment = &Costs::lcTreatment;
    setLungCancer();
}


//        d_using     = &Costs::lcUsing;
//        d_screening = &Costs::lcScreening;

//        d_using     = &Costs::otherUsing;
//        d_screening = &Costs::otherScreening;
