DdsJs/ddsjs_base.cpp
// Initialization of topic SampleInfo field type.
Initialization of topic SampleInfo field type.
Initialization of topic SampleInfo field type .
void SampleInfoField::Init(Local<Object> exports)
{
	Isolate *isolate = Isolate::GetCurrent();
	auto ctorFunc = FunctionTemplate::New(
		isolate,
		SampleInfoField::New
	);
	Maybe< bool > setResult = exports->Set(
		isolate->GetCurrentContext(),
		String::NewFromUtf8(isolate, "SampleInfo"),
		ctorFunc->GetFunction()
	);
	if (!setResult.FromMaybe(false))
	{
	}
	SampleInfoField::sample_stateFieldName.Reset(isolate,
		String::NewFromUtf8(isolate, "sample_state"));
	SampleInfoField::view_stateFieldName.Reset(isolate,
		String::NewFromUtf8(isolate, "view_state"));
	SampleInfoField::instance_stateFieldName.Reset(isolate,
		String::NewFromUtf8(isolate, "instance_state"));
	SampleInfoField::instance_handleFieldName.Reset(isolate,
		String::NewFromUtf8(isolate, "instance_handle"));
	SampleInfoField::publication_handleFieldName.Reset(isolate,
		String::NewFromUtf8(isolate, "publication_handle"));
	SampleInfoField::disposed_generation_countFieldName.Reset(isolate,
		String::NewFromUtf8(isolate, "disposed_generation_count"));
	SampleInfoField::no_writers_generation_countFieldName.Reset(isolate,
		String::NewFromUtf8(isolate, "no_writers_generation_count"));
	SampleInfoField::sample_rankFieldName.Reset(isolate,
		String::NewFromUtf8(isolate, "sample_rank"));
	SampleInfoField::generation_rankFieldName.Reset(isolate,
		String::NewFromUtf8(isolate, "generation_rank"));
	SampleInfoField::absolute_generation_rankFieldName.Reset(isolate,
		String::NewFromUtf8(isolate, "absolute_generation_rank"));
	SampleInfoField::valid_dataFieldName.Reset(isolate,
		String::NewFromUtf8(isolate, "valid_data"));
}
void SampleInfoField :: Init ( Local < Object > exports ) { Isolate * isolate = Isolate :: GetCurrent ( ) ; auto ctorFunc = FunctionTemplate :: New ( isolate , SampleInfoField :: New ) ; Maybe < bool > setResult = exports -> Set ( isolate -> GetCurrentContext ( ) , String :: NewFromUtf8 ( isolate , " " ) , ctorFunc -> GetFunction ( ) ) ; if ( ! setResult . FromMaybe ( false ) ) { } SampleInfoField :: sample_stateFieldName . Reset ( isolate , String :: NewFromUtf8 ( isolate , " " ) ) ; SampleInfoField :: view_stateFieldName . Reset ( isolate , String :: NewFromUtf8 ( isolate , " " ) ) ; SampleInfoField :: instance_stateFieldName . Reset ( isolate , String :: NewFromUtf8 ( isolate , " " ) ) ; SampleInfoField :: instance_handleFieldName . Reset ( isolate , String :: NewFromUtf8 ( isolate , " " ) ) ; SampleInfoField :: publication_handleFieldName . Reset ( isolate , String :: NewFromUtf8 ( isolate , " " ) ) ; SampleInfoField :: disposed_generation_countFieldName . Reset ( isolate , String :: NewFromUtf8 ( isolate , " " ) ) ; SampleInfoField :: no_writers_generation_countFieldName . Reset ( isolate , String :: NewFromUtf8 ( isolate , " " ) ) ; SampleInfoField :: sample_rankFieldName . Reset ( isolate , String :: NewFromUtf8 ( isolate , " " ) ) ; SampleInfoField :: generation_rankFieldName . Reset ( isolate , String :: NewFromUtf8 ( isolate , " " ) ) ; SampleInfoField :: absolute_generation_rankFieldName . Reset ( isolate , String :: NewFromUtf8 ( isolate , " " ) ) ; SampleInfoField :: valid_dataFieldName . Reset ( isolate , String :: NewFromUtf8 ( isolate , " " ) ) ; }
Initialization of topic SampleInfo field type.
Initialization of topic SampleInfo field type .
// TODO: Throw exception