theConfig 10.0
Loading...
Searching...
No Matches
LibLcConfig_rb.c File Reference

tag: nhi1-release-250425 More...

#include "LibLcConfig_private_rb.h"
#include "misc_check_rb.h"
#include <ruby/defines.h>
+ Include dependency graph for LibLcConfig_rb.c:

Go to the source code of this file.

Macros

#define LcSetupTmpl()
 
#define LcCleanupTmpl()
 
#define ConfigFormatE_FromInt_doc   "LcConfigFormatE LcConfig.ConfigFormatE_FromInt(value:int32)"
 
#define ConfigOptionsEF_FromInt_doc   "LcConfigOptionsEF LcConfig.ConfigOptionsEF_FromInt(value:int32)"
 
#define ConfigTypeE_FromInt_doc   "LcConfigTypeE LcConfig.ConfigTypeE_FromInt(value:int32)"
 
#define ErrorE_FromInt_doc   "LcErrorE LcConfig.ErrorE_FromInt(value:int32)"
 
#define ErrorTypeE_FromInt_doc   "LcErrorTypeE LcConfig.ErrorTypeE_FromInt(value:int32)"
 
#define ConfigFormatE_ToInt_doc   "int32 LcConfig.ConfigFormatE_ToInt(value:LcConfigFormatE)"
 
#define ConfigFormatE_ToString_doc   "string LcConfig.ConfigFormatE_ToString(value:LcConfigFormatE)"
 
#define ConfigOptionsEF_ToInt_doc   "int32 LcConfig.ConfigOptionsEF_ToInt(value:LcConfigOptionsEF)"
 
#define ConfigOptionsEF_ToString_doc   "string LcConfig.ConfigOptionsEF_ToString(value:LcConfigOptionsEF)"
 
#define ConfigTypeE_ToInt_doc   "int32 LcConfig.ConfigTypeE_ToInt(value:LcConfigTypeE)"
 
#define ConfigTypeE_ToString_doc   "string LcConfig.ConfigTypeE_ToString(value:LcConfigTypeE)"
 
#define ErrorE_ToInt_doc   "int32 LcConfig.ErrorE_ToInt(value:LcErrorE)"
 
#define ErrorE_ToString_doc   "string LcConfig.ErrorE_ToString(value:LcErrorE)"
 
#define ErrorTypeE_ToInt_doc   "int32 LcConfig.ErrorTypeE_ToInt(value:LcErrorTypeE)"
 
#define ErrorTypeE_ToString_doc   "string LcConfig.ErrorTypeE_ToString(value:LcErrorTypeE)"
 
#define Cleanup_doc   "LcConfig.Cleanup()"
 
#define Setup_doc   "LcConfig.Setup()"
 
#define OT_SETUP_hdl_static
 

Functions

static OT_ProcRet rblcconfig_LcConfig_ConfigFormatE_FromInt (OtClass_ARGS)
  Ruby: (static) LcConfigFormatE LcConfig.ConfigFormatE_FromInt(value:int32) C-API
return the LcConfigFormatE from integer …
 
static OT_ProcRet rblcconfig_LcConfig_ConfigOptionsEF_FromInt (OtClass_ARGS)
  Ruby: (static) LcConfigOptionsEF LcConfig.ConfigOptionsEF_FromInt(value:int32) C-API
return the LcConfigOptionsEF from integer …
 
static OT_ProcRet rblcconfig_LcConfig_ConfigTypeE_FromInt (OtClass_ARGS)
  Ruby: (static) LcConfigTypeE LcConfig.ConfigTypeE_FromInt(value:int32) C-API
return the LcConfigTypeE from integer …
 
static OT_ProcRet rblcconfig_LcConfig_ErrorE_FromInt (OtClass_ARGS)
  Ruby: (static) LcErrorE LcConfig.ErrorE_FromInt(value:int32) C-API
return the LcErrorE from integer …
 
static OT_ProcRet rblcconfig_LcConfig_ErrorTypeE_FromInt (OtClass_ARGS)
  Ruby: (static) LcErrorTypeE LcConfig.ErrorTypeE_FromInt(value:int32) C-API
return the LcErrorTypeE from integer …
 
static OT_ProcRet rblcconfig_LcConfig_ConfigFormatE_ToInt (OtClass_ARGS)
  Ruby: (static) int32 LcConfig.ConfigFormatE_ToInt(value:LcConfigFormatE) C-API
