DdsJs/ddsjs_base.cpp
void Duration_tField::Init(Local<Object> exports)
{
	Isolate *isolate = Isolate::GetCurrent();

	auto ctorFunc = FunctionTemplate::New(
		isolate,
		Duration_tField::New
	);
	Maybe< bool > setResult = exports->Set(
		isolate->GetCurrentContext(),
		String::NewFromUtf8(isolate, "Duration_t"),
		ctorFunc->GetFunction()
	);
	if (!setResult.FromMaybe(false))
	{
		// TODO: Throw exception
	}

	Duration_tField::secFieldName.Reset(isolate,
		String::NewFromUtf8(isolate, "sec"));
	Duration_tField::nanosecFieldName.Reset(isolate,
		String::NewFromUtf8(isolate, "nanosec"));

}
// Initialization of topic Duration_t field type.
Initialization of topic Duration_t field type.
Initialization of topic Duration_t field type .
void Duration_tField::Init(Local<Object> exports)
{
	Isolate *isolate = Isolate::GetCurrent();
	auto ctorFunc = FunctionTemplate::New(
		isolate,
		Duration_tField::New
	);
	Maybe< bool > setResult = exports->Set(
		isolate->GetCurrentContext(),
		String::NewFromUtf8(isolate, "Duration_t"),
		ctorFunc->GetFunction()
	);
	if (!setResult.FromMaybe(false))
	{
	}
	Duration_tField::secFieldName.Reset(isolate,
		String::NewFromUtf8(isolate, "sec"));
	Duration_tField::nanosecFieldName.Reset(isolate,
		String::NewFromUtf8(isolate, "nanosec"));
}
void Duration_tField :: Init ( Local < Object > exports ) { Isolate * isolate = Isolate :: GetCurrent ( ) ; auto ctorFunc = FunctionTemplate :: New ( isolate , Duration_tField :: New ) ; Maybe < bool > setResult = exports -> Set ( isolate -> GetCurrentContext ( ) , String :: NewFromUtf8 ( isolate , " " ) , ctorFunc -> GetFunction ( ) ) ; if ( ! setResult . FromMaybe ( false ) ) { } Duration_tField :: secFieldName . Reset ( isolate , String :: NewFromUtf8 ( isolate , " " ) ) ; Duration_tField :: nanosecFieldName . Reset ( isolate , String :: NewFromUtf8 ( isolate , " " ) ) ; }
Initialization of topic Duration_t field type.
Initialization of topic Duration_t field type .
// TODO: Throw exception