DdsJs/ddsjs_base.cpp
// Initialization of topic PublisherQos field type.
Initialization of topic PublisherQos field type.
Initialization of topic PublisherQos field type .
void PublisherQosField::Init(Local<Object> exports)
{
	Isolate *isolate = Isolate::GetCurrent();
	auto ctorFunc = FunctionTemplate::New(
		isolate,
		PublisherQosField::New
	);
	Maybe< bool > setResult = exports->Set(
		isolate->GetCurrentContext(),
		String::NewFromUtf8(isolate, "PublisherQos"),
		ctorFunc->GetFunction()
	);
	if (!setResult.FromMaybe(false))
	{
	}
	PublisherQosField::presentationFieldName.Reset(isolate,
		String::NewFromUtf8(isolate, "presentation"));
	PublisherQosField::partitionFieldName.Reset(isolate,
		String::NewFromUtf8(isolate, "partition"));
	PublisherQosField::group_dataFieldName.Reset(isolate,
		String::NewFromUtf8(isolate, "group_data"));
	PublisherQosField::entity_factoryFieldName.Reset(isolate,
		String::NewFromUtf8(isolate, "entity_factory"));
}
void PublisherQosField :: Init ( Local < Object > exports ) { Isolate * isolate = Isolate :: GetCurrent ( ) ; auto ctorFunc = FunctionTemplate :: New ( isolate , PublisherQosField :: New ) ; Maybe < bool > setResult = exports -> Set ( isolate -> GetCurrentContext ( ) , String :: NewFromUtf8 ( isolate , " " ) , ctorFunc -> GetFunction ( ) ) ; if ( ! setResult . FromMaybe ( false ) ) { } PublisherQosField :: presentationFieldName . Reset ( isolate , String :: NewFromUtf8 ( isolate , " " ) ) ; PublisherQosField :: partitionFieldName . Reset ( isolate , String :: NewFromUtf8 ( isolate , " " ) ) ; PublisherQosField :: group_dataFieldName . Reset ( isolate , String :: NewFromUtf8 ( isolate , " " ) ) ; PublisherQosField :: entity_factoryFieldName . Reset ( isolate , String :: NewFromUtf8 ( isolate , " " ) ) ; }
Initialization of topic PublisherQos field type.
Initialization of topic PublisherQos field type .
// TODO: Throw exception