return the LcConfigFormatE as integer …
 
static OT_ProcRet rblcconfig_LcConfig_ConfigFormatE_ToString (OtClass_ARGS)
  Ruby: (static) string LcConfig.ConfigFormatE_ToString(value:LcConfigFormatE) C-API
return the LcConfigFormatE as string …
 
static OT_ProcRet rblcconfig_LcConfig_ConfigOptionsEF_ToInt (OtClass_ARGS)
  Ruby: (static) int32 LcConfig.ConfigOptionsEF_ToInt(value:LcConfigOptionsEF) C-API
return the LcConfigOptionsEF as integer …
 
static OT_ProcRet rblcconfig_LcConfig_ConfigOptionsEF_ToString (OtClass_ARGS)
  Ruby: (static) string LcConfig.ConfigOptionsEF_ToString(value:LcConfigOptionsEF) C-API
return the LcConfigOptionsEF as string …
 
static OT_ProcRet rblcconfig_LcConfig_ConfigTypeE_ToInt (OtClass_ARGS)
  Ruby: (static) int32 LcConfig.ConfigTypeE_ToInt(value:LcConfigTypeE) C-API
return the LcConfigTypeE as integer …
 
static OT_ProcRet rblcconfig_LcConfig_ConfigTypeE_ToString (OtClass_ARGS)
  Ruby: (static) string LcConfig.ConfigTypeE_ToString(value:LcConfigTypeE) C-API
return the LcConfigTypeE as string …
 
static OT_ProcRet rblcconfig_LcConfig_ErrorE_ToInt (OtClass_ARGS)
  Ruby: (static) int32 LcConfig.ErrorE_ToInt(value:LcErrorE) C-API
return the LcErrorE as integer …
 
static OT_ProcRet rblcconfig_LcConfig_ErrorE_ToString (OtClass_ARGS)
  Ruby: (static) string LcConfig.ErrorE_ToString(value:LcErrorE) C-API
return the LcErrorE as string …
 
static OT_ProcRet rblcconfig_LcConfig_ErrorTypeE_ToInt (OtClass_ARGS)
  Ruby: (static) int32 LcConfig.ErrorTypeE_ToInt(value:LcErrorTypeE) C-API
return the LcErrorTypeE as integer …
 
static OT_ProcRet rblcconfig_LcConfig_ErrorTypeE_ToString (OtClass_ARGS)
  Ruby: (static) string LcConfig.ErrorTypeE_ToString(value:LcErrorTypeE) C-API
return the LcErrorTypeE as string …
 
static OT_ProcRet rblcconfig_LcConfig_Cleanup (OtClass_ARGS)
  Ruby: (static) LcConfig.Cleanup() C-API
cleanup rblcconfig internal memory …
 
static OT_ProcRet rblcconfig_LcConfig_Setup (OtClass_ARGS)
  Ruby: (static) LcConfig.Setup() C-API
setup rblcconfig internal memory …
 
void rblcconfig_LcConfig_Init (MK_RT mkrt)
 
MK_RB_EXTERN void LibLcConfig ()
 

Variables

VALUE rblcconfig_LcConfig
 
VALUE rblcconfig_LcConfigFormatE
 
VALUE rblcconfig_LcConfigOptionsEF
 
VALUE rblcconfig_LcConfigTypeE
 
VALUE rblcconfig_LcErrorE
 
VALUE rblcconfig_LcErrorTypeE
 

Detailed Description

tag: nhi1-release-250425

Definition in file LibLcConfig_rb.c.

Macro Definition Documentation

◆ Cleanup_doc

#define Cleanup_doc   "LcConfig.Cleanup()"

Definition at line 105 of file LibLcConfig_rb.c.

◆ ConfigFormatE_FromInt_doc

#define ConfigFormatE_FromInt_doc   "LcConfigFormatE LcConfig.ConfigFormatE_FromInt(value:int32)"

doc definition

Definition at line 86 of file LibLcConfig_rb.c.

◆ ConfigFormatE_ToInt_doc

#define ConfigFormatE_ToInt_doc   "int32 LcConfig.ConfigFormatE_ToInt(value:LcConfigFormatE)"

