DdsJs/ddsjs_base.cpp
// Initialization of topic DurabilityServiceQosPolicy field type.
Initialization of topic DurabilityServiceQosPolicy field type.
Initialization of topic DurabilityServiceQosPolicy field type .
void DurabilityServiceQosPolicyField::Init(Local<Object> exports)
{
	Isolate *isolate = Isolate::GetCurrent();
	auto ctorFunc = FunctionTemplate::New(
		isolate,
		DurabilityServiceQosPolicyField::New
	);
	Maybe< bool > setResult = exports->Set(
		isolate->GetCurrentContext(),
		String::NewFromUtf8(isolate, "DurabilityServiceQosPolicy"),
		ctorFunc->GetFunction()
	);
	if (!setResult.FromMaybe(false))
	{
	}
	DurabilityServiceQosPolicyField::service_cleanup_delayFieldName.Reset(isolate,
		String::NewFromUtf8(isolate, "service_cleanup_delay"));
	DurabilityServiceQosPolicyField::history_kindFieldName.Reset(isolate,
		String::NewFromUtf8(isolate, "history_kind"));
	DurabilityServiceQosPolicyField::history_depthFieldName.Reset(isolate,
		String::NewFromUtf8(isolate, "history_depth"));
	DurabilityServiceQosPolicyField::max_samplesFieldName.Reset(isolate,
		String::NewFromUtf8(isolate, "max_samples"));
	DurabilityServiceQosPolicyField::max_instancesFieldName.Reset(isolate,
		String::NewFromUtf8(isolate, "max_instances"));
	DurabilityServiceQosPolicyField::max_samples_per_instanceFieldName.Reset(isolate,
		String::NewFromUtf8(isolate, "max_samples_per_instance"));
}
void DurabilityServiceQosPolicyField :: Init ( Local < Object > exports ) { Isolate * isolate = Isolate :: GetCurrent ( ) ; auto ctorFunc = FunctionTemplate :: New ( isolate , DurabilityServiceQosPolicyField :: New ) ; Maybe < bool > setResult = exports -> Set ( isolate -> GetCurrentContext ( ) , String :: NewFromUtf8 ( isolate , " " ) , ctorFunc -> GetFunction ( ) ) ; if ( ! setResult . FromMaybe ( false ) ) { } DurabilityServiceQosPolicyField :: service_cleanup_delayFieldName . Reset ( isolate , String :: NewFromUtf8 ( isolate , " " ) ) ; DurabilityServiceQosPolicyField :: history_kindFieldName . Reset ( isolate , String :: NewFromUtf8 ( isolate , " " ) ) ; DurabilityServiceQosPolicyField :: history_depthFieldName . Reset ( isolate , String :: NewFromUtf8 ( isolate , " " ) ) ; DurabilityServiceQosPolicyField :: max_samplesFieldName . Reset ( isolate , String :: NewFromUtf8 ( isolate , " " ) ) ; DurabilityServiceQosPolicyField :: max_instancesFieldName . Reset ( isolate , String :: NewFromUtf8 ( isolate , " " ) ) ; DurabilityServiceQosPolicyField :: max_samples_per_instanceFieldName . Reset ( isolate , String :: NewFromUtf8 ( isolate , " " ) ) ; }
Initialization of topic DurabilityServiceQosPolicy field type.
Initialization of topic DurabilityServiceQosPolicy field type .
// TODO: Throw exception