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

Method InitModel

src/input_output/FGOutputSocket.cpp:136–151  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

134//%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
135
136bool FGOutputSocket::InitModel(void)
137{
138 if (FGOutputType::InitModel()) {
139 delete socket;
140 socket = new FGfdmSocket(SockName, SockPort, SockProtocol, precision);
141
142 if (socket == 0) return false;
143 if (!socket->GetConnectStatus()) return false;
144
145 PrintHeaders();
146
147 return true;
148 }
149
150 return false;
151}
152
153//%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
154

Callers

nothing calls this directly

Calls 1

GetConnectStatusMethod · 0.80

Tested by

no test coverage detected