JausTime jausTimeCreate(void) { JausTime time = (JausTime)malloc(sizeof(JausTimeStruct)); time->timeStamp = newJausUnsignedInteger(0); time->dateStamp = newJausUnsignedShort(0); time->millisec = newJausUnsignedShort(0); time->second = newJausUnsignedShort(0); time->minute = newJausUnsignedShort(0); time->hour = newJausUnsignedShort(0); time->day = newJausUnsignedShort(0); time->month = newJausUnsignedShort(0); time->year = newJausUnsignedShort(0); return time; }
// JausWorldModelFeatureClass Constructor JausWorldModelFeatureClass featureClassCreate(void) { JausWorldModelFeatureClass fcClass; fcClass = (JausWorldModelFeatureClass) malloc(sizeof(JausWorldModelFeatureClassStruct)); if(fcClass) { fcClass->id = newJausUnsignedShort(0); // Enumeration, defined by system memset(fcClass->metaData, 0, JAUS_WM_FC_METADATA_STRING_LENGTH); // String of Metadata information defined for this Feature Class fcClass->attribute = featureClassAttributeCreate(); // Feature Class Attribute data type and value return fcClass; } else { return NULL; } }
// jausCommand Constructor JausCommand jausCommandCreate(void) { JausCommand command; command = (JausCommand) malloc(sizeof(struct JausCommandStruct)); if(command) { command->commandCode = newJausUnsignedShort(0); // Command Code (default to zero) command->presenceVector = newJausUnsignedInteger(JAUS_INTEGER_PRESENCE_VECTOR_ALL_ON); // Presence Vector return command; } else { return NULL; } }