MCPcopy Create free account
hub / github.com/JSBSim-Team/jsbsim / Load

Method Load

src/input_output/FGInputSocket.cpp:64–82  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62//%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
63
64bool FGInputSocket::Load(Element* el)
65{
66 if (!FGInputType::Load(el))
67 return false;
68
69 SockPort = atoi(el->GetAttributeValue("port").c_str());
70
71 if (SockPort == 0) {
72 FGXMLLogging log(el, LogLevel::ERROR);
73 log << "No port assigned in input element\n";
74 return false;
75 }
76
77 string action = el->GetAttributeValue("action");
78 if (to_upper(action) == "BLOCKING_INPUT")
79 BlockingInput = true;
80
81 return true;
82}
83
84//%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
85

Callers

nothing calls this directly

Calls 3

c_strMethod · 0.80
GetAttributeValueMethod · 0.80
LoadFunction · 0.50

Tested by

no test coverage detected