Definition at line 93 of file LibLcConfig_rb.c.

◆ ConfigFormatE_ToString_doc

#define ConfigFormatE_ToString_doc   "string LcConfig.ConfigFormatE_ToString(value:LcConfigFormatE)"

Definition at line 94 of file LibLcConfig_rb.c.

◆ ConfigOptionsEF_FromInt_doc

#define ConfigOptionsEF_FromInt_doc   "LcConfigOptionsEF LcConfig.ConfigOptionsEF_FromInt(value:int32)"

Definition at line 87 of file LibLcConfig_rb.c.

◆ ConfigOptionsEF_ToInt_doc

#define ConfigOptionsEF_ToInt_doc   "int32 LcConfig.ConfigOptionsEF_ToInt(value:LcConfigOptionsEF)"

Definition at line 95 of file LibLcConfig_rb.c.

◆ ConfigOptionsEF_ToString_doc

#define ConfigOptionsEF_ToString_doc   "string LcConfig.ConfigOptionsEF_ToString(value:LcConfigOptionsEF)"

Definition at line 96 of file LibLcConfig_rb.c.

◆ ConfigTypeE_FromInt_doc

#define ConfigTypeE_FromInt_doc   "LcConfigTypeE LcConfig.ConfigTypeE_FromInt(value:int32)"

Definition at line 88 of file LibLcConfig_rb.c.

◆ ConfigTypeE_ToInt_doc

#define ConfigTypeE_ToInt_doc   "int32 LcConfig.ConfigTypeE_ToInt(value:LcConfigTypeE)"

Definition at line 97 of file LibLcConfig_rb.c.

◆ ConfigTypeE_ToString_doc

#define ConfigTypeE_ToString_doc   "string LcConfig.ConfigTypeE_ToString(value:LcConfigTypeE)"

Definition at line 98 of file LibLcConfig_rb.c.

◆ ErrorE_FromInt_doc

#define ErrorE_FromInt_doc   "LcErrorE LcConfig.ErrorE_FromInt(value:int32)"

Definition at line 89 of file LibLcConfig_rb.c.

◆ ErrorE_ToInt_doc

#define ErrorE_ToInt_doc   "int32 LcConfig.ErrorE_ToInt(value:LcErrorE)"

Definition at line 99 of file LibLcConfig_rb.c.

◆ ErrorE_ToString_doc

#define ErrorE_ToString_doc   "string LcConfig.ErrorE_ToString(value:LcErrorE)"

Definition at line 100 of file LibLcConfig_rb.c.

◆ ErrorTypeE_FromInt_doc

#define ErrorTypeE_FromInt_doc   "LcErrorTypeE LcConfig.ErrorTypeE_FromInt(value:int32)"

Definition at line 90 of file LibLcConfig_rb.c.

◆ ErrorTypeE_ToInt_doc

#define ErrorTypeE_ToInt_doc   "int32 LcConfig.ErrorTypeE_ToInt(value:LcErrorTypeE)"

Definition at line 101 of file LibLcConfig_rb.c.

◆ ErrorTypeE_ToString_doc

#define ErrorTypeE_ToString_doc   "string LcConfig.ErrorTypeE_ToString(value:LcErrorTypeE)"

Definition at line 102 of file LibLcConfig_rb.c.

◆ LcCleanupTmpl

#define LcCleanupTmpl ( )

Definition at line 19 of file LibLcConfig_rb.c.

◆ LcSetupTmpl

#define LcSetupTmpl ( )

Definition at line 18 of file LibLcConfig_rb.c.

◆ OT_SETUP_hdl_static

#define OT_SETUP_hdl_static
Value:
__attribute__((unused)) MK_ERR hdl = &MkERROR;
#define MkERROR
#define MkRtSetup_NULL
#define MK_RT_UNUSED

Definition at line 110 of file LibLcConfig_rb.c.

110#define OT_SETUP_hdl_static MK_RT_UNUSED MkRtSetup_NULL; \
111 __attribute__((unused)) MK_ERR hdl = &MkERROR;

◆ Setup_doc

#define Setup_doc   "LcConfig.Setup()"

Definition at line 106 of file LibLcConfig_rb.c.

Function Documentation

◆ LibLcConfig()

MK_RB_EXTERN void LibLcConfig ( )

Definition at line 425 of file LibLcConfig_rb.c.

