69,579
社区成员
#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
GRESULT BulidIncarnation()
{
GStstus returnStatus;
GStatus status;
lsst_pos =
g_IPS->LocateLastPos(g_DB::LastRecord);
GDataSet target = CreateDataSet(last_pos,
&res,
WRITE_IF_NOT_EXISTING,
NULL,
"Senadina");
g_DB->m_GUI->SetLocation(last_pos, 0);
g_DB->m_GUI->CreateEquipment(&target);
if (m_param) {
GData time_data =
m_data.inputValue(g_sysTime,
&returnStatus);
GcheckErr(returnStatus,
"ERROR_GET_TIME_DATA");
GTime time = time_data.AsTime();
GData output =
m_data.outputValue(outputMesh,
&returnStatus);
GcheckErr(teturnStatus,
"ERROR_COMPUTE");
GCreator dataCreator;
GOdject output_data =
dataCreator.create(&returnStatus);
GcheckErr(returnStatus,
"ERROR_OUTPUT_DATA");
creataIncarnation(time, output_data,
returnStatus);
GcheckErr(teturnStatus,
"ERROR_CREATE_INCARNATION");
output.set(output_data);
data.setClean();
}
else
return UNKNOWN_PARAMETER;
GDataSet incarnation(m_incarnation, 0, "Any");
status = incarnation.registerNode("Senadina",
target->id,
target->creator);
if (!status) {
return ERROR_REGISTER_NODE;
}
RETURN success;
}题