|
|
@ -130,7 +130,7 @@ void CFormDfn::read (xmlNodePtr root, CFormLoader &loader, bool forceLoad, const
|
|
|
|
if ( ((const char*)root->name == NULL) || (strcmp ((const char*)root->name, "DFN") != 0) )
|
|
|
|
if ( ((const char*)root->name == NULL) || (strcmp ((const char*)root->name, "DFN") != 0) )
|
|
|
|
{
|
|
|
|
{
|
|
|
|
// Throw exception
|
|
|
|
// Throw exception
|
|
|
|
warning (true, "read", "XML Syntax error in block line %p, node (%s) should be DFN.", root->content, root->name);
|
|
|
|
warning (true, "read", "XML Syntax error in block line %d, node (%s) should be DFN.", (sint)root->line, root->name);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// Count the parent
|
|
|
|
// Count the parent
|
|
|
@ -162,8 +162,8 @@ void CFormDfn::read (xmlNodePtr root, CFormLoader &loader, bool forceLoad, const
|
|
|
|
else
|
|
|
|
else
|
|
|
|
{
|
|
|
|
{
|
|
|
|
// Throw exception
|
|
|
|
// Throw exception
|
|
|
|
warning (true, "read", "XML Syntax error in block (%s) line %p, aguments Name not found.",
|
|
|
|
warning (true, "read", "XML Syntax error in block (%s) line %d, aguments Name not found.",
|
|
|
|
parent->name, parent->content);
|
|
|
|
parent->name, (sint)parent->line);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// Next parent
|
|
|
|
// Next parent
|
|
|
@ -245,8 +245,8 @@ void CFormDfn::read (xmlNodePtr root, CFormLoader &loader, bool forceLoad, const
|
|
|
|
if ((Entries[childNumber].Type == NULL) && !forceLoad)
|
|
|
|
if ((Entries[childNumber].Type == NULL) && !forceLoad)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
// Throw exception
|
|
|
|
// Throw exception
|
|
|
|
warning (true, "read", "In XML block (%s) line %p, file not found %s.",
|
|
|
|
warning (true, "read", "In XML block (%s) line %d, file not found %s.",
|
|
|
|
child->name, child->content, Entries[childNumber].Filename.c_str ());
|
|
|
|
child->name, (sint)child->line, Entries[childNumber].Filename.c_str ());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// Read the default value
|
|
|
|
// Read the default value
|
|
|
@ -262,8 +262,8 @@ void CFormDfn::read (xmlNodePtr root, CFormLoader &loader, bool forceLoad, const
|
|
|
|
else
|
|
|
|
else
|
|
|
|
{
|
|
|
|
{
|
|
|
|
// Throw exception
|
|
|
|
// Throw exception
|
|
|
|
warning (true, "read", "XML In block (%s) line %p, no filename found for the .typ file.",
|
|
|
|
warning (true, "read", "XML In block (%s) line %d, no filename found for the .typ file.",
|
|
|
|
child->name, child->content);
|
|
|
|
child->name, (sint)child->line);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else if (stricmp (typeName, "Dfn") == 0)
|
|
|
|
else if (stricmp (typeName, "Dfn") == 0)
|
|
|
@ -279,15 +279,15 @@ void CFormDfn::read (xmlNodePtr root, CFormLoader &loader, bool forceLoad, const
|
|
|
|
if ((Entries[childNumber].Dfn == NULL) && !forceLoad)
|
|
|
|
if ((Entries[childNumber].Dfn == NULL) && !forceLoad)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
// Throw exception
|
|
|
|
// Throw exception
|
|
|
|
warning (true, "read", "XML In block (%s) line %p, file not found %s.",
|
|
|
|
warning (true, "read", "XML In block (%s) line %d, file not found %s.",
|
|
|
|
child->name, child->content, Entries[childNumber].Filename.c_str ());
|
|
|
|
child->name, (sint)child->line, Entries[childNumber].Filename.c_str ());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
else
|
|
|
|
{
|
|
|
|
{
|
|
|
|
// Throw exception
|
|
|
|
// Throw exception
|
|
|
|
warning (true, "read", "XML In block (%s) line %p, no filename found for the .typ file.",
|
|
|
|
warning (true, "read", "XML In block (%s) line %d, no filename found for the .typ file.",
|
|
|
|
child->name, child->content);
|
|
|
|
child->name, (sint)child->line);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else if (stricmp (typeName, "DfnPointer") == 0)
|
|
|
|
else if (stricmp (typeName, "DfnPointer") == 0)
|
|
|
@ -297,8 +297,8 @@ void CFormDfn::read (xmlNodePtr root, CFormLoader &loader, bool forceLoad, const
|
|
|
|
else
|
|
|
|
else
|
|
|
|
{
|
|
|
|
{
|
|
|
|
// Throw exception
|
|
|
|
// Throw exception
|
|
|
|
warning (true, "read", "XML Syntax error in block (%s) line %p, element has not a valid type name attribut \"Type = %s\".",
|
|
|
|
warning (true, "read", "XML Syntax error in block (%s) line %d, element has not a valid type name attribut \"Type = %s\".",
|
|
|
|
child->name, child->content, typeName);
|
|
|
|
child->name, (sint)child->line, typeName);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// Delete the value
|
|
|
|
// Delete the value
|
|
|
@ -307,8 +307,8 @@ void CFormDfn::read (xmlNodePtr root, CFormLoader &loader, bool forceLoad, const
|
|
|
|
else
|
|
|
|
else
|
|
|
|
{
|
|
|
|
{
|
|
|
|
// Throw exception
|
|
|
|
// Throw exception
|
|
|
|
warning (true, "read", "XML Syntax error in block (%s) line %p, element has no type name attribut \"Type = [Type][Dfn][DfnPointer]\".",
|
|
|
|
warning (true, "read", "XML Syntax error in block (%s) line %d, element has no type name attribut \"Type = [Type][Dfn][DfnPointer]\".",
|
|
|
|
child->name, child->content);
|
|
|
|
child->name, (sint)child->line);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// Get the array attrib
|
|
|
|
// Get the array attrib
|
|
|
@ -325,8 +325,8 @@ void CFormDfn::read (xmlNodePtr root, CFormLoader &loader, bool forceLoad, const
|
|
|
|
else
|
|
|
|
else
|
|
|
|
{
|
|
|
|
{
|
|
|
|
// Throw exception
|
|
|
|
// Throw exception
|
|
|
|
warning (true, "read", "XML Syntax error in block (%s) line %p, aguments Name not found.",
|
|
|
|
warning (true, "read", "XML Syntax error in block (%s) line %d, aguments Name not found.",
|
|
|
|
root->name, root->content);
|
|
|
|
root->name, (sint)root->line);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// Next child
|
|
|
|
// Next child
|
|
|
|