DdsJs/ddsjs_base.cpp
// Initialization of topic DataReaderQos field type.
Initialization of topic DataReaderQos field type.
Initialization of topic DataReaderQos field type .
void DataReaderQosField::Init(Local<Object> exports)
{
	Isolate *isolate = Isolate::GetCurrent();
	auto ctorFunc = FunctionTemplate::New(
		isolate,
		DataReaderQosField::New
	);
	Maybe< bool > setResult = exports->Set(
		isolate->GetCurrentContext(),
		String::NewFromUtf8(isolate, "DataReaderQos"),
		ctorFunc->GetFunction()
	);
	if (!setResult.FromMaybe(false))
	{
	}
	DataReaderQosField::durabilityFieldName.Reset(isolate,
		String::NewFromUtf8(isolate, "durability"));
	DataReaderQosField::deadlineFieldName.Reset(isolate,
		String::NewFromUtf8(isolate, "deadline"));
	DataReaderQosField::latency_budgetFieldName.Reset(isolate,
		String::NewFromUtf8(isolate, "latency_budget"));
	DataReaderQosField::livelinessFieldName.Reset(isolate,
		String::NewFromUtf8(isolate, "liveliness"));
	DataReaderQosField::reliabilityFieldName.Reset(isolate,
		String::NewFromUtf8(isolate, "reliability"));
	DataReaderQosField::destination_orderFieldName.Reset(isolate,
		String::NewFromUtf8(isolate, "destination_order"));
	DataReaderQosField::historyFieldName.Reset(isolate,
		String::NewFromUtf8(isolate, "history"));
	DataReaderQosField::resource_limitsFieldName.Reset(isolate,
		String::NewFromUtf8(isolate, "resource_limits"));
	DataReaderQosField::user_dataFieldName.Reset(isolate,
		String::NewFromUtf8(isolate, "user_data"));
	DataReaderQosField::ownershipFieldName.Reset(isolate,
		String::NewFromUtf8(isolate, "ownership"));
	DataReaderQosField::time_based_filterFieldName.Reset(isolate,
		String::NewFromUtf8(isolate, "time_based_filter"));
	DataReaderQosField::reader_data_lifecycleFieldName.Reset(isolate,
		String::NewFromUtf8(isolate, "reader_data_lifecycle"));
}
void DataReaderQosField :: Init ( Local < Object > exports ) { Isolate * isolate = Isolate :: GetCurrent ( ) ; auto ctorFunc = FunctionTemplate :: New ( isolate , DataReaderQosField :: New ) ; Maybe < bool > setResult = exports -> Set ( isolate -> GetCurrentContext ( ) , String :: NewFromUtf8 ( isolate , " " ) , ctorFunc -> GetFunction ( ) ) ; if ( ! setResult . FromMaybe ( false ) ) { } DataReaderQosField :: durabilityFieldName . Reset ( isolate , String :: NewFromUtf8 ( isolate , " " ) ) ; DataReaderQosField :: deadlineFieldName . Reset ( isolate , String :: NewFromUtf8 ( isolate , " " ) ) ; DataReaderQosField :: latency_budgetFieldName . Reset ( isolate , String :: NewFromUtf8 ( isolate , " " ) ) ; DataReaderQosField :: livelinessFieldName . Reset ( isolate , String :: NewFromUtf8 ( isolate , " " ) ) ; DataReaderQosField :: reliabilityFieldName . Reset ( isolate , String :: NewFromUtf8 ( isolate , " " ) ) ; DataReaderQosField :: destination_orderFieldName . Reset ( isolate , String :: NewFromUtf8 ( isolate , " " ) ) ; DataReaderQosField :: historyFieldName . Reset ( isolate , String :: NewFromUtf8 ( isolate , " " ) ) ; DataReaderQosField :: resource_limitsFieldName . Reset ( isolate , String :: NewFromUtf8 ( isolate , " " ) ) ; DataReaderQosField :: user_dataFieldName . Reset ( isolate , String :: NewFromUtf8 ( isolate , " " ) ) ; DataReaderQosField :: ownershipFieldName . Reset ( isolate , String :: NewFromUtf8 ( isolate , " " ) ) ; DataReaderQosField :: time_based_filterFieldName . Reset ( isolate , String :: NewFromUtf8 ( isolate , " " ) ) ; DataReaderQosField :: reader_data_lifecycleFieldName . Reset ( isolate , String :: NewFromUtf8 ( isolate , " " ) ) ; }
Initialization of topic DataReaderQos field type.
Initialization of topic DataReaderQos field type .
// TODO: Throw exception