#71 closed defect (fixed)
TimeSet
Reported by: | Lander Ibarra Iriondo | Owned by: | danirus |
---|---|---|---|
Priority: | high | Milestone: | |
Component: | TimeSetAlgebra | Version: | head |
Severity: | major | Keywords: | |
Cc: |
Description
Why Tol doesn´t show message error?
TimeSet In(y2004m06d10, y2004m06d09);
Change History (3)
comment:1 Changed 21 years ago by
Status: | new → assigned |
---|
comment:2 Changed 21 years ago by
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
comment:3 Changed 18 years ago by
bug_file_loc: | → http://cvs.tol-project.org/viewcvs.cgi/tol_tests/tol/Bugzilla/bug_000018 |
---|
Note: See
TracTickets for help on using
tickets.
This bug has been resolved.
You can update your sources from CVS and compile it.
Now, if you try to create a TimeSet doing:
TimeSet a = In(y2004m1d10, y2004m1d9);
You'll get a warning message that tell you are passing wrong arguments, and
that an Empty TimeSet has been returned. Then you could use variable "a" but
it always behaves as an Empty TimeSet, I said, the Tol TimeSet constant known
as "W".
To implement the solution, a new macro named DeclareTimeSetEvaluator has been
created in tol_boper.h. Each subclass that implements a TimeSet use this new
Macro and send a Warning message if an exception is thrown at construction
time. To better follow these changes, see BTmsInterval, implemented in
tol_btmsgrav.h, it is the only one TimeSet class that throw an exception at
construction time.