DdsJs/ddsjs_base.cpp
Local<Value> RequestedIncompatibleQosStatusField::FromCppToJsValue(RequestedIncompatibleQosStatusField::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,
			RequestedIncompatibleQosStatusField::total_countFieldName
		),
		::DdsJs::LongField::FromCppToJsValue(
			cppValue.total_count
		)
	);

	if (!setResult.FromMaybe(false))
	{
		// TODO: throw exception
	}setResult = result->Set(
		ctx,
		Local<String>::New(
			isolate,
			RequestedIncompatibleQosStatusField::total_count_changeFieldName
		),
		::DdsJs::LongField::FromCppToJsValue(
			cppValue.total_count_change
		)
	);

	if (!setResult.FromMaybe(false))
	{
		// TODO: throw exception
	}setResult = result->Set(
		ctx,
		Local<String>::New(
			isolate,
			RequestedIncompatibleQosStatusField::last_policy_idFieldName
		),
		::DdsJs::LongField::FromCppToJsValue(
			cppValue.last_policy_id
		)
	);

	if (!setResult.FromMaybe(false))
	{
		// TODO: throw exception
	}setResult = result->Set(
		ctx,
		Local<String>::New(
			isolate,
			RequestedIncompatibleQosStatusField::policiesFieldName
		),
		::DdsJs::UnboundedSeqField< ::DDS::QosPolicyCountField >::FromCppToJsValue(
			cppValue.policies
		)
	);

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

	return scope.Escape(result);
}
// From C++ to JavaScript for topic RequestedIncompatibleQosStatus
From C++ to JavaScript for topic RequestedIncompatibleQosStatus
From C ++ to JavaScript for topic RequestedIncompatibleQosStatus
Local<Value> RequestedIncompatibleQosStatusField::FromCppToJsValue(RequestedIncompatibleQosStatusField::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,
			RequestedIncompatibleQosStatusField::total_countFieldName
		),
		::DdsJs::LongField::FromCppToJsValue(
			cppValue.total_count
		)
	);
	if (!setResult.FromMaybe(false))
	{
	}setResult = result->Set(
		ctx,
		Local<String>::New(
			isolate,
			RequestedIncompatibleQosStatusField::total_count_changeFieldName
		),
		::DdsJs::LongField::FromCppToJsValue(
			cppValue.total_count_change
		)
	);
	if (!setResult.FromMaybe(false))
	{
	}setResult = result->Set(
		ctx,
		Local<String>::New(
			isolate,
			RequestedIncompatibleQosStatusField::last_policy_idFieldName
		),
		::DdsJs::LongField::FromCppToJsValue(
			cppValue.last_policy_id
		)
	);
	if (!setResult.FromMaybe(false))
	{
	}setResult = result->Set(
		ctx,
		Local<String>::New(
			isolate,
			RequestedIncompatibleQosStatusField::policiesFieldName
		),
		::DdsJs::UnboundedSeqField< ::DDS::QosPolicyCountField >::FromCppToJsValue(
			cppValue.policies
		)
	);
	if (!setResult.FromMaybe(false))
	{
	}
	return scope.Escape(result);
}
Local < Value > RequestedIncompatibleQosStatusField :: FromCppToJsValue ( RequestedIncompatibleQosStatusField :: 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 , RequestedIncompatibleQosStatusField :: total_countFieldName ) , :: DdsJs :: LongField :: FromCppToJsValue ( cppValue . total_count ) ) ; if ( ! setResult . FromMaybe ( false ) ) { } setResult = result -> Set ( ctx , Local < String > :: New ( isolate , RequestedIncompatibleQosStatusField :: total_count_changeFieldName ) , :: DdsJs :: LongField :: FromCppToJsValue ( cppValue . total_count_change ) ) ; if ( ! setResult . FromMaybe ( false ) ) { } setResult = result -> Set ( ctx , Local < String > :: New ( isolate , RequestedIncompatibleQosStatusField :: last_policy_idFieldName ) , :: DdsJs :: LongField :: FromCppToJsValue ( cppValue . last_policy_id ) ) ; if ( ! setResult . FromMaybe ( false ) ) { } setResult = result -> Set ( ctx , Local < String > :: New ( isolate , RequestedIncompatibleQosStatusField :: policiesFieldName ) , :: DdsJs :: UnboundedSeqField < :: DDS :: QosPolicyCountField > :: FromCppToJsValue ( cppValue . policies ) ) ; if ( ! setResult . FromMaybe ( false ) ) { } return scope . Escape ( result ) ; }
From C++ to JavaScript for topic RequestedIncompatibleQosStatus
From C ++ to JavaScript for topic RequestedIncompatibleQosStatus
// TODO: throw exception // TODO: throw exception // TODO: throw exception // TODO: throw exception