Changes
Page history
Update Configuration Checks
authored
Nov 20, 2018
by
Alain O' Miniussi
Hide whitespace changes
Inline
Side-by-side
Developer's-corner/Configuration-Checks.md
View page @
1e8059cc
...
...
@@ -9,10 +9,12 @@ When loading the configuration, all registered checks will be called upon the pr
## example
Let say you want to make sure that user does not specify both co-rotating referential and the rotation speed:
```
bool
CheckReferentialRotation(pt::ptree const& pt, std::ostream& log) {
DiskReferentialType type = pt.get<DiskReferentialType>("Disk.Referential.Type");
DiskReferentialType type = pt.get<DiskReferentialType>("Disk.Referential.Type");
bool pass = true;
switch (type) {
case DR_COROTATING:
...
...
...
...