DdsJs/ddsjs_base.cpp
Local<Value> PublisherQosField::FromCppToJsValue(PublisherQosField::ConstRefType cppValue)
{
	Isolate *isolate = Isolate::GetCurrent();
	EscapableHandleScope scope(isolate);
	Local<Object> result(Object::New(isolate));
	Local<Context> ctx = Local<Context>::New(isolate, isolate->GetCurrentContext());
	Maybe< bool > setResult = ::v8::Nothing< bool >();

	setResult = result->Set(
		ctx,
		Local<String>::New(
			isolate,
			PublisherQosField::presentationFieldName
		),
		::DDS::PresentationQosPolicyField::FromCppToJsValue(
			cppValue.presentation
		)
	);

	if (!setResult.FromMaybe(false))
	{
		// TODO: throw exception
	}setResult = result->Set(
		ctx,
		Local<String>::New(
			isolate,
			PublisherQosField::partitionFieldName
		),
		::DDS::PartitionQosPolicyField::FromCppToJsValue(
			cppValue.partition
		)
	);

	if (!setResult.FromMaybe(false))
	{
		// TODO: throw exception
	}setResult = result->Set(
		ctx,
		Local<String>::New(
			isolate,
			PublisherQosField::group_dataFieldName
		),
		::DDS::GroupDataQosPolicyField::FromCppToJsValue(
			cppValue.group_data
		)
	);

	if (!setResult.FromMaybe(false))
	{
		// TODO: throw exception
	}setResult = result->Set(
		ctx,
		Local<String>::New(
			isolate,
			PublisherQosField::entity_factoryFieldName
		),
		::DDS::EntityFactoryQosPolicyField::FromCppToJsValue(
			cppValue.entity_factory
		)
	);

	if (!setResult.FromMaybe(false))
	{
		// TODO: throw exception
	}

	return scope.Escape(result);
}
// From C++ to JavaScript for topic PublisherQos
From C++ to JavaScript for topic PublisherQos
From C ++ to JavaScript for topic PublisherQos
Local<Value> PublisherQosField::FromCppToJsValue(PublisherQosField::ConstRefType cppValue)
{
	Isolate *isolate = Isolate::GetCurrent();
	EscapableHandleScope scope(isolate);
	Local<Object> result(Object::New(isolate));
	Local<Context> ctx = Local<Context>::New(isolate, isolate->GetCurrentContext());
	Maybe< bool > setResult = ::v8::Nothing< bool >();
	setResult = result->Set(
		ctx,
		Local<String>::New(
			isolate,
			PublisherQosField::presentationFieldName
		),
		::DDS::PresentationQosPolicyField::FromCppToJsValue(
			cppValue.presentation
		)
	);
	if (!setResult.FromMaybe(false))
	{
	}setResult = result->Set(
		ctx,
		Local<String>::New(
			isolate,
			PublisherQosField::partitionFieldName
		),
		::DDS::PartitionQosPolicyField::FromCppToJsValue(
			cppValue.partition
		)
	);
	if (!setResult.FromMaybe(false))
	{
	}setResult = result->Set(
		ctx,
		Local<String>::New(
			isolate,
			PublisherQosField::group_dataFieldName
		),
		::DDS::GroupDataQosPolicyField::FromCppToJsValue(
			cppValue.group_data
		)
	);
	if (!setResult.FromMaybe(false))
	{
	}setResult = result->Set(
		ctx,
		Local<String>::New(
			isolate,
			PublisherQosField::entity_factoryFieldName
		),
		::DDS::EntityFactoryQosPolicyField::FromCppToJsValue(
			cppValue.entity_factory
		)
	);
	if (!setResult.FromMaybe(false))
	{
	}
	return scope.Escape(result);
}
Local < Value > PublisherQosField :: FromCppToJsValue ( PublisherQosField :: ConstRefType cppValue ) { Isolate * isolate = Isolate :: GetCurrent ( ) ; EscapableHandleScope scope ( isolate ) ; Local < Object > result ( Object :: New ( isolate ) ) ; Local < Context > ctx = Local < Context > :: New ( isolate , isolate -> GetCurrentContext ( ) ) ; Maybe < bool > setResult = :: v8 :: Nothing < bool > ( ) ; setResult = result -> Set ( ctx , Local < String > :: New ( isolate , PublisherQosField :: presentationFieldName ) , :: DDS :: PresentationQosPolicyField :: FromCppToJsValue ( cppValue . presentation ) ) ; if ( ! setResult . FromMaybe ( false ) ) { } setResult = result -> Set ( ctx , Local < String > :: New ( isolate , PublisherQosField :: partitionFieldName ) , :: DDS :: PartitionQosPolicyField :: FromCppToJsValue ( cppValue . partition ) ) ; if ( ! setResult . FromMaybe ( false ) ) { } setResult = result -> Set ( ctx , Local < String > :: New ( isolate , PublisherQosField :: group_dataFieldName ) , :: DDS :: GroupDataQosPolicyField :: FromCppToJsValue ( cppValue . group_data ) ) ; if ( ! setResult . FromMaybe ( false ) ) { } setResult = result -> Set ( ctx , Local < String > :: New ( isolate , PublisherQosField :: entity_factoryFieldName ) , :: DDS :: EntityFactoryQosPolicyField :: FromCppToJsValue ( cppValue . entity_factory ) ) ; if ( ! setResult . FromMaybe ( false ) ) { } return scope . Escape ( result ) ; }
From C++ to JavaScript for topic PublisherQos
From C ++ to JavaScript for topic PublisherQos
// TODO: throw exception // TODO: throw exception // TODO: throw exception // TODO: throw exception