Project

General

Profile

Actions

Feature #221

open

Feature #78: Output system improvements

Support conditionals in output definition files

Added by Ole Hansen over 5 years ago. Updated over 5 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:
16.00 h
Responsible:

Description

Maintenance of output definition files could be made easier if sections of definitions could be enabled by conditionals like preprocessor #if or #ifdef. The variables involved could be set via the THaTextvars interface. ("Textvars" are already expanded before processing the output definitions.) Example

#if ${replaydetail} > 5
block ${arm}.vdc.*
#endif

After pre-scanning the output definition file with replaydetail set to "10" and arm set to "L", the parser would see
#if 10 > 5
block L.vdc.*
#endif

The expression 10 > 5 would be evaluated as true, and so all L.vdc.* variables will be included in the output.

Expressions should support the usual comparisons (==, >, <, etc.) and logicals (&&, ||), parentheses, etc. Maybe implement it as a temporary TFormula?

Actions #1

Updated by Ole Hansen over 5 years ago

  • Target version set to 1.6
Actions #2

Updated by Ole Hansen over 5 years ago

  • Target version changed from 1.6 to 1.7
Actions #3

Updated by Ole Hansen over 5 years ago

  • Parent task deleted (#78)
Actions #4

Updated by Ole Hansen over 5 years ago

  • Parent task set to #78
Actions

Also available in: Atom PDF