#include "GuiParserManager.h"
#include "../Controls/GuiApplication.h"
namespace
{
namespace
{
using
namespace
collections
;
using
namespace
controls
;
using
namespace
parsing
::
tabling
;
using
namespace
parsing
::
xml
;
using
namespace
parsing
::
json
;
using
namespace
regex
;
*
=
0
;
*
()
{
return
parserManager
;
}
class
:
public
,
public
,
public
{
protected
:
<
,
<
>>
;
<
,
<
<
>()>>
;
;
<
,
<
>>
;
public
:
GUI_PLUGIN_NAME(GacUI_Parser)
vl
::
()
override
{
return
L"GacUI_Parser"
; }
void
(
vl
::
collections
::
<
>&
)
override
{
}
void
()
override
{
parserManager
=
this
;
(
L"XML"
, &
);
(
L"JSON"
, &
);
(
L"XML"
,
L"XML"
, &
);
(
L"JSON"
,
L"JSON"
, &
);
}
void
()
override
{
parserManager
=
0
;
}
<
>
(
const
&
)
override
{
SPIN_LOCK(lock)
if
(
bool
=
true
)
for
(
const
::
&
=
;
__scope_variable_flag__
;
__scope_variable_flag__
=
false
)
{
=
.
().
(
);
if
(
index
!=-
1
)
{
return
.
()
index
];
}
index
=
.
().
(
);
if
(
index
!=-
1
)
{
<
>
=
.
()
index
]
);
.
(
,
table
);
return
table
;
}
}
return
0
;
}
bool
(
const
&
,
<
<
>()>
)
override
{
if
(
.
().
(
))
return
false
;
.
(
,
);
return
true
;
}
<
>
(
const
&
)
override
{
=
.
().
(
);
return
index
== -
1
?
nullptr
:
.
()
index
];
}
bool
(
const
&
,
<
>
)
override
{
if
(
.
().
(
))
return
false
;
.
(
,
);
return
true
;
}
};
GUI_REGISTER_PLUGIN(GuiParserManager)
class
GuiRegisterPluginClass_GuiParserManager
{
public
:
GuiRegisterPluginClass_GuiParserManager
() {
vl
::
presentation
::
controls
::
()->
(
new
); } }
instance_GuiRegisterPluginClass_GuiParserManager
;
}
}