File: setvariables.cc

package info (click to toggle)
simrisc 16.06.00-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,568 kB
  • sloc: cpp: 6,889; fortran: 669; makefile: 112; ansic: 112; sh: 107
file content (30 lines) | stat: -rw-r--r-- 689 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#define XERR
#include "costs.ih"

void Costs::setVariables(bool lungCancer)
{
    if (not lungCancer)
    {
        d_base.back() = "biop:";
        Parser::nonNegative(d_base, d_usingCosts);
        d_treatment = &Costs::otherTreatment;
        return;
    }

    // below: ony used for LC simulations

            // reset d_base to read the CT: costs
    d_base.back() = "CT:";
    d_base.push_back("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;