File: data.cc

package info (click to toggle)
simrisc 14.02.00-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 2,888 kB
  • sloc: cpp: 5,090; makefile: 110; fortran: 107; ansic: 79; sh: 79
file content (61 lines) | stat: -rw-r--r-- 2,690 bytes parent folder | download
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
//#define XERR
#include "err.ih"

///Err Err::s_err;                         // the singleton object

LineInfo const *Err::s_lineInfo;           // last set LineInfo
bool Err::s_handle = true;                 // handle a context message

char const *Err::s_src[]
{
    "config file",
    "analysis specification",
    ""
};

char const *Err::s_plain[]              // plain msg: no line context
{
    "probabilities don't sum to 1"                  , // CUMPROB
    "Incidence carrier probabilites must sum to 1"  , // INCIDENCE_SUM_PROB
    "specification(s) missing for"                  , // MISSING_SPEC
    "Tumor Survival: type(s) missing"               , // MISSING_TYPE
    "multiply specified: "                          , // MULTIPLY_SPECIFIED
    "undefined specification"                       , // UNDEFINED_SPEC
};

char const *Err::s_context[]            // line context available
{
    "parameter value too small"             , // AT_LEAST       
    "invalid Survival type"                 , // INVALID_TYPE
    "invalid value"                         , // INVALID_VALUE
    "modality repeatedly specified"         , // MODALITY_REPEATED
    "parameter cannot be negative"          , // NEGATIVE
    "age ranges not consecutive"            , // NOT_CONSECUTIVE
    "proportions must sum to 1"             , // PROB_SUM,
    "parameter(s) must lie within 0..1"     , // RANGE_0_1
    "screening round ages don't increment"  , // ROUND_AGES_DONT_INC
    "specification error"                   , // SPEC_ERROR
    "undefined distribution"                , // UNDEFINED_DIST
    "undefined modality"                    , // UNDEFINED_MODALITY
};


//     "integral number not found (parameter `"                        ,   // MISSING_NR,


//     "`tumorIncidence' probabilities must add up to 1"               ,   // INVALID_PROBSUM,


//     string{"max. number of carrier specifications ("                 +  // N_CARRIERS,
//         to_string(END_CARRIERS) + " exceeded"}.c_str()              , 

//     "`tumorGrowth:' startDiameter, Mu and Sigma not specified"      ,   // TUMORGROWTH_STARTDIAM,  
//     "`tumorGrowth:' no `agegroups' defined"                         ,   // TUMORGROWTH_AGEGROUPS,  
//     "at least one `tumorIncidence:' parameter line is required"     ,   // TUMORINCIDENCE_SIZE,    
//     "missing `tumorSurvival' types (a, b, c and d are required)\n"  ,   // TUMORSURVIVAL_TYPES,    


//     string{"max. number of carrier specifications ("                 +  // N_CARRIERS,
//         to_string(END_CARRIERS) + " exceeded"}.c_str()              , 
//     "age ranges not consecutive "                                   ,   // NOT_CONSECUTIVE,