DdsJs/ddsjs_base.cpp
// Initialization of topic DataWriterQos field type.
Initialization of topic DataWriterQos field type.
Initialization of topic DataWriterQos field type .
void DataWriterQosField::Init(Local<Object> exports)
{
	Isolate *isolate = Isolate::GetCurrent();
	auto ctorFunc = FunctionTemplate::New(
		isolate,
		DataWriterQosField::New
	);
	Maybe< bool > setResult = exports->Set(
		isolate->GetCurrentContext(),
		String::NewFromUtf8(isolate, "DataWriterQos"),
		ctorFunc->GetFunction()
	);
	if (!setResult.FromMaybe(false))
	{
	}
	DataWriterQosField::durabilityFieldName.Reset(isolate,
		String::NewFromUtf8(isolate, "durability"));
	DataWriterQosField::durability_serviceFieldName.Reset(isolate,
		String::NewFromUtf8(isolate, "durability_service"));
	DataWriterQosField::deadlineFieldName.Reset(isolate,
		String::NewFromUtf8(isolate, "deadline"));
	DataWriterQosField::latency_budgetFieldName.Reset(isolate,
		String::NewFromUtf8(isolate, "latency_budget"));
	DataWriterQosField::livelinessFieldName.Reset(isolate,
		String::NewFromUtf8(isolate, "liveliness"));
	DataWriterQosField::reliabilityFieldName.Reset(isolate,
		String::NewFromUtf8(isolate, "reliability"));
	DataWriterQosField::destination_orderFieldName.Reset(isolate,
		String::NewFromUtf8(isolate, "destination_order"));
	DataWriterQosField::historyFieldName.Reset(isolate,
		String::NewFromUtf8(isolate, "history"));
	DataWriterQosField::resource_limitsFieldName.Reset(isolate,
		String::NewFromUtf8(isolate, "resource_limits"));
	DataWriterQosField::transport_priorityFieldName.Reset(isolate,
		String::NewFromUtf8(isolate, "transport_priority"));
	DataWriterQosField::lifespanFieldName.Reset(isolate,
		String::NewFromUtf8(isolate, "lifespan"));
	DataWriterQosField::user_dataFieldName.Reset(isolate,
		String::NewFromUtf8(isolate, "user_data"));
	DataWriterQosField::ownershipFieldName.Reset(isolate,
		String::NewFromUtf8(isolate, "ownership"));
	DataWriterQosField::ownership_strengthFieldName.Reset(isolate,
		String::NewFromUtf8(isolate, "ownership_strength"));
	DataWriterQosField::writer_data_lifecycleFieldName.Reset(isolate,
		String::NewFromUtf8(isolate, "writer_data_lifecycle"));
}
void DataWriterQosField :: Init ( Local < Object > exports ) { Isolate * isolate = Isolate :: GetCurrent ( ) ; auto ctorFunc = FunctionTemplate :: New ( isolate , DataWriterQosField :: New ) ; Maybe < bool > setResult = exports -> Set ( isolate -> GetCurrentContext ( ) , String :: NewFromUtf8 ( isolate , " " ) , ctorFunc -> GetFunction ( ) ) ; if ( ! setResult . FromMaybe ( false ) ) { } DataWriterQosField :: durabilityFieldName . Reset ( isolate , String :: NewFromUtf8 ( isolate , " " ) ) ; DataWriterQosField :: durability_serviceFieldName . Reset ( isolate , String :: NewFromUtf8 ( isolate , " " ) ) ; DataWriterQosField :: deadlineFieldName . Reset ( isolate , String :: NewFromUtf8 ( isolate , " " ) ) ; DataWriterQosField :: latency_budgetFieldName . Reset ( isolate , String :: NewFromUtf8 ( isolate , " " ) ) ; DataWriterQosField :: livelinessFieldName . Reset ( isolate , String :: NewFromUtf8 ( isolate , " " ) ) ; DataWriterQosField :: reliabilityFieldName . Reset ( isolate , String :: NewFromUtf8 ( isolate , " " ) ) ; DataWriterQosField :: destination_orderFieldName . Reset ( isolate , String :: NewFromUtf8 ( isolate , " " ) ) ; DataWriterQosField :: historyFieldName . Reset ( isolate , String :: NewFromUtf8 ( isolate , " " ) ) ; DataWriterQosField :: resource_limitsFieldName . Reset ( isolate , String :: NewFromUtf8 ( isolate , " " ) ) ; DataWriterQosField :: transport_priorityFieldName . Reset ( isolate , String :: NewFromUtf8 ( isolate , " " ) ) ; DataWriterQosField :: lifespanFieldName . Reset ( isolate , String :: NewFromUtf8 ( isolate , " " ) ) ; DataWriterQosField :: user_dataFieldName . Reset ( isolate , String :: NewFromUtf8 ( isolate , " " ) ) ; DataWriterQosField :: ownershipFieldName . Reset ( isolate , String :: NewFromUtf8 ( isolate , " " ) ) ; DataWriterQosField :: ownership_strengthFieldName . Reset ( isolate , String :: NewFromUtf8 ( isolate , " " ) ) ; DataWriterQosField :: writer_data_lifecycleFieldName . Reset ( isolate , String :: NewFromUtf8 ( isolate , " " ) ) ; }
Initialization of topic DataWriterQos field type.
Initialization of topic DataWriterQos field type .
// TODO: Throw exception