Some quote
This commit is contained in:
parent
5ee70f6c44
commit
048857a9af
|
@ -103,6 +103,9 @@ int parseTextFieldXML (xmlDocPtr doc,
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// -------------------------------------------------------------------------- //
|
||||||
|
// Parsing a field that contains children fields //
|
||||||
|
// -------------------------------------------------------------------------- //
|
||||||
int parseParentFieldXML (xmlDocPtr doc,
|
int parseParentFieldXML (xmlDocPtr doc,
|
||||||
ModelParserTableXML_t *ModelTable,
|
ModelParserTableXML_t *ModelTable,
|
||||||
int currentParser,
|
int currentParser,
|
||||||
|
@ -124,22 +127,19 @@ int parseParentFieldXML (xmlDocPtr doc,
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// -------------------------------------------------------------------------- //
|
||||||
|
// Parsing a model file //
|
||||||
|
// -------------------------------------------------------------------------- //
|
||||||
int ParseModelXML(Model_t *model)
|
int ParseModelXML(Model_t *model)
|
||||||
{
|
{
|
||||||
ParserTableXML_t table[] =
|
ParserTableXML_t table[] =
|
||||||
{
|
{
|
||||||
{(const xmlChar *)"identity", parseParentFieldXML,
|
{(const xmlChar *)"identity", parseParentFieldXML, model},
|
||||||
model},
|
{(const xmlChar *)"name", parseTextFieldXML, model->name},
|
||||||
{(const xmlChar *)"name", parseTextFieldXML,
|
{(const xmlChar *)"owner", parseTextFieldXML, model->owner},
|
||||||
model->name},
|
{(const xmlChar *)"owner_id", parseStubFieldXML, model->owner_id},
|
||||||
{(const xmlChar *)"owner", parseTextFieldXML,
|
{(const xmlChar *)"date", parseStubFieldXML, &model->date},
|
||||||
model->owner},
|
{(const xmlChar *)"version", parseTextFieldXML, model->version},
|
||||||
{(const xmlChar *)"owner_id", parseStubFieldXML,
|
|
||||||
model->owner_id},
|
|
||||||
{(const xmlChar *)"date", parseStubFieldXML,
|
|
||||||
model->date},
|
|
||||||
{(const xmlChar *)"version", parseTextFieldXML,
|
|
||||||
model->version},
|
|
||||||
};
|
};
|
||||||
|
|
||||||
ModelParserTableXML_t modelParserTable =
|
ModelParserTableXML_t modelParserTable =
|
||||||
|
|
Loading…
Reference in New Issue