+bool FGOutput::Load(int subSystems, std::string protocol, std::string type, std::string port, std::string name, double outRate, std::vector<FGPropertyManager *> & outputProperties)
+{
+ SetType(type);
+ SetRate(outRate);
+ SubSystems = subSystems;
+ OutputProperties = outputProperties;
+
+ if (((Type == otCSV) || (Type == otTab)) && (name != "cout") && (name !="COUT"))
+ name = FDMExec->GetRootDir() + name;
+
+ if (!port.empty() && (Type == otSocket || Type == otFlightGear)) {
+ SetProtocol(protocol);
+ socket = new FGfdmSocket(name, atoi(port.c_str()), Protocol);
+ } else {
+ BaseFilename = Filename = name;
+ }
+
+ Debug(2);
+ return true;
+}
+