1 #include <Config/Section/Arguments.oh>
2 #include <Object.oh>
3 #include <TextRider.oh>
4 #include <LongStrings.oh>
5 #include <XML/Builder.oh>
6 #define Config_Section_Arguments__invalidContent 1
7 #define Config_Section_Arguments__invalidAttribute 2
8 #define Config_Section_Arguments__requireCharDataContent 5
9 static Config_Section_Arguments__ErrorContext Config_Section_Arguments__argumentsContext;
10 static void Config_Section_Arguments__Init(Config_Section_Arguments__Section s, const Config_Parser__String id__ref, OOC_LEN id_0d);
11 
12 /* run-time meta data */
13 static RT0__ModuleDesc _mid;
14 RT0__StructDesc _td_Config_Section_Arguments__Section = { (RT0__Struct[]){&_td_Config_Section_Arguments__SectionDesc}, NULL, NULL, &_mid, (OOC_CHAR8*)"Section", 8, -1, 0, RT0__strPointer };
15 RT0__StructDesc _td_Config_Section_Arguments__243 = { (RT0__Struct[]){&_td_Object__String}, NULL, NULL, &_mid, NULL, 8, 1, 0, RT0__strOpenArray };
16 RT0__StructDesc _td_Config_Section_Arguments__ArgumentArray = { (RT0__Struct[]){&_td_Config_Section_Arguments__243}, NULL, NULL, &_mid, (OOC_CHAR8*)"ArgumentArray", 8, -1, 0, RT0__strPointer };
17 RT0__StructDesc _td_Config_Section_Arguments__SectionDesc = { (RT0__Struct[]){&_td_Config_Section__SectionDesc,&_td_Config_Section_Arguments__SectionDesc}, (void*[]){(void*)Config_Section_Arguments__SectionDesc_ProcessElements,(void*)Config_Section_Arguments__SectionDesc_DumpContent,(void*)Config_Section_Arguments__SectionDesc_ArgNumber,(void*)Config_Section_Arguments__SectionDesc_Get}, NULL, &_mid, (OOC_CHAR8*)"SectionDesc", 24, 1, 0, RT0__strRecord };
18 RT0__StructDesc _td_Config_Section_Arguments__ErrorContext = { (RT0__Struct[]){&_td_Config_Section_Arguments__ErrorContextDesc}, NULL, NULL, &_mid, (OOC_CHAR8*)"ErrorContext", 8, -1, 0, RT0__strPointer };
19 RT0__StructDesc _td_Config_Section_Arguments__ErrorContextDesc = { (RT0__Struct[]){&_td_Msg__ContextDesc,&_td_XML_Error__ContextDesc,&_td_Config_Section__ErrorContextDesc,&_td_Config_Section_Arguments__ErrorContextDesc}, (void*[]){(void*)Config_Section_Arguments__ErrorContextDesc_GetTemplate,(void*)XML_Error__ContextDesc_WriteTemplate,(void*)XML_Error__ContextDesc_SetString}, NULL, &_mid, (OOC_CHAR8*)"ErrorContextDesc", 16, 3, 0, RT0__strRecord };
20 RT0__StructDesc _td_Config_Section_Arguments__720 = { (RT0__Struct[]){&RT0__longchar}, NULL, NULL, &_mid, NULL, 256, 128, (1<<RT0__flagAtomic), RT0__strArray };
21 RT0__StructDesc _td_Config_Section_Arguments__3559 = { (RT0__Struct[]){&RT0__char}, NULL, NULL, &_mid, NULL, 2048, 2048, (1<<RT0__flagAtomic), RT0__strArray };
22 static RT0__ModuleDesc _mid = { (OOC_CHAR8*)"Config:Section:Arguments", (RT0__Struct[]) { &_td_Config_Section_Arguments__Section, &_td_Config_Section_Arguments__ArgumentArray, &_td_Config_Section_Arguments__SectionDesc, &_td_Config_Section_Arguments__ErrorContext, &_td_Config_Section_Arguments__ErrorContextDesc, NULL }, 0 };
23 
OOC_Config_Section_Arguments_open(RT0__Module client)24 extern void OOC_Config_Section_Arguments_open(RT0__Module client) {
25   if (_mid.openCount == 0) {
26     OOC_Object_open(&_mid);
27     OOC_Msg_open(&_mid);
28     OOC_Channel_open(&_mid);
29     OOC_TextRider_open(&_mid);
30     OOC_LongStrings_open(&_mid);
31     OOC_XML_Builder_open(&_mid);
32     OOC_XML_Locator_open(&_mid);
33     OOC_Config_Parser_open(&_mid);
34     OOC_Config_Section_open(&_mid);
35     OOC_RT0_open(&_mid);
36     OOC_Object_open(&_mid);
37     OOC_Exception_open(&_mid);
38 
39     RT0__RegisterModule(&_mid);
40     OOC_Config_Section_Arguments_init();
41   }
42   _mid.openCount++;
43 }
OOC_Config_Section_Arguments_close(RT0__Module client)44 extern void OOC_Config_Section_Arguments_close(RT0__Module client) {
45   _mid.openCount--;
46   if (_mid.openCount == 0) {
47     OOC_Config_Section_Arguments_destroy();
48     RT0__UnregisterModule(&_mid);
49 
50     OOC_Object_close(&_mid);
51     OOC_Msg_close(&_mid);
52     OOC_Channel_close(&_mid);
53     OOC_TextRider_close(&_mid);
54     OOC_LongStrings_close(&_mid);
55     OOC_XML_Builder_close(&_mid);
56     OOC_XML_Locator_close(&_mid);
57     OOC_Config_Parser_close(&_mid);
58     OOC_Config_Section_close(&_mid);
59     OOC_RT0_close(&_mid);
60     OOC_Object_close(&_mid);
61     OOC_Exception_close(&_mid);
62   }
63 }
64 
65 /* --- */
66