This file tests the deprecated properties system macros.
We define a few type tags and property tags, then we attach values to (TypeTag, PropertyTag) tuples and finally we use them in the main function and print some diagnostic messages.
|
Type tag CompactCar | Dumux::Properties::INHERITS_FROM (Vehicle)) |
|
Type tag Sedan | Dumux::Properties::INHERITS_FROM (CompactCar)) |
|
Type tag Pickup | Dumux::Properties::INHERITS_FROM (Sedan, Truck)) |
|
Type tag HummerH1 | Dumux::Properties::INHERITS_FROM (Sedan, Pickup, Tank)) |
|
| Dumux::Properties::SET_BOOL_PROP (Vehicle, AutomaticTransmission, false) |
|
| Dumux::Properties::SET_INT_PROP (CompactCar, TopSpeed, GET_PROP_VALUE(TypeTag, GasUsage) *30) |
|
| Dumux::Properties::SET_INT_PROP (CompactCar, NumSeats, 5) |
|
| Dumux::Properties::SET_INT_PROP (CompactCar, GasUsage, 4) |
|
| Dumux::Properties::SET_INT_PROP (Truck, TopSpeed, 100) |
|
| Dumux::Properties::SET_INT_PROP (Truck, NumSeats, 2) |
|
| Dumux::Properties::SET_INT_PROP (Truck, GasUsage, 12) |
|
| Dumux::Properties::SET_INT_PROP (Truck, Payload, 35) |
|
| Dumux::Properties::SET_INT_PROP (Tank, TopSpeed, 60) |
|
| Dumux::Properties::SET_INT_PROP (Tank, GasUsage, 65) |
|
| Dumux::Properties::SET_INT_PROP (Tank, CanonCaliber, 120) |
|
| Dumux::Properties::SET_INT_PROP (Sedan, GasUsage, 7) |
|
| Dumux::Properties::SET_BOOL_PROP (Sedan, AutomaticTransmission, true) |
|
| Dumux::Properties::SET_INT_PROP (Pickup, TopSpeed, 120) |
|
| Dumux::Properties::SET_INT_PROP (Pickup, Payload, 5) |
|
| Dumux::Properties::SET_INT_PROP (HummerH1, TopSpeed, GET_PROP_VALUE(TTAG(Pickup), TopSpeed)) |
|
| Dumux::Properties::SET_TYPE_PROP (Vehicle, TankType, Dumux::TankType) |
|
int | main () |
|