425 {
426
427 // Register system
428#ifdef HAVE_FORK
429// MkInitSysAPI(MK(fork),NULL);
430#endif
431
432 // Initialize liblcconfig
433 MkSetup();
435
436 // load "rbmkkernel" shared library
437 rb_require("rbmkkernel");
438
439 // Initialize components
440 LC(LcConfig_Init) (MK_RT_CALL_ONLY) ;
441 LC(LcConfigC_Init) (MK_RT_CALL_ONLY) ;
442 LC(LcSettingC_Init) (MK_RT_CALL_ONLY) ;
443
444 // update LAL
445 // ...
446
447 /*****************************************************************************/
448 /* */
449 /* enums */
450 /* */
451 /*****************************************************************************/
452
453 // BEGIN-enumF - created by 'rb_MqS.tcl -i NHI1_HOME/theConfig/c/gen/c_lcconfig.meta' - DO NOT change
454
455 LC(LcConfigFormatE) = rb_define_class_under(LC(LcConfig), "LcConfigFormatE", MK(cEnum));
456 rb_funcall(LC(LcConfigFormatE), MK(id_enum_attr), 2, STRN2VAL("DEFAULT"), INT2NUM(0));
457 rb_funcall(LC(LcConfigFormatE), MK(id_enum_attr), 2, STRN2VAL("HEX"), INT2NUM(1));
458
459 LC(LcConfigOptionsEF) = rb_define_class_under(LC(LcConfig), "LcConfigOptionsEF", MK(cEnum));
460 rb_funcall(LC(LcConfigOptionsEF), MK(id_enum_attr), 2, STRN2VAL("NONE"), INT2NUM(0x0));
461 rb_funcall(LC(LcConfigOptionsEF), MK(id_enum_attr), 2, STRN2VAL("AUTOCONVERT"), INT2NUM(0x01));
462 rb_funcall(LC(LcConfigOptionsEF), MK(id_enum_attr), 2, STRN2VAL("SEMICOLON_SEPARATORS"), INT2NUM(0x02));
463 rb_funcall(LC(LcConfigOptionsEF), MK(id_enum_attr), 2, STRN2VAL("COLON_ASSIGNMENT_FOR_GROUPS"), INT2NUM(0x04));
464 rb_funcall(LC(LcConfigOptionsEF), MK(id_enum_attr), 2, STRN2VAL("COLON_ASSIGNMENT_FOR_NON_GROUPS"), INT2NUM(0x08));
465 rb_funcall(LC(LcConfigOptionsEF), MK(id_enum_attr), 2, STRN2VAL("OPEN_BRACE_ON_SEPARATE_LINE"), INT2NUM(0x10));
466 rb_funcall(LC(LcConfigOptionsEF), MK(id_enum_attr), 2, STRN2VAL("ALLOW_SCIENTIFIC_NOTATION"), INT2NUM(0x20));
467 rb_funcall(LC(LcConfigOptionsEF), MK(id_enum_attr), 2, STRN2VAL("FSYNC"), INT2NUM(0x40));
468 rb_funcall(LC(LcConfigOptionsEF), MK(id_enum_attr), 2, STRN2VAL("ALLOW_OVERRIDES"), INT2NUM(0x80));
469
470 LC(LcConfigTypeE) = rb_define_class_under(LC(LcConfig), "LcConfigTypeE", MK(cEnum));
471 rb_funcall(LC(LcConfigTypeE), MK(id_enum_attr), 2, STRN2VAL("NONE"), INT2NUM(0));
472 rb_funcall(LC(LcConfigTypeE), MK(id_enum_attr), 2, STRN2VAL("GROUP"), INT2NUM(1));
473 rb_funcall(LC(LcConfigTypeE), MK(id_enum_attr), 2, STRN2VAL("INT"), INT2NUM(2));
474 rb_funcall(LC(LcConfigTypeE), MK(id_enum_attr), 2, STRN2VAL("INT64"), INT2NUM(3));
475 rb_funcall(LC(LcConfigTypeE), MK(id_enum_attr), 2, STRN2VAL("FLOAT"), INT2NUM(4));
476 rb_funcall(LC(LcConfigTypeE), MK(id_enum_attr), 2, STRN2VAL("STRING"), INT2NUM(5));
477 rb_funcall(LC(LcConfigTypeE), MK(id_enum_attr), 2, STRN2VAL("BOOL"), INT2NUM(6));
478 rb_funcall(LC(LcConfigTypeE), MK(id_enum_attr), 2, STRN2VAL("ARRAY"), INT2NUM(7));
479 rb_funcall(LC(LcConfigTypeE), MK(id_enum_attr), 2, STRN2VAL("LIST"), INT2NUM(8));
480
481 LC(LcErrorE) = rb_define_class_under(LC(LcConfig), "LcErrorE", MK(cEnum));
482 rb_funcall(LC(LcErrorE), MK(id_enum_attr), 2, STRN2VAL("FALSE"), INT2NUM(0));
483 rb_funcall(LC(LcErrorE), MK(id_enum_attr), 2, STRN2VAL("TRUE"), INT2NUM(1));
484
485 LC(LcErrorTypeE) = rb_define_class_under(LC(LcConfig), "LcErrorTypeE", MK(cEnum));
486 rb_funcall(LC(LcErrorTypeE), MK(id_enum_attr), 2, STRN2VAL("NONE"), INT2NUM(0));
487 rb_funcall(LC(LcErrorTypeE), MK(id_enum_attr), 2, STRN2VAL("FILE_IO"), INT2NUM(1));
488 rb_funcall(LC(LcErrorTypeE), MK(id_enum_attr), 2, STRN2VAL("PARSE"), INT2NUM(2));
489
490 // END-enumF - created by 'rb_MqS.tcl -i NHI1_HOME/theConfig/c/gen/c_lcconfig.meta' - DO NOT change
491
492}
#define LC(n)
#define MK(n)
#define STRN2VAL(nat)
LcErrorE
Signals an error and is used as the return value of a function …
Definition LcEnum_lc.h:188
LcConfigFormatE
set the format of a LcSettingC …
Definition LcEnum_lc.h:30
LcConfigOptionsEF
define the configuration-option of a LcConfigC …
Definition LcEnum_lc.h:134
LcErrorTypeE
error types
Definition LcEnum_lc.h:228
LcConfigTypeE
define the data-type of a LcSettingC …
Definition LcEnum_lc.h:78
void MkSetup(void)
#define MK_RT_CALL_ONLY

◆ rblcconfig_LcConfig_Init()

void rblcconfig_LcConfig_Init ( MK_RT mkrt)

Definition at line 363 of file LibLcConfig_rb.c.

363 {
364 LC(LcConfig) = rb_define_module("LcConfig");
365
366// BEGIN-CLASS - created by 'rb_MqS.tcl -i NHI1_HOME/theConfig/c/gen/c_lcconfig.meta' - DO NOT change
367
368// doc-key: LcConfig,EnumFunc,sco
369OT_METH_O ( LcConfig, ConfigFormatE_FromInt, LcConfig_ConfigFormatE_FromInt )
370OT_METH_S ( LcConfig, ConfigFormatE_FromInt, LcConfig_ConfigFormatE_FromInt )
371OT_METH_O ( LcConfig, ConfigOptionsEF_FromInt, LcConfig_ConfigOptionsEF_FromInt )
372OT_METH_S ( LcConfig, ConfigOptionsEF_FromInt, LcConfig_ConfigOptionsEF_FromInt )
373OT_METH_O ( LcConfig, ConfigTypeE_FromInt, LcConfig_ConfigTypeE_FromInt )
374OT_METH_S ( LcConfig, ConfigTypeE_FromInt, LcConfig_ConfigTypeE_FromInt )
375OT_METH_O ( LcConfig, ErrorE_FromInt, LcConfig_ErrorE_FromInt )
376OT_METH_S ( LcConfig, ErrorE_FromInt, LcConfig_ErrorE_FromInt )
377OT_METH_O ( LcConfig, ErrorTypeE_FromInt, LcConfig_ErrorTypeE_FromInt )
378OT_METH_S ( LcConfig, ErrorTypeE_FromInt, LcConfig_ErrorTypeE_FromInt )
379
380// doc-key: LcConfig,EnumFunc,sm_
381OT_METH_O ( LcConfig, ConfigFormatE_ToInt, LcConfig_ConfigFormatE_ToInt )
382OT_METH_S ( LcConfig, ConfigFormatE_ToInt, LcConfig_ConfigFormatE_ToInt )
383OT_METH_O ( LcConfig, ConfigFormatE_ToString, LcConfig_ConfigFormatE_ToString )
384OT_METH_S ( LcConfig, ConfigFormatE_ToString, LcConfig_ConfigFormatE_ToString )
385OT_METH_O ( LcConfig, ConfigOptionsEF_ToInt, LcConfig_ConfigOptionsEF_ToInt )
386OT_METH_S ( LcConfig, ConfigOptionsEF_ToInt, LcConfig_ConfigOptionsEF_ToInt )
387OT_METH_O ( LcConfig, ConfigOptionsEF_ToString, LcConfig_ConfigOptionsEF_ToString )
388OT_METH_S ( LcConfig, ConfigOptionsEF_ToString, LcConfig_ConfigOptionsEF_ToString )
389OT_METH_O ( LcConfig, ConfigTypeE_ToInt, LcConfig_ConfigTypeE_ToInt )
390OT_METH_S ( LcConfig, ConfigTypeE_ToInt, LcConfig_ConfigTypeE_ToInt )
391OT_METH_O ( LcConfig, ConfigTypeE_ToString, LcConfig_ConfigTypeE_ToString )
392OT_METH_S ( LcConfig, ConfigTypeE_ToString, LcConfig_ConfigTypeE_ToString )
393OT_METH_O ( LcConfig, ErrorE_ToInt, LcConfig_ErrorE_ToInt )
394OT_METH_S ( LcConfig, ErrorE_ToInt, LcConfig_ErrorE_ToInt )
395OT_METH_O ( LcConfig, ErrorE_ToString, LcConfig_ErrorE_ToString )
396OT_METH_S ( LcConfig, ErrorE_ToString, LcConfig_ErrorE_ToString )
397OT_METH_O ( LcConfig, ErrorTypeE_ToInt, LcConfig_ErrorTypeE_ToInt )
398OT_METH_S ( LcConfig, ErrorTypeE_ToInt, LcConfig_ErrorTypeE_ToInt )
399OT_METH_O ( LcConfig, ErrorTypeE_ToString, LcConfig_ErrorTypeE_ToString )
400OT_METH_S ( LcConfig, ErrorTypeE_ToString, LcConfig_ErrorTypeE_ToString )
401
402// doc-key: LcConfig,Setup,sm_
403OT_METH_O ( LcConfig, Cleanup, LcConfig_Cleanup )
404OT_METH_S ( LcConfig, Cleanup, LcConfig_Cleanup )
405OT_METH_O ( LcConfig, Setup, LcConfig_Setup )
406OT_METH_S ( LcConfig, Setup, LcConfig_Setup )
407
408// END-CLASS - created by 'rb_MqS.tcl -i NHI1_HOME/theConfig/c/gen/c_lcconfig.meta' - DO NOT change
409
410// BEGIN-OBJ - created by 'rb_MqS.tcl -i NHI1_HOME/theConfig/c/gen/c_lcconfig.meta' - DO NOT change
411
412// → no data
413
414// END-OBJ - created by 'rb_MqS.tcl -i NHI1_HOME/theConfig/c/gen/c_lcconfig.meta' - DO NOT change
415
416}
#define OT_METH_S(c, s, f)
#define OT_METH_O(c, s, f)

Variable Documentation

◆ rblcconfig_LcConfig

VALUE rblcconfig_LcConfig

Definition at line 65 of file LibLcConfig_rb.c.

◆ rblcconfig_LcConfigFormatE

VALUE rblcconfig_LcConfigFormatE

Definition at line 69 of file LibLcConfig_rb.c.

◆ rblcconfig_LcConfigOptionsEF

VALUE rblcconfig_LcConfigOptionsEF

Definition at line 70 of file LibLcConfig_rb.c.

◆ rblcconfig_LcConfigTypeE

VALUE rblcconfig_LcConfigTypeE

Definition at line 71 of file LibLcConfig_rb.c.

◆ rblcconfig_LcErrorE

VALUE rblcconfig_LcErrorE

Definition at line 72 of file LibLcConfig_rb.c.

◆ rblcconfig_LcErrorTypeE

VALUE rblcconfig_LcErrorTypeE

Definition at line 73 of file LibLcConfig_rb.c.