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