summaryrefslogtreecommitdiffstats
path: root/src/xml_to_data/prog_xml_to_data.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/xml_to_data/prog_xml_to_data.h')
-rw-r--r--src/xml_to_data/prog_xml_to_data.h22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/xml_to_data/prog_xml_to_data.h b/src/xml_to_data/prog_xml_to_data.h
index 4995e1e..bcca9da 100644
--- a/src/xml_to_data/prog_xml_to_data.h
+++ b/src/xml_to_data/prog_xml_to_data.h
@@ -58,22 +58,22 @@ Group::Support ExtXmlToData<Data>::extractSupport(const TQString &s) const
{
if ( s.isEmpty() ) return Group::Support::Untested;
Group::Support support = Group::Support::fromKey(s);
- if ( support==Group::Support::None ) qFatal("Cannot be \"not supported\"");
- if ( support==Group::Support::Nb_Types ) qFatal("Unknown support type");
+ if ( support==Group::Support::None ) tqFatal("Cannot be \"not supported\"");
+ if ( support==Group::Support::Nb_Types ) tqFatal("Unknown support type");
return support;
}
template <class Data>
void ExtXmlToData<Data>::parseDevice(TQDomElement element)
{
- if ( element.nodeName()!="device" ) qFatal("Root node child should be named \"device\"");
+ if ( element.nodeName()!="device" ) tqFatal("Root node child should be named \"device\"");
_current = element.attribute("name").upper();
- if ( Device::lister().data(_current)==0 ) qFatal(TQString("Device name \"%1\" unknown").arg(_current));
- if ( _map.contains(_current) ) qFatal(TQString("Device \"%1\" already parsed").arg(_current));
+ if ( Device::lister().data(_current)==0 ) tqFatal(TQString("Device name \"%1\" unknown").arg(_current));
+ if ( _map.contains(_current) ) tqFatal(TQString("Device \"%1\" already parsed").arg(_current));
PData data;
if ( hasFamilies() ) {
TQString family = element.attribute("family");
- if ( family.isEmpty() ) qFatal(TQString("Family is empty").arg(family));
+ if ( family.isEmpty() ) tqFatal(TQString("Family is empty").arg(family));
if ( _families.find(family)==_families.end() ) _families.append(family);
data.family = familyIndex(family);
}
@@ -87,13 +87,13 @@ void ExtXmlToData<Data>::parse()
{
TQDomDocument doc = parseFile(_basename + ".xml");
TQDomElement root = doc.documentElement();
- if ( root.nodeName()!="type" ) qFatal("Root node should be \"type\"");
- if ( root.attribute("name")!=_basename ) qFatal(TQString("Root node name is not \"%1\"").arg(_basename));
+ if ( root.nodeName()!="type" ) tqFatal("Root node should be \"type\"");
+ if ( root.attribute("name")!=_basename ) tqFatal(TQString("Root node name is not \"%1\"").arg(_basename));
TQDomNode child = root.firstChild();
while ( !child.isNull() ) {
- if ( child.isComment() ) qDebug("comment: %s", child.toComment().data().latin1());
+ if ( child.isComment() ) tqDebug("comment: %s", child.toComment().data().latin1());
else {
- if ( !child.isElement() ) qFatal("Root node child should be an element");
+ if ( !child.isElement() ) tqFatal("Root node child should be an element");
parseDevice(child.toElement());
}
child = child.nextSibling();
@@ -105,7 +105,7 @@ void ExtXmlToData<Data>::output()
{
// write .cpp file
TQFile file(_basename + "_data.cpp");
- if ( !file.open(IO_WriteOnly) ) qFatal(TQString("Cannot open output file \"%1\"").arg(file.name()));
+ if ( !file.open(IO_WriteOnly) ) tqFatal(TQString("Cannot open output file \"%1\"").arg(file.name()));
TQTextStream s(&file);
s << "// #### Do not edit: this file is autogenerated !!!" << endl << endl;
s << "#include \"devices/list/device_list.h\"" << endl;