DdsJs/ddsjs_base.cpp
void SampleRejectedStatusKindField::Init(Local<Object> exports)
{
	Isolate *isolate = Isolate::GetCurrent();
	Local<Context> ctx = Local<Context>::New(
		isolate,
		isolate->GetCurrentContext()
	);
	Local<Object> enumObj(Object::New(isolate));

	enumObj->ForceSet(ctx,
		String::NewFromUtf8(isolate, "NOT_REJECTED"),
		Number::New(isolate, ::DDS::NOT_REJECTED),
		::v8::ReadOnly);
	enumObj->ForceSet(ctx,
		String::NewFromUtf8(isolate, "REJECTED_BY_INSTANCE_LIMIT"),
		Number::New(isolate, ::DDS::REJECTED_BY_INSTANCE_LIMIT),
		::v8::ReadOnly);
	enumObj->ForceSet(ctx,
		String::NewFromUtf8(isolate, "REJECTED_BY_SAMPLES_LIMIT"),
		Number::New(isolate, ::DDS::REJECTED_BY_SAMPLES_LIMIT),
		::v8::ReadOnly);
	enumObj->ForceSet(ctx,
		String::NewFromUtf8(isolate, "REJECTED_BY_SAMPLES_PER_INSTANCE_LIMIT"),
		Number::New(isolate, ::DDS::REJECTED_BY_SAMPLES_PER_INSTANCE_LIMIT),
		::v8::ReadOnly);


	Maybe< bool > setResult = exports->Set(
		ctx,
		String::NewFromUtf8(isolate, "SampleRejectedStatusKind"),
		enumObj
	);

	if (!setResult.FromMaybe(false))
	{
		// TODO: Throw exception
	}
}
// ======================================================
// ENUM IMPLEMENTATION: SampleRejectedStatusKind
// ======================================================
// Initialization of enumeration SampleRejectedStatusKind field type
ENUM IMPLEMENTATION: SampleRejectedStatusKind
Initialization of enumeration SampleRejectedStatusKind field type
ENUM IMPLEMENTATION : SampleRejectedStatusKind Initialization of enumeration SampleRejectedStatusKind field type
void SampleRejectedStatusKindField::Init(Local<Object> exports)
{
	Isolate *isolate = Isolate::GetCurrent();
	Local<Context> ctx = Local<Context>::New(
		isolate,
		isolate->GetCurrentContext()
	);
	Local<Object> enumObj(Object::New(isolate));
	enumObj->ForceSet(ctx,
		String::NewFromUtf8(isolate, "NOT_REJECTED"),
		Number::New(isolate, ::DDS::NOT_REJECTED),
		::v8::ReadOnly);
	enumObj->ForceSet(ctx,
		String::NewFromUtf8(isolate, "REJECTED_BY_INSTANCE_LIMIT"),
		Number::New(isolate, ::DDS::REJECTED_BY_INSTANCE_LIMIT),
		::v8::ReadOnly);
	enumObj->ForceSet(ctx,
		String::NewFromUtf8(isolate, "REJECTED_BY_SAMPLES_LIMIT"),
		Number::New(isolate, ::DDS::REJECTED_BY_SAMPLES_LIMIT),
		::v8::ReadOnly);
	enumObj->ForceSet(ctx,
		String::NewFromUtf8(isolate, "REJECTED_BY_SAMPLES_PER_INSTANCE_LIMIT"),
		Number::New(isolate, ::DDS::REJECTED_BY_SAMPLES_PER_INSTANCE_LIMIT),
		::v8::ReadOnly);
	Maybe< bool > setResult = exports->Set(
		ctx,
		String::NewFromUtf8(isolate, "SampleRejectedStatusKind"),
		enumObj
	);
	if (!setResult.FromMaybe(false))
	{
	}
}
void SampleRejectedStatusKindField :: Init ( Local < Object > exports ) { Isolate * isolate = Isolate :: GetCurrent ( ) ; Local < Context > ctx = Local < Context > :: New ( isolate , isolate -> GetCurrentContext ( ) ) ; Local < Object > enumObj ( Object :: New ( isolate ) ) ; enumObj -> ForceSet ( ctx , String :: NewFromUtf8 ( isolate , " " ) , Number :: New ( isolate , :: DDS :: NOT_REJECTED ) , :: v8 :: ReadOnly ) ; enumObj -> ForceSet ( ctx , String :: NewFromUtf8 ( isolate , " " ) , Number :: New ( isolate , :: DDS :: REJECTED_BY_INSTANCE_LIMIT ) , :: v8 :: ReadOnly ) ; enumObj -> ForceSet ( ctx , String :: NewFromUtf8 ( isolate , " " ) , Number :: New ( isolate , :: DDS :: REJECTED_BY_SAMPLES_LIMIT ) , :: v8 :: ReadOnly ) ; enumObj -> ForceSet ( ctx , String :: NewFromUtf8 ( isolate , " " ) , Number :: New ( isolate , :: DDS :: REJECTED_BY_SAMPLES_PER_INSTANCE_LIMIT ) , :: v8 :: ReadOnly ) ; Maybe < bool > setResult = exports -> Set ( ctx , String :: NewFromUtf8 ( isolate , " " ) , enumObj ) ; if ( ! setResult . FromMaybe ( false ) ) { } }
ENUM IMPLEMENTATION: SampleRejectedStatusKind
Initialization of enumeration SampleRejectedStatusKind field type
ENUM IMPLEMENTATION : SampleRejectedStatusKind Initialization of enumeration SampleRejectedStatusKind field type
// TODO: Throw exception