| 69 | //%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 70 | |
| 71 | void FGModelFunctions::PreLoad(Element* el, FGFDMExec* fdmex, string prefix) |
| 72 | { |
| 73 | // Load model post-functions, if any |
| 74 | |
| 75 | Element *function = el->FindElement("function"); |
| 76 | |
| 77 | while (function) { |
| 78 | string fType = function->GetAttributeValue("type"); |
| 79 | if (fType.empty() || fType == "pre") |
| 80 | PreFunctions.push_back(std::make_shared<FGFunction>(fdmex, function, prefix)); |
| 81 | else if (fType == "template") { |
| 82 | string name = function->GetAttributeValue("name"); |
| 83 | fdmex->AddTemplateFunc(name, function); |
| 84 | } |
| 85 | |
| 86 | function = el->FindNextElement("function"); |
| 87 | } |
| 88 | } |
| 89 | |
| 90 | //%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 91 |
no test coverage detected