Deprecate Val(double, TypeTag) ctor, add TimeVal/DoubleVal subclasses

This also updates all usages of the deprecated Val ctor to use
either IntervalVal, TimeVal, or DoubleVal ctors.  The reason for
doing away with the old constructor is that using it with TYPE_INTERVAL
isn't strictly correct since there exists a more specific subclass,
IntervalVal, with overriden ValDescribe() method that ought to be used
to print such values in a more descriptive way.
This commit is contained in:
Jon Siwek 2020-06-02 18:19:40 -07:00
parent a431f6b45d
commit 5b4313b593
76 changed files with 847 additions and 782 deletions

View file

@ -14,7 +14,7 @@
1532119210.151927 testport 42/tcp 45/unknown ../configfile
1532119210.151927 testaddr 127.0.0.1 127.0.0.1 ../configfile
1532119210.151927 testaddr 127.0.0.1 2607:f8b0:4005:801::200e ../configfile
1532119210.151927 testinterval 1.0 sec 60.0 ../configfile
1532119210.151927 testinterval 1.0 sec 1.0 min ../configfile
1532119210.151927 testtime 0.0 1507321987.0 ../configfile
1532119210.151927 test_set (empty) b,c,a,d,erdbeerschnitzel ../configfile
1532119210.151927 test_vector (empty) 1,2,3,4,5,6 ../